de.cau.cs.kieler.sim.table.views
Class DataTableView

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 de.cau.cs.kieler.sim.table.views.DataTableView
All Implemented Interfaces:
IAdaptable, IExecutableExtension, IPersistable, IViewPart, IWorkbenchPart, IWorkbenchPart2, IWorkbenchPart3, IWorkbenchPartOrientation

public class DataTableView
extends ViewPart

The class DataTableView implements the ViewPart of the KIEM data table. This is the basic user interface that allows the user to observer values or modify values of variables or signals. The additional check box (for signals) lets the user set a signal explicitly to a present or absent status.

Rating red

Field Summary
static String ID
          The ID of the view as specified by the extension.
static int KEYBOARD_DELETE
          The Constant KEYBOARD_DELETE.
static int KEYBOARD_SPACE
          The Constant KEYBOARD_DELETE.
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
DataTableView()
          The constructor of the ViewPart of the data table plug-in.
 
Method Summary
 void createPartControl(Composite parent)
          This is a callback that will allow us to create the viewer and initialize it.
static DataTableView getInstance()
          Gets the single instance of DataTableView.
 TableDataList getTableDataList()
          Gets the single instance of the TableDataList.
 boolean isCurrentlyEditing()
          Checks if user is currently editing an entry.
 void refreshViewer()
          Refreshes the tree table viewer.
 void setCurrentlyEditing(boolean currentlyEditingParam)
          Sets the currently editing status to true or false.
 void setFocus()
          Pass 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
addPartPropertyListener, addPropertyListener, dispose, 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, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID

public static final String ID
The ID of the view as specified by the extension.

See Also:
Constant Field Values

KEYBOARD_DELETE

public static final int KEYBOARD_DELETE
The Constant KEYBOARD_DELETE.

See Also:
Constant Field Values

KEYBOARD_SPACE

public static final int KEYBOARD_SPACE
The Constant KEYBOARD_DELETE.

See Also:
Constant Field Values
Constructor Detail

DataTableView

public DataTableView()
The constructor of the ViewPart of the data table plug-in.

Method Detail

getInstance

public static DataTableView getInstance()
Gets the single instance of DataTableView.

Returns:
single instance of DataTableView

getTableDataList

public TableDataList getTableDataList()
Gets the single instance of the TableDataList.

Returns:
the table data list

refreshViewer

public void refreshViewer()
Refreshes the tree table viewer.


setCurrentlyEditing

public void setCurrentlyEditing(boolean currentlyEditingParam)
Sets the currently editing status to true or false.

Parameters:
currentlyEditingParam - true, if user is currently editing an entry

isCurrentlyEditing

public boolean isCurrentlyEditing()
Checks if user is currently editing an entry.

Returns:
true, if user is currently editing

createPartControl

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

Specified by:
createPartControl in interface IWorkbenchPart
Specified by:
createPartControl in class WorkbenchPart
Parameters:
parent - the composite parent

setFocus

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

Specified by:
setFocus in interface IWorkbenchPart
Specified by:
setFocus in class WorkbenchPart