|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the content selection within a RichDocumentView
.
The selection changes when the user selects text or objects within Lotus® Symhpony documents, including documents, spreadsheets and presentations.
The interface is designed to be used with the Eclipse selection service. The following is a typical scenario to use selection service in Symphony:
1. Create an ISelectionListener
private ISelectionListener selectionListener = new ISelectionListener() {
public void selectionChanged(IWorkbenchPart arg0, final ISelection arg1) {
RichDocumentContentSelection selection =
( RichDocumentContentSelection )arg1;
}
};
2. Add the ISelectionListener to Eclipse selection service
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
ISelectionService service = window.getSelectionService();
service.addSelectionListener(selectionListener);
Method Summary | |
---|---|
java.lang.String |
getPlainText()
Returns the plain text content within a view. |
Methods inherited from interface org.eclipse.jface.viewers.ISelection |
---|
isEmpty |
Method Detail |
public java.lang.String getPlainText()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |