|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.hyades.ui.internal.navigator.Navigator
org.eclipse.hyades.trace.internal.ui.PDProjectExplorer
public class PDProjectExplorer
| Field Summary | |
|---|---|
protected TraceNavigatorActionGroup |
actionGroup
|
static java.lang.String |
ID
|
| Fields inherited from class org.eclipse.hyades.ui.internal.navigator.Navigator |
|---|
activeNavigator, ID_POPUP_MENU, initialViewerInput, layout, linkingEnabled, memento, navigatorID, SET_LINK_TO_EDITOR, settings, structuredViewer, TAG_ELEMENT, TAG_FACTORY_ID, TAG_SELECTION, TAG_STORE_VALUE |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
PDProjectExplorer()
|
|
| Method Summary | |
|---|---|
protected void |
createActions()
Subclasses should create the actions in this method. |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Creates the SWT controls for a part. |
protected org.eclipse.jface.viewers.StructuredViewer |
createViewer(org.eclipse.swt.widgets.Composite parent)
Creates the viewer that is displayed by this navigator. |
protected java.lang.Object |
createViewerInput()
Creates the object that is used as the input for this navigator's viewer. |
void |
dispose()
|
protected boolean |
editorActivated(org.eclipse.ui.IEditorPart editor)
An editor has been activated. |
void |
fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
Initialize and register context menu |
protected NavigatorActionGroup |
getActionGroup()
Returns the action group. |
protected NavigatorActionGroup |
getActionGroup(boolean dispose)
|
org.eclipse.swt.widgets.Control |
getControl()
|
static PDProjectExplorer |
getFromActivePerspective()
Returns the trace explorer part of the active perspective. |
org.eclipse.ui.plugin.AbstractUIPlugin |
getPlugin()
Returns the navigator's plugin. |
org.eclipse.swt.widgets.Shell |
getShell()
|
java.lang.String |
getStoreSection()
Returns the store section string that is used to retrieve this navigator's settings from the memento and dialog settings. |
protected java.lang.String |
getToolTipText()
Returns the tool tip text for the view. |
org.eclipse.jface.viewers.ITreeContentProvider |
getViewContentProvider()
|
org.eclipse.jface.viewers.ILabelProvider |
getViewLabelProvider()
|
protected void |
handleDoubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
Handles double clicks in viewer. |
void |
handleProfileEvent(org.eclipse.hyades.trace.ui.ProfileEvent event)
|
protected void |
initContextMenu()
Initializes and registers the context menu. |
protected void |
initListeners()
Adds the listeners to the viewer. |
boolean |
isShowingFolders()
Returns whether the navigator is showing projects and folders. |
protected void |
linkToEditor(org.eclipse.jface.viewers.IStructuredSelection selection)
Activates the editor if the selected resource is open. |
void |
partActivated(org.eclipse.ui.IWorkbenchPart part)
|
void |
partBroughtToTop(org.eclipse.ui.IWorkbenchPart part)
|
void |
propertyChanged(java.lang.Object source,
int propId)
Indicates that a property has changed. |
void |
refresh()
|
void |
refreshView(java.lang.Object selection)
Insert the method's description here. |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
|
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
|
void |
selectObject(java.lang.Object item)
Insert the method's description here. |
void |
selectReveal(org.eclipse.jface.viewers.ISelection selection)
|
protected void |
setActionGroup(TraceNavigatorActionGroup actionGroup)
Sets the action group. |
void |
setFocus()
Asks the part to take focus within the desktop. |
void |
setLinkingEnabled(boolean enabled)
Sets whether this navigator's selection automatically tracks the active editor. |
void |
updateActionBars()
Updates the action bar actions. |
protected void |
updateActionBars(org.eclipse.jface.viewers.IStructuredSelection selection)
Updates the action bar actions. |
| Methods inherited from class org.eclipse.hyades.ui.internal.navigator.Navigator |
|---|
convertFromViewer, convertToViewer, getHelpContextId, getID, getInitialViewerInput, getLayout, getSettings, getStatusLineMessage, getStructuredSelection, getViewer, handleChange, init, initSettings, isActiveNavigator, isInitialized, isLinkingEnabled, keyPressed, keyReleased, loadElements, loadMemento, loadSelection, loadSettings, menuAboutToShow, open, partClosed, partDeactivated, partOpened, saveElement, saveSelection, saveState, setActionGroup, setLayout, updateStatusLine, updateTitle |
| 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, getAdapter, 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.hyades.ui.internal.navigator.INavigator |
|---|
getSite, getViewSite |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
public static final java.lang.String ID
protected TraceNavigatorActionGroup actionGroup
| Constructor Detail |
|---|
public PDProjectExplorer()
| Method Detail |
|---|
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class NavigatorIWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)protected void updateActionBars(org.eclipse.jface.viewers.IStructuredSelection selection)
updateActionBars in class Navigatorselection - the current selectionpublic void updateActionBars()
selection - the current selectionpublic void dispose()
dispose in interface org.eclipse.hyades.ui.util.IDisposabledispose in interface org.eclipse.ui.IWorkbenchPartdispose in class NavigatorIWorkbenchPartpublic org.eclipse.swt.widgets.Control getControl()
public void refresh()
protected void initContextMenu()
initContextMenu in class Navigatorprotected void initListeners()
public void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
menu - public static PDProjectExplorer getFromActivePerspective()
null is returned.
protected java.lang.String getToolTipText()
protected NavigatorActionGroup getActionGroup()
getActionGroup in class Navigatorprotected NavigatorActionGroup getActionGroup(boolean dispose)
protected void setActionGroup(TraceNavigatorActionGroup actionGroup)
actionGroup - the action groupprotected void handleDoubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
public void refreshView(java.lang.Object selection)
public void selectObject(java.lang.Object item)
obj - java.lang.Objectpublic void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class NavigatorIWorkbenchPart.setFocus()public void handleProfileEvent(org.eclipse.hyades.trace.ui.ProfileEvent event)
handleProfileEvent in interface org.eclipse.hyades.trace.ui.IProfileEventListener
public void propertyChanged(java.lang.Object source,
int propId)
propertyChanged in interface org.eclipse.ui.IPropertyListenerIPropertyListenerpublic void setLinkingEnabled(boolean enabled)
INavigator
setLinkingEnabled in interface INavigatorsetLinkingEnabled in class Navigatorenabled - INavigator.setLinkingEnabled(boolean)public org.eclipse.ui.plugin.AbstractUIPlugin getPlugin()
INavigator
getPlugin in interface INavigatorpublic java.lang.String getStoreSection()
Navigator
getStoreSection in class Navigatorprotected void createActions()
Navigator
createActions in class Navigatorprotected java.lang.Object createViewerInput()
Navigator
createViewerInput in class Navigatorprotected org.eclipse.jface.viewers.StructuredViewer createViewer(org.eclipse.swt.widgets.Composite parent)
Navigator
createViewer in class Navigatorprotected boolean editorActivated(org.eclipse.ui.IEditorPart editor)
NavigatorSubclasses are don't need to test if the linking is enabled.
This method may be executed before the creation of the UI controls.
editorActivated in class Navigatoreditor - the active editor
true if the appropriate action was taken or
false otherwise.protected void linkToEditor(org.eclipse.jface.viewers.IStructuredSelection selection)
Navigator
linkToEditor in class Navigatorpublic boolean isShowingFolders()
INavigator
isShowingFolders in interface INavigatortrue if is showing project and folders,
false if not.public org.eclipse.swt.widgets.Shell getShell()
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.ISelectionListenerselectionChanged in class NavigatorISelectionListener.selectionChanged(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListenerselectionChanged in class NavigatorISelectionChangedListener.selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)public void partActivated(org.eclipse.ui.IWorkbenchPart part)
partActivated in interface org.eclipse.ui.IPartListenerpartActivated in class NavigatorIPartListener.partActivated(org.eclipse.ui.IWorkbenchPart)public void partBroughtToTop(org.eclipse.ui.IWorkbenchPart part)
partBroughtToTop in interface org.eclipse.ui.IPartListenerpartBroughtToTop in class NavigatorIPartListener.partBroughtToTop(org.eclipse.ui.IWorkbenchPart)public org.eclipse.jface.viewers.ITreeContentProvider getViewContentProvider()
getViewContentProvider in class Navigatorpublic org.eclipse.jface.viewers.ILabelProvider getViewLabelProvider()
getViewLabelProvider in class Navigatorpublic void selectReveal(org.eclipse.jface.viewers.ISelection selection)
selectReveal in interface org.eclipse.ui.part.ISetSelectionTargetselectReveal in class NavigatorISetSelectionTarget.selectReveal(org.eclipse.jface.viewers.ISelection)
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||