Class CommonNavigatorEx

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.ISaveablePart, org.eclipse.ui.ISaveablesSource, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.ISetSelectionTarget, org.eclipse.ui.part.IShowInTarget, org.eclipse.ui.part.IWorkbenchPartOrientation

    public class CommonNavigatorEx
    extends org.eclipse.ui.navigator.CommonNavigator
    Common Navigator with extension for filtering and synchronized References.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      static java.lang.StringID
      The View Part ID "com.iizigo.navigator".
      • Fields inherited from class org.eclipse.ui.navigator.CommonNavigator

        IS_LINKING_ENABLED_PROPERTY, memento
      • Fields inherited from interface org.eclipse.ui.ISaveablePart

        PROP_DIRTY
      • Fields inherited from interface org.eclipse.ui.IWorkbenchPart

        PROP_TITLE
    • Constructor Summary

      Constructors 
      ConstructorDescription
      CommonNavigatorEx()
      Eclipse constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      protected org.eclipse.ui.actions.ActionGroupcreateCommonActionGroup()
      The ActionGroup is used to populate the ActionBars of Common Navigator View Part, and the returned implementation will have an opportunity to fill the ActionBars of the view as soon as it is created.
      protected org.eclipse.ui.navigator.CommonViewercreateCommonViewerObject​(org.eclipse.swt.widgets.Composite aParent)
      Constructs and returns an instance of CommonViewer.
      voidcreatePartControl​(org.eclipse.swt.widgets.Composite parent)
      Create the CommonViewer part control and setup the default providers as necessary.
      voiddispose()
      Disposes of the view part.
      protected java.lang.ObjectgetInitialInput()
      Overridden to block input at startup when loading all projects.
      protected voidhandleDoubleClick​(org.eclipse.jface.viewers.DoubleClickEvent event)
      Note: This method is for internal use only.
      voidinit​(org.eclipse.ui.IViewSite site)
      Initializes the view site.
      voidsaveState​(org.eclipse.ui.IMemento memento)
      Saves the state.
      static booleanselectReveal​(java.lang.Object[] elements)
      Attempts to select and reveal the selection in the iizi Explorer view.
      • Methods inherited from class org.eclipse.ui.navigator.CommonNavigator

        createCommonManager, createCommonViewer, doSave, doSaveAs, getActiveSaveables, getAdapter, getCommonViewer, getFrameToolTipText, getLinkHelperService, getMemento, getNavigatorActionService, getNavigatorContentService, getRootMode, getSaveables, getWorkingSetLabel, hasSaveablesProvider, init, initListeners, isDirty, isLinkingEnabled, isSaveAsAllowed, isSaveOnCloseNeeded, selectReveal, setFocus, setLinkingEnabled, setRootMode, setWorkingSetLabel, show, updateTitle
      • Methods inherited from class org.eclipse.ui.part.ViewPart

        checkSite, getViewSite, setContentDescription, setInitializationData, setPartName
      • Methods inherited from class org.eclipse.ui.part.WorkbenchPart

        addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.ui.IWorkbenchPart

        addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
    • Field Detail

      • ID

        public static final java.lang.String ID
        The View Part ID "com.iizigo.navigator".
        See Also:
        Constant Field Values
    • Constructor Detail

      • CommonNavigatorEx

        public CommonNavigatorEx()
        Eclipse constructor.
    • Method Detail

      • selectReveal

        public static boolean selectReveal​(java.lang.Object[] elements)
        Attempts to select and reveal the selection in the iizi Explorer view.
        Parameters:
        elements - The elements to select and reveal.
        Returns:
        true for "success", false if view is not found.
      • init

        public void init​(org.eclipse.ui.IViewSite site)
                  throws org.eclipse.ui.PartInitException
        Initializes the view site.
        Specified by:
        init in interface org.eclipse.ui.IViewPart
        Overrides:
        init in class org.eclipse.ui.part.ViewPart
        Throws:
        org.eclipse.ui.PartInitException
      • createPartControl

        public void createPartControl​(org.eclipse.swt.widgets.Composite parent)
        Create the CommonViewer part control and setup the default providers as necessary.
        Specified by:
        createPartControl in interface org.eclipse.ui.IWorkbenchPart
        Overrides:
        createPartControl in class org.eclipse.ui.navigator.CommonNavigator
      • getInitialInput

        protected java.lang.Object getInitialInput()
        Overridden to block input at startup when loading all projects.
        Overrides:
        getInitialInput in class org.eclipse.ui.navigator.CommonNavigator
      • createCommonViewerObject

        protected org.eclipse.ui.navigator.CommonViewer createCommonViewerObject​(org.eclipse.swt.widgets.Composite aParent)
        Constructs and returns an instance of CommonViewer. The ID of the Eclipse view part will be used to create the viewer. Override this method if you want a subclass of the CommonViewer
        Overrides:
        createCommonViewerObject in class org.eclipse.ui.navigator.CommonNavigator
        Parameters:
        aParent - A composite parent to contain the CommonViewer
        Returns:
        An instance of CommonViewer
        Since:
        3.4
      • createCommonActionGroup

        protected org.eclipse.ui.actions.ActionGroup createCommonActionGroup()
        The ActionGroup is used to populate the ActionBars of Common Navigator View Part, and the returned implementation will have an opportunity to fill the ActionBars of the view as soon as it is created.
        Overrides:
        createCommonActionGroup in class org.eclipse.ui.navigator.CommonNavigator
        Returns:
        The Action Group to be associated with the Common Navigator View Part.
      • saveState

        public void saveState​(org.eclipse.ui.IMemento memento)
        Saves the state.
        Specified by:
        saveState in interface org.eclipse.ui.IPersistable
        Specified by:
        saveState in interface org.eclipse.ui.IViewPart
        Overrides:
        saveState in class org.eclipse.ui.navigator.CommonNavigator
      • handleDoubleClick

        protected void handleDoubleClick​(org.eclipse.jface.viewers.DoubleClickEvent event)
        Note: This method is for internal use only. Clients should not call this method.
        Overrides:
        handleDoubleClick in class org.eclipse.ui.navigator.CommonNavigator
        Parameters:
        event - Supplied by the DoubleClick listener.
      • dispose

        public void dispose()
        Disposes of the view part.
        Specified by:
        dispose in interface org.eclipse.ui.IWorkbenchPart
        Overrides:
        dispose in class org.eclipse.ui.navigator.CommonNavigator