edu.wpi.ebob.views
Class ObjBenchView

java.lang.Object
  extended by org.eclipse.ui.part.WorkbenchPart
      extended by org.eclipse.ui.part.ViewPart
          extended by edu.wpi.ebob.views.ObjBenchView
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.part.IWorkbenchPartOrientation

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

The main view for the Object Bench.

Author:
Liam Morley

Field Summary
private  org.eclipse.jface.action.Action addInstanceAction
          action for adding a new instance
private  org.eclipse.jface.action.Action clearBenchAction
           
private  IClassManagerListener cmListener
           
private  InstanceContainer container
          the container for the gui objects
private  RemoveInstanceAction removeInstanceAction
          action for removing an instance
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
ObjBenchView()
           
 
Method Summary
private  void contributeToActionBars()
           
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          This is a callback that will allow us to create the viewer and initialize it.
 void dispose()
          Cleans things up properly.
private  void fillLocalPullDown(org.eclipse.jface.action.IMenuManager manager)
           
private  void fillLocalToolBar(org.eclipse.jface.action.IToolBarManager manager)
           
private  void hookContextMenu()
           
private  void makeActions()
           
 void setFocus()
          Passing the focus request to the viewer's control.
 
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
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
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

container

private InstanceContainer container
the container for the gui objects


addInstanceAction

private org.eclipse.jface.action.Action addInstanceAction
action for adding a new instance


removeInstanceAction

private RemoveInstanceAction removeInstanceAction
action for removing an instance


cmListener

private IClassManagerListener cmListener

clearBenchAction

private org.eclipse.jface.action.Action clearBenchAction
Constructor Detail

ObjBenchView

public ObjBenchView()
Method Detail

contributeToActionBars

private void contributeToActionBars()

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
This is a callback that will allow us to create the viewer and initialize it.

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

fillLocalPullDown

private void fillLocalPullDown(org.eclipse.jface.action.IMenuManager manager)

fillLocalToolBar

private void fillLocalToolBar(org.eclipse.jface.action.IToolBarManager manager)

hookContextMenu

private void hookContextMenu()

makeActions

private void makeActions()

setFocus

public void setFocus()
Passing the focus request to the viewer's control.

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

dispose

public void dispose()
Cleans things up properly.

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