Package com.iizigo.navigator
Class CommonNavigatorEx
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.ui.navigator.CommonNavigator
com.iizigo.navigator.CommonNavigatorEx
- All Implemented Interfaces:
IAdaptable,IExecutableExtension,IPersistable,ISaveablePart,ISaveablesSource,IViewPart,IWorkbenchPart,IWorkbenchPart2,IWorkbenchPart3,ISetSelectionTarget,IShowInTarget,IWorkbenchPartOrientation
Common Navigator with extension for filtering and synchronized References.
- Author:
- Christopher Mindus
Field Summary
FieldsFields inherited from class org.eclipse.ui.navigator.CommonNavigator
IS_LINKING_ENABLED_PROPERTY, mementoFields inherited from interface org.eclipse.ui.ISaveablePart
PROP_DIRTYFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLEConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionprotected ActionGroupThe 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 CommonViewercreateCommonViewerObject(Composite aParent) Constructs and returns an instance ofCommonViewer.voidcreatePartControl(Composite parent) Create the CommonViewer part control and setup the default providers as necessary.voiddispose()Disposes of the view part.protected ObjectOverridden to block input at startup when loading all projects.protected voidNote: This method is for internal use only.voidInitializes the view site.voidSaves the state.static booleanselectReveal(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, updateTitleMethods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, setContentDescription, setInitializationData, setPartNameMethods 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, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
Field Details
ID
The View Part ID "com.iizigo.navigator".- See Also:
Constructor Details
CommonNavigatorEx
public CommonNavigatorEx()Eclipse constructor.
Method Details
selectReveal
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
Initializes the view site.- Specified by:
initin interfaceIViewPart- Overrides:
initin classViewPart- Throws:
PartInitException
createPartControl
Create the CommonViewer part control and setup the default providers as necessary.- Specified by:
createPartControlin interfaceIWorkbenchPart- Overrides:
createPartControlin classCommonNavigator
getInitialInput
Overridden to block input at startup when loading all projects.- Overrides:
getInitialInputin classCommonNavigator
createCommonViewerObject
Constructs and returns an instance ofCommonViewer. 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:
createCommonViewerObjectin classCommonNavigator- Parameters:
aParent- A composite parent to contain the CommonViewer- Returns:
- An instance of CommonViewer
- Since:
- 3.4
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:
createCommonActionGroupin classCommonNavigator- Returns:
- The Action Group to be associated with the Common Navigator View Part.
saveState
Saves the state.- Specified by:
saveStatein interfaceIPersistable- Specified by:
saveStatein interfaceIViewPart- Overrides:
saveStatein classCommonNavigator
handleDoubleClick
Note: This method is for internal use only. Clients should not call this method.- Overrides:
handleDoubleClickin classCommonNavigator- Parameters:
event- Supplied by the DoubleClick listener.
dispose
public void dispose()Disposes of the view part.- Specified by:
disposein interfaceIWorkbenchPart- Overrides:
disposein classCommonNavigator