org.dftproject.genesis.ui.views
Class ResourceView

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.dftproject.genesis.ui.views.ResourceView
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

public class ResourceView
extends org.eclipse.ui.part.ViewPart

ResourceView shows a linked tree view of a given resource.

This class needs some severe refactoring work done.


Field Summary
static java.lang.String ID
          The view ID.
static int nextID
          The next secondary ID to use when opening a resource view.
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
ResourceView()
           
 
Method Summary
protected  void contributeToActionBars()
          Contributes actions to the action bars.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
protected  void fillLocalToolBar(org.eclipse.jface.action.IToolBarManager manager)
          Adds actions to the local toolbar.
protected  void makeActions()
          Creates the actions used by this view.
protected  void setCurrentResource(IResourceNode resource)
          Internal method used to set the current resource without affecting the forward/back navigation.
 void setFocus()
           
 void setResource(IResourceNode resource)
          Sets the current resource.
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, 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 java.lang.String ID
The view ID.

See Also:
Constant Field Values

nextID

public static int nextID
The next secondary ID to use when opening a resource view.

Constructor Detail

ResourceView

public ResourceView()
Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart

makeActions

protected void makeActions()
Creates the actions used by this view.


contributeToActionBars

protected void contributeToActionBars()
Contributes actions to the action bars.


fillLocalToolBar

protected void fillLocalToolBar(org.eclipse.jface.action.IToolBarManager manager)
Adds actions to the local toolbar.

Parameters:
manager - the local toolbar manager

setResource

public void setResource(IResourceNode resource)
Sets the current resource.

Parameters:
resource - a resource node

setCurrentResource

protected void setCurrentResource(IResourceNode resource)
Internal method used to set the current resource without affecting the forward/back navigation.

Parameters:
resource - a resource node

setFocus

public void setFocus()
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