org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.pages.columns
Class ASATableEditorColumnsViewerCellModifier
java.lang.Object
   org.eclipse.datatools.sqltools.common.ui.tableviewer.TableDataCellModifier
org.eclipse.datatools.sqltools.common.ui.tableviewer.TableDataCellModifier
       org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.pages.columns.ASATableEditorColumnsViewerCellModifier
org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.pages.columns.ASATableEditorColumnsViewerCellModifier
- All Implemented Interfaces: 
- org.eclipse.jface.viewers.ICellModifier
- public class ASATableEditorColumnsViewerCellModifier 
- extends TableDataCellModifier
Cell modified for ASA columns table viewer
- Author:
- Idull
 
| Method Summary | 
|  boolean | canChange(java.lang.Object element,
          int index)This method is used to verify if the specified column is editable.
 | 
|  void | modify(java.lang.Object element,
       java.lang.String property,
       java.lang.Object value)1.If the current column is PRI_KEY_COLUMN, and current value is false, if it's the last column in PK, should
 popup dialog to let user confirm;
 2.
 
 | 
|  void | setViewer(AccessibleTableViewer viewer)
 | 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ASATableEditorColumnsViewerCellModifier
public ASATableEditorColumnsViewerCellModifier(AccessibleTableViewer viewer,
                                               BaseTable table)
setViewer
public void setViewer(AccessibleTableViewer viewer)
- 
 
modify
public void modify(java.lang.Object element,
                   java.lang.String property,
                   java.lang.Object value)
- 1.If the current column is PRI_KEY_COLUMN, and current value is false, if it's the last column in PK, should
 popup dialog to let user confirm; 
 2.
 
 
- 
- Specified by:
- modifyin interface- org.eclipse.jface.viewers.ICellModifier
- Overrides:
- modifyin class- TableDataCellModifier
 
- 
 
canChange
public boolean canChange(java.lang.Object element,
                         int index)
- Description copied from class: TableDataCellModifier
- This method is used to verify if the specified column is editable.
 User needs to override this method if he wants to make some column readonly.
 
- 
- Overrides:
- canChangein class- TableDataCellModifier
 
- 
- index- the specified column
- Returns:
- true is editable