pl.edu.agh.cast.ui
Class AbstractTreeView

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
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, 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
Direct Known Subclasses:
NavigatorTreeView, OutlineTreeView

public abstract class AbstractTreeView
extends AbstractConfigurableView

This class is base class for all viewes which implement the IConfigurableView and have TreeViewer as visual model.

Author:
Aleksander Pohl apohllo[at]o2.pl

Field Summary
 
Fields inherited from class pl.edu.agh.cast.ui.AbstractConfigurableView
_configuration, log
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
AbstractTreeView()
           
 
Method Summary
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 createPartControl(org.eclipse.swt.widgets.Composite parent)
          This method initializes the part control, i.e.
 void dispose()
           
protected  org.eclipse.jface.viewers.TreeViewer getViewer()
           
 void setFocus()
          This method sets the focus on the tree viewer.
 void setInput(java.lang.Object object)
          Sets the input for the viewer.
 
Methods inherited from class pl.edu.agh.cast.ui.AbstractConfigurableView
activate, contributeToActionBars, getConfiguration, hookContextMenu, hookDoubleClickAction, init, makeActions, 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
 

Constructor Detail

AbstractTreeView

public AbstractTreeView()
Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
This method initializes the part control, i.e. the TreeViewer.

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart

createControl

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.

Parameters:
parent -

setInput

public void setInput(java.lang.Object object)
Sets the input for the viewer. This default implementation sends the object to the viewer without checking its type, etc. This should be done in the content provider associated with the viewer.


setFocus

public void setFocus()
This method sets the focus on the tree viewer.

Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.part.WorkbenchPart

getViewer

protected org.eclipse.jface.viewers.TreeViewer getViewer()


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.