Class CommonNavigatorEx

All Implemented Interfaces:
IAdaptable, IExecutableExtension, IPersistable, ISaveablePart, ISaveablesSource, IViewPart, IWorkbenchPart, IWorkbenchPart2, IWorkbenchPart3, ISetSelectionTarget, IShowInTarget, IWorkbenchPartOrientation

public class CommonNavigatorEx extends CommonNavigator
Common Navigator with extension for filtering and synchronized References.
Author:
Christopher Mindus
  • Field Details

  • Constructor Details

    • CommonNavigatorEx

      public CommonNavigatorEx()
      Eclipse constructor.
  • Method Details

    • selectReveal

      public static boolean selectReveal(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(IViewSite site) throws PartInitException
      Initializes the view site.
      Specified by:
      init in interface IViewPart
      Overrides:
      init in class ViewPart
      Throws:
      PartInitException
    • createPartControl

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

      protected Object getInitialInput()
      Overridden to block input at startup when loading all projects.
      Overrides:
      getInitialInput in class CommonNavigator
    • createCommonViewerObject

      protected CommonViewer createCommonViewerObject(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 CommonNavigator
      Parameters:
      aParent - A composite parent to contain the CommonViewer
      Returns:
      An instance of CommonViewer
      Since:
      3.4
    • createCommonActionGroup

      protected 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 CommonNavigator
      Returns:
      The Action Group to be associated with the Common Navigator View Part.
    • saveState

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

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

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