TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.hyades.trace.internal.ui
Class PDProjectExplorer

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by org.eclipse.hyades.ui.internal.navigator.Navigator
                  extended by org.eclipse.hyades.trace.internal.ui.PDProjectExplorer
All Implemented Interfaces:
java.util.EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.hyades.trace.ui.IProfileEventListener, INavigator, org.eclipse.hyades.ui.util.IDisposable, org.eclipse.jface.action.IMenuListener, org.eclipse.jface.viewers.IOpenListener, org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.internal.SWTEventListener, org.eclipse.ui.IPartListener, org.eclipse.ui.IPersistable, org.eclipse.ui.IPropertyListener, org.eclipse.ui.ISelectionListener, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.ISetSelectionTarget, org.eclipse.ui.part.IWorkbenchPartOrientation

public class PDProjectExplorer
extends Navigator
implements org.eclipse.hyades.trace.ui.IProfileEventListener, org.eclipse.ui.IPropertyListener


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

ID

public static final java.lang.String ID
See Also:
Constant Field Values

actionGroup

protected TraceNavigatorActionGroup actionGroup
Constructor Detail

PDProjectExplorer

public PDProjectExplorer()
Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Creates the SWT controls for a part. TIP : This method must call hookFocus() on some control (most likely the top-level control), within the view. This translates OS-level focus to part focus within the desktop.

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Overrides:
createPartControl in class Navigator
See Also:
IWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)

updateActionBars

protected void updateActionBars(org.eclipse.jface.viewers.IStructuredSelection selection)
Updates the action bar actions.

Overrides:
updateActionBars in class Navigator
Parameters:
selection - the current selection

updateActionBars

public void updateActionBars()
Updates the action bar actions.

Parameters:
selection - the current selection

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.hyades.ui.util.IDisposable
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class Navigator
See Also:
IWorkbenchPart

getControl

public org.eclipse.swt.widgets.Control getControl()

refresh

public void refresh()

initContextMenu

protected void initContextMenu()
Initializes and registers the context menu.

Overrides:
initContextMenu in class Navigator

initListeners

protected void initListeners()
Adds the listeners to the viewer.


fillContextMenu

public void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
Initialize and register context menu

Parameters:
menu -

getFromActivePerspective

public static PDProjectExplorer getFromActivePerspective()
Returns the trace explorer part of the active perspective. If there isn't any trace explorer part null is returned.


getToolTipText

protected java.lang.String getToolTipText()
Returns the tool tip text for the view.


getActionGroup

protected NavigatorActionGroup getActionGroup()
Returns the action group.

Overrides:
getActionGroup in class Navigator
Returns:
the action group

getActionGroup

protected NavigatorActionGroup getActionGroup(boolean dispose)

setActionGroup

protected void setActionGroup(TraceNavigatorActionGroup actionGroup)
Sets the action group.

Parameters:
actionGroup - the action group

handleDoubleClick

protected void handleDoubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
Handles double clicks in viewer. Opens editor if file double-clicked.


refreshView

public void refreshView(java.lang.Object selection)
Insert the method's description here. Creation date: (10/05/2000 1:19:46 PM)


selectObject

public void selectObject(java.lang.Object item)
Insert the method's description here. Creation date: (09/26/2000 12:35:46 PM)

Parameters:
obj - java.lang.Object

setFocus

public void setFocus()
Asks the part to take focus within the desktop.

Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Overrides:
setFocus in class Navigator
See Also:
IWorkbenchPart.setFocus()

handleProfileEvent

public void handleProfileEvent(org.eclipse.hyades.trace.ui.ProfileEvent event)
Specified by:
handleProfileEvent in interface org.eclipse.hyades.trace.ui.IProfileEventListener

propertyChanged

public void propertyChanged(java.lang.Object source,
                            int propId)
Indicates that a property has changed.

Specified by:
propertyChanged in interface org.eclipse.ui.IPropertyListener
See Also:
IPropertyListener

setLinkingEnabled

public void setLinkingEnabled(boolean enabled)
Description copied from interface: INavigator
Sets whether this navigator's selection automatically tracks the active editor.

Specified by:
setLinkingEnabled in interface INavigator
Overrides:
setLinkingEnabled in class Navigator
Parameters:
enabled -
See Also:
INavigator.setLinkingEnabled(boolean)

getPlugin

public org.eclipse.ui.plugin.AbstractUIPlugin getPlugin()
Description copied from interface: INavigator
Returns the navigator's plugin. This method should not return null.

Specified by:
getPlugin in interface INavigator
Returns:
AbstractUIPlugin

getStoreSection

public java.lang.String getStoreSection()
Description copied from class: Navigator
Returns the store section string that is used to retrieve this navigator's settings from the memento and dialog settings.

Specified by:
getStoreSection in class Navigator
Returns:
String. This method should not return null.

createActions

protected void createActions()
Description copied from class: Navigator
Subclasses should create the actions in this method.

Specified by:
createActions in class Navigator

createViewerInput

protected java.lang.Object createViewerInput()
Description copied from class: Navigator
Creates the object that is used as the input for this navigator's viewer.

Specified by:
createViewerInput in class Navigator
Returns:
Object

createViewer

protected org.eclipse.jface.viewers.StructuredViewer createViewer(org.eclipse.swt.widgets.Composite parent)
Description copied from class: Navigator
Creates the viewer that is displayed by this navigator. Subclasses are responsible for setting the content and label provider and also to ensure that this method returns a valid value.

Specified by:
createViewer in class Navigator
Returns:
StructuredViewer

editorActivated

protected boolean editorActivated(org.eclipse.ui.IEditorPart editor)
Description copied from class: Navigator
An editor has been activated. Sets the selection in this navigator to be the editor's input, if linking is enabled.

Subclasses are don't need to test if the linking is enabled.

This method may be executed before the creation of the UI controls.

Specified by:
editorActivated in class Navigator
Parameters:
editor - the active editor
Returns:
true if the appropriate action was taken or false otherwise.

linkToEditor

protected void linkToEditor(org.eclipse.jface.viewers.IStructuredSelection selection)
Description copied from class: Navigator
Activates the editor if the selected resource is open.

Specified by:
linkToEditor in class Navigator

isShowingFolders

public boolean isShowingFolders()
Description copied from interface: INavigator
Returns whether the navigator is showing projects and folders.

Specified by:
isShowingFolders in interface INavigator
Returns:
true if is showing project and folders, false if not.

getShell

public org.eclipse.swt.widgets.Shell getShell()

selectionChanged

public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.ISelectionListener
Overrides:
selectionChanged in class Navigator
See Also:
ISelectionListener.selectionChanged(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)

selectionChanged

public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
Specified by:
selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListener
Overrides:
selectionChanged in class Navigator
See Also:
ISelectionChangedListener.selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)

partActivated

public void partActivated(org.eclipse.ui.IWorkbenchPart part)
Specified by:
partActivated in interface org.eclipse.ui.IPartListener
Overrides:
partActivated in class Navigator
See Also:
IPartListener.partActivated(org.eclipse.ui.IWorkbenchPart)

partBroughtToTop

public void partBroughtToTop(org.eclipse.ui.IWorkbenchPart part)
Specified by:
partBroughtToTop in interface org.eclipse.ui.IPartListener
Overrides:
partBroughtToTop in class Navigator
See Also:
IPartListener.partBroughtToTop(org.eclipse.ui.IWorkbenchPart)

getViewContentProvider

public org.eclipse.jface.viewers.ITreeContentProvider getViewContentProvider()
Overrides:
getViewContentProvider in class Navigator
Returns:
the view content provider

getViewLabelProvider

public org.eclipse.jface.viewers.ILabelProvider getViewLabelProvider()
Overrides:
getViewLabelProvider in class Navigator
Returns:
the view label provider

selectReveal

public void selectReveal(org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectReveal in interface org.eclipse.ui.part.ISetSelectionTarget
Overrides:
selectReveal in class Navigator
See Also:
ISetSelectionTarget.selectReveal(org.eclipse.jface.viewers.ISelection)

TPTP 4.5.0 Platform Project
Internal API Specification