Class ProjectExplorer
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.ViewPart
-
- org.eclipse.ui.navigator.CommonNavigator
-
- org.eclipse.ui.navigator.resources.ProjectExplorer
-
- All Implemented Interfaces:
IAdaptable,IExecutableExtension,IPersistable,ISaveablePart,ISaveablesSource,IViewPart,IWorkbenchPart,IWorkbenchPart2,IWorkbenchPart3,ISetSelectionTarget,IShowInTarget,IWorkbenchPartOrientation
public final class ProjectExplorer extends CommonNavigator
- Since:
- 3.2
- See Also:
CommonNavigator,INavigatorContentService
-
-
Field Summary
Fields Modifier and Type Field Description static intPROJECTSstatic StringVIEW_IDProvides a constant for the standard instance of the Common Navigator.static intWORKING_SETS-
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 Constructor Description ProjectExplorer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CommonViewercreateCommonViewer(Composite aParent)Creates and initializes an instance ofCommonViewer.voidcreatePartControl(Composite aParent)Create the CommonViewer part control and setup the default providers as necessary.StringgetFrameToolTipText(Object element)Returns the tool tip text for the given element.intgetRootMode()StringgetWorkingSetLabel()protected voidhandleDoubleClick(DoubleClickEvent anEvent)Note: This method is for internal use only.voidinit(IViewSite site, IMemento memento)Note: This method is for internal use only.voidsaveState(IMemento aMemento)Note: This method is for internal use only.voidsetRootMode(int mode)voidsetWorkingSetLabel(String label)voidupdateTitle()The superclass does not deal with the content description, handle it here.-
Methods inherited from class org.eclipse.ui.navigator.CommonNavigator
createCommonActionGroup, createCommonManager, createCommonViewerObject, dispose, doSave, doSaveAs, getActiveSaveables, getAdapter, getCommonViewer, getInitialInput, getLinkHelperService, getMemento, getNavigatorActionService, getNavigatorContentService, getSaveables, initListeners, isDirty, isLinkingEnabled, isSaveAsAllowed, isSaveOnCloseNeeded, selectReveal, setFocus, setLinkingEnabled, show
-
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, 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
-
VIEW_ID
public static final String VIEW_ID
Provides a constant for the standard instance of the Common Navigator.
-
WORKING_SETS
public static final int WORKING_SETS
- Since:
- 3.4
- See Also:
- Constant Field Values
-
PROJECTS
public static final int PROJECTS
- Since:
- 3.4
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(IViewSite site, IMemento memento) throws PartInitException
Description copied from class:CommonNavigatorNote: This method is for internal use only. Clients should not call this method.
- Specified by:
initin interfaceIViewPart- Overrides:
initin classCommonNavigator- Parameters:
site- the view sitememento- the IViewPart state or null if there is no previous saved state- Throws:
PartInitException- if this view was not initialized successfully- See Also:
ViewPart.init(org.eclipse.ui.IViewSite, org.eclipse.ui.IMemento)
-
saveState
public void saveState(IMemento aMemento)
Description copied from class:CommonNavigatorNote: This method is for internal use only. Clients should not call this method.
- Specified by:
saveStatein interfaceIPersistable- Specified by:
saveStatein interfaceIViewPart- Overrides:
saveStatein classCommonNavigator- Parameters:
aMemento- a memento to receive the object state- See Also:
ViewPart.saveState(org.eclipse.ui.IMemento)
-
createPartControl
public void createPartControl(Composite aParent)
Description copied from class:CommonNavigatorCreate the CommonViewer part control and setup the default providers as necessary.
- Specified by:
createPartControlin interfaceIWorkbenchPart- Overrides:
createPartControlin classCommonNavigator- Parameters:
aParent- the parent control- See Also:
WorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)
-
updateTitle
public void updateTitle()
The superclass does not deal with the content description, handle it here.- Overrides:
updateTitlein classCommonNavigator- Restriction:
- This method is not intended to be referenced by clients.
-
getFrameToolTipText
public String getFrameToolTipText(Object element)
Returns the tool tip text for the given element.- Overrides:
getFrameToolTipTextin classCommonNavigator- Parameters:
element- the element- Returns:
- the tooltip
- Restriction:
- This method is not intended to be referenced by clients.
-
setRootMode
public void setRootMode(int mode)
- Overrides:
setRootModein classCommonNavigator- Parameters:
mode-- Since:
- 3.4
- Restriction:
- This method is not intended to be referenced by clients.
-
getRootMode
public int getRootMode()
- Overrides:
getRootModein classCommonNavigator- Returns:
- the root mode
- Since:
- 3.4
- Restriction:
- This method is not intended to be referenced by clients.
-
setWorkingSetLabel
public void setWorkingSetLabel(String label)
- Overrides:
setWorkingSetLabelin classCommonNavigator- Parameters:
label-- Since:
- 3.4
- Restriction:
- This method is not intended to be referenced by clients.
-
getWorkingSetLabel
public String getWorkingSetLabel()
- Overrides:
getWorkingSetLabelin classCommonNavigator- Returns:
- the working set label
- Since:
- 3.4
- Restriction:
- This method is not intended to be referenced by clients.
-
handleDoubleClick
protected void handleDoubleClick(DoubleClickEvent anEvent)
Description copied from class:CommonNavigatorNote: This method is for internal use only. Clients should not call this method.
- Overrides:
handleDoubleClickin classCommonNavigator- Parameters:
anEvent- Supplied by the DoubleClick listener.
-
createCommonViewer
protected CommonViewer createCommonViewer(Composite aParent)
Description copied from class:CommonNavigatorCreates and initializes an instance ofCommonViewer. The ID of the Eclipse view part will be used to create the viewer. The ID is important as some extensions indicate they should only be used with a particular viewer ID.- Overrides:
createCommonViewerin classCommonNavigator- Parameters:
aParent- A composite parent to contain the Common Viewer- Returns:
- An initialized instance of CommonViewer
-
-