de.cau.cs.kieler.sim.kiem.ui.views
Class KiemPropertyEditing

java.lang.Object
  extended by org.eclipse.jface.viewers.EditingSupport
      extended by de.cau.cs.kieler.sim.kiem.ui.views.KiemPropertyEditing

public class KiemPropertyEditing
extends EditingSupport

The Class KiemPropertyEditing. It handles the editing support for KiemProperties in the DataComponentWrappers table of the KiemView.

Rating proposed yellow
(2009-01-15)

Constructor Summary
KiemPropertyEditing(KiemView parentParam, ColumnViewer viewer, int columnIndex)
          Instantiates a new KiemPropertyEditing for the tree.
 
Method Summary
protected  boolean canEdit(Object element)
           
protected  CellEditor getCellEditor(Object element)
           
protected  Object getValue(Object element)
           
protected  void setValue(Object element, Object value)
           
 
Methods inherited from class org.eclipse.jface.viewers.EditingSupport
getViewer, initializeCellEditorValue, saveCellEditorValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KiemPropertyEditing

public KiemPropertyEditing(KiemView parentParam,
                           ColumnViewer viewer,
                           int columnIndex)
Instantiates a new KiemPropertyEditing for the tree. KiemProperty values are in the second column (index 1) of the tree-table of DataComponentWrappers where the first column (index 0) holds the KiemProperty key. Hence editing support for KiemProperties is only available for the first, the value column. Otherwise an error is generated.

Parameters:
parentParam - the parent view
viewer - the column viewer
columnIndex - the column index
Method Detail

canEdit

protected boolean canEdit(Object element)
Specified by:
canEdit in class EditingSupport

getCellEditor

protected CellEditor getCellEditor(Object element)
Specified by:
getCellEditor in class EditingSupport

getValue

protected Object getValue(Object element)
Specified by:
getValue in class EditingSupport

setValue

protected void setValue(Object element,
                        Object value)
Specified by:
setValue in class EditingSupport