public class CommonNavigatorEx extends CommonNavigator
Modifier and Type | Field and Description |
---|---|
static String |
ID
The View Part ID "com.iizigo.navigator".
|
IS_LINKING_ENABLED_PROPERTY, memento
PROP_DIRTY
PROP_TITLE
Constructor and Description |
---|
CommonNavigatorEx()
Eclipse constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected CommonViewer |
createCommonViewerObject(Composite aParent)
Constructs and returns an instance of
CommonViewer . |
void |
createPartControl(Composite parent)
Create the CommonViewer part control and setup the default providers as necessary.
|
void |
dispose()
Disposes of the view part.
|
protected Object |
getInitialInput()
Overridden to block input at startup when loading all projects.
|
protected void |
handleDoubleClick(DoubleClickEvent event)
Note: This method is for internal use only.
|
void |
init(IViewSite site)
Initializes the view site.
|
void |
saveState(IMemento memento)
Saves the state.
|
static boolean |
selectReveal(Object[] elements)
Attempts to select and reveal the selection in the iizi Explorer view.
|
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
checkSite, getViewSite, setContentDescription, setInitializationData, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
public static final String ID
public static boolean selectReveal(Object[] elements)
elements
- The elements to select and reveal.public void init(IViewSite site) throws PartInitException
init
in interface IViewPart
init
in class ViewPart
PartInitException
public void createPartControl(Composite parent)
createPartControl
in interface IWorkbenchPart
createPartControl
in class CommonNavigator
protected Object getInitialInput()
getInitialInput
in class CommonNavigator
protected CommonViewer createCommonViewerObject(Composite aParent)
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 CommonViewercreateCommonViewerObject
in class CommonNavigator
aParent
- A composite parent to contain the CommonViewerprotected ActionGroup createCommonActionGroup()
createCommonActionGroup
in class CommonNavigator
public void saveState(IMemento memento)
saveState
in interface IPersistable
saveState
in interface IViewPart
saveState
in class CommonNavigator
protected void handleDoubleClick(DoubleClickEvent event)
handleDoubleClick
in class CommonNavigator
event
- Supplied by the DoubleClick listener.public void dispose()
dispose
in interface IWorkbenchPart
dispose
in class CommonNavigator
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.