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

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

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

Defines the selection of RichDocumentView.

The selection changes when a new view is opened, or the user switches views between opened views.

The interface is designed to be used with Eclipse selection service. The following is a typical scenario to use the selection service in Lotus® Symphony:

1. Create an ISelectionListener
  
     private ISelectionListener selectionListener = 
           new ISelectionListener() {
           public void selectionChanged(IWorkbenchPart arg0, 
                 final ISelection arg1) {
                 RichDocumentViewSelection selection = 
                        ( RichDocumentViewSelection )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
 RichDocumentView getView()
          Returns the target view which fires the selection.
 
Methods inherited from interface org.eclipse.jface.viewers.ISelection
isEmpty
 

Method Detail

getView

public RichDocumentView getView()
Returns the target view which fires the selection.

Returns:
the target view which fires the selection.