/** * Handles a selection changed event from the embedded editor. The default implementation gets the * selection provider from the composite editor's site, and calls <code>fireSelectionChanged * </code> on it (only if it is an instance of <code>CompositeEditorSelectionProvider</code>), * passing a new event object. * * <p>Subclasses may extend or reimplement this method. * * @param event the event */ protected void handleSelectionChanged(SelectionChangedEvent event) { ISelectionProvider parentProvider = parent.getSelectionProvider(); if (parentProvider instanceof CompositeEditorSelectionProvider) { SelectionChangedEvent newEvent = new SelectionChangedEvent(parentProvider, event.getSelection()); ((CompositeEditorSelectionProvider) parentProvider).fireSelectionChanged(newEvent); } }