pl.edu.agh.cast.ui.outline
Class OutlineTreeView

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 pl.edu.agh.cast.ui.AbstractConfigurableView
                  extended by pl.edu.agh.cast.ui.AbstractTreeView
                      extended by pl.edu.agh.cast.ui.outline.OutlineTreeView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPartListener, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class OutlineTreeView
extends AbstractTreeView
implements org.eclipse.ui.IPartListener

Diagram outline view.

Author:
AGH CAST Team

Field Summary
static String ID
          View Id.
 
Fields inherited from class pl.edu.agh.cast.ui.AbstractConfigurableView
configuration, log
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
OutlineTreeView()
          Constructor.
 
Method Summary
protected  void activate()
          Activate the view, e.g.
protected  void contributeToActionBars()
          Fill action bars with view specific actions.
protected  void createControl(org.eclipse.swt.widgets.Composite parent)
          This method creats the tree control, it is intendet to be changed in subclasses which need some more sophisticated control.
 void dispose()
          
protected  void hookContextMenu()
          Add actions and action groups to context menu.
protected  void hookDoubleClickAction()
          Provide action for double click.
protected  void makeActions()
          Create actions which are used in this view.
 void partActivated(org.eclipse.ui.IWorkbenchPart part)
          
 void partBroughtToTop(org.eclipse.ui.IWorkbenchPart part)
          
 void partClosed(org.eclipse.ui.IWorkbenchPart part)
          
 void partDeactivated(org.eclipse.ui.IWorkbenchPart part)
          
 void partOpened(org.eclipse.ui.IWorkbenchPart part)
          
 
Methods inherited from class pl.edu.agh.cast.ui.AbstractTreeView
createPartControl, getViewer, setFocus, setInput
 
Methods inherited from class pl.edu.agh.cast.ui.AbstractConfigurableView
getConfiguration, init, saveState
 
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.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID

public static final String ID
View Id.

See Also:
Constant Field Values
Constructor Detail

OutlineTreeView

public OutlineTreeView()
Constructor.

Method Detail

activate

protected void activate()
Activate the view, e.g. register listeners, etc.

Specified by:
activate in class AbstractConfigurableView
See Also:
AbstractConfigurableView.activate()

dispose

public void dispose()

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

contributeToActionBars

protected void contributeToActionBars()
Description copied from class: AbstractConfigurableView
Fill action bars with view specific actions.

Specified by:
contributeToActionBars in class AbstractConfigurableView

hookContextMenu

protected void hookContextMenu()
Description copied from class: AbstractConfigurableView
Add actions and action groups to context menu.

Specified by:
hookContextMenu in class AbstractConfigurableView

hookDoubleClickAction

protected void hookDoubleClickAction()
Description copied from class: AbstractConfigurableView
Provide action for double click.

Specified by:
hookDoubleClickAction in class AbstractConfigurableView

makeActions

protected void makeActions()
Description copied from class: AbstractConfigurableView
Create actions which are used in this view.

Specified by:
makeActions in class AbstractConfigurableView

createControl

protected void createControl(org.eclipse.swt.widgets.Composite parent)
Description copied from class: AbstractTreeView
This method creats the tree control, it is intendet to be changed in subclasses which need some more sophisticated control.

Overrides:
createControl in class AbstractTreeView
Parameters:
parent - parent control

partActivated

public void partActivated(org.eclipse.ui.IWorkbenchPart part)

Specified by:
partActivated in interface org.eclipse.ui.IPartListener
See Also:
IPartListener.partActivated(org.eclipse.ui.IWorkbenchPart)

partDeactivated

public void partDeactivated(org.eclipse.ui.IWorkbenchPart part)

Specified by:
partDeactivated in interface org.eclipse.ui.IPartListener
See Also:
IPartListener.partDeactivated(org.eclipse.ui.IWorkbenchPart)

partBroughtToTop

public void partBroughtToTop(org.eclipse.ui.IWorkbenchPart part)

Specified by:
partBroughtToTop in interface org.eclipse.ui.IPartListener
See Also:
IPartListener.partBroughtToTop(org.eclipse.ui.IWorkbenchPart)

partClosed

public void partClosed(org.eclipse.ui.IWorkbenchPart part)

Specified by:
partClosed in interface org.eclipse.ui.IPartListener
See Also:
IPartListener.partClosed(org.eclipse.ui.IWorkbenchPart)

partOpened

public void partOpened(org.eclipse.ui.IWorkbenchPart part)

Specified by:
partOpened in interface org.eclipse.ui.IPartListener
See Also:
IPartListener.partOpened(org.eclipse.ui.IWorkbenchPart)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.