org.eclipse.ohf.stem.ui.ge.views
Class GEView

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.eclipse.ohf.stem.ui.ge.views.GEView
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 GEView
extends org.eclipse.ui.part.ViewPart

GEView: Opens a view of STEM that controls the interface to GoogleEarth.

The actual interface to GoogleEarth is handled by GEInterface class This GUI view only handles the direct User interface.

It displays a window with a list of active simulations and supports a popup context window that allows a set of actions either global actions or actions on a specific simulation


Field Summary
static java.lang.String ID_GE_VIEW
          The identifier of the GoogleEarth View
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
GEView()
          The GEView constructor gets control when the user opens the "View" in the current perspective.
 
Method Summary
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          This is a callback that will allow us to create the viewer and initialize it.
 java.lang.String displayFolderDialog(java.lang.String folder)
          dialog to choose a folder to display files from.
 void dispose()
           
 GEViewContentProvider getContentProvider()
           
 org.eclipse.jface.viewers.ListViewer getViewer()
           
 void refresh()
          call the refresh method for the viewer
 void setFocus()
          Passing the focus request to the viewer's control.
 void showMessage(java.lang.String message)
          Put up a dialog box with an informational msg
 java.lang.String verifyFolder(java.lang.String folder)
          Verify that we can use the folder to store KML
 
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, 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, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID_GE_VIEW

public static final java.lang.String ID_GE_VIEW
The identifier of the GoogleEarth View

See Also:
Constant Field Values
Constructor Detail

GEView

public GEView()
The GEView constructor gets control when the user opens the "View" in the current perspective. In the GEView constructor we will create an instance of GEInterface which does all the work.

Method Detail

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. We also add some useful buttons to the view

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart
Parameters:
parent - Composite to work with

refresh

public void refresh()
call the refresh method for the viewer


showMessage

public void showMessage(java.lang.String message)
Put up a dialog box with an informational msg

Parameters:
message -

verifyFolder

public java.lang.String verifyFolder(java.lang.String folder)
Verify that we can use the folder to store KML

Parameters:
folder -
Returns:
verified folder

displayFolderDialog

public java.lang.String displayFolderDialog(java.lang.String folder)
dialog to choose a folder to display files from. It is expected to have KML files in it already

Parameters:
folder - Default folder.
Returns:
folder path or null if no display desired

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

getViewer

public org.eclipse.jface.viewers.ListViewer getViewer()
Returns:
the viewer

dispose

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

getContentProvider

public GEViewContentProvider getContentProvider()
Returns:
the contentProvider