fable.framework.ui.views
Class JmolView

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 fable.framework.ui.views.JmolView
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 JmolView
extends org.eclipse.ui.part.ViewPart

JmolView is a view for displaying 3d chemical structures using Jmol. TODO add controls to change view add support for scripting

Author:
Andy Gotz

Field Summary
static java.lang.String ID
           
static int viewCount
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
JmolView()
           
 
Method Summary
 void browseFile()
          Browse for a structure file name and open it with the Jmol viewer.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
static java.lang.String getID()
           
 void openFile(java.lang.String _fullFileName)
          Open a structure file and display it with the Jmol viewer.
 void setFocus()
           
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationData
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, dispose, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, 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

viewCount

public static int viewCount
Constructor Detail

JmolView

public JmolView()
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

setFocus

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

browseFile

public void browseFile()
Browse for a structure file name and open it with the Jmol viewer.


openFile

public void openFile(java.lang.String _fullFileName)
Open a structure file and display it with the Jmol viewer. Display the file name in the view part name.

Parameters:
fullFileName -

getID

public static java.lang.String getID()
Returns:
the id