com.ibm.productivity.tools.ui.views
Interface RichDocumentContentSelection

All Superinterfaces:
org.eclipse.jface.viewers.ISelection

public interface RichDocumentContentSelection
extends org.eclipse.jface.viewers.ISelection

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);

Since:
Lotus Symphony Beta 4

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

getPlainText

java.lang.String getPlainText()
Returns the plain text content within a view.

Returns:
the plain text content within a view.