public class ImportWizardPageColumns.DatatypeEditingSupport
extends org.eclipse.jface.viewers.EditingSupport
ComboBoxCellEditor
.Constructor and Description |
---|
ImportWizardPageColumns.DatatypeEditingSupport(org.eclipse.jface.viewers.TableViewer viewer)
Creates a new editor for the given
TableViewer . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEdit(java.lang.Object column)
Indicates that enabled cells within this column can be edited.
|
protected org.eclipse.jface.viewers.CellEditor |
getCellEditor(java.lang.Object arg0)
Returns a reference to
#editor . |
protected java.lang.Object |
getValue(java.lang.Object element)
Returns current index of
#choices for given column datatype. |
protected void |
setValue(java.lang.Object element,
java.lang.Object value)
Applies data type choice made by the user
If a data type, which requires a format string, was selected an input
dialog will be shown
actionShowFormatInputDialog . |
void |
update(java.util.List<ImportWizardModelColumn> columns)
Updates this editing support
|
public ImportWizardPageColumns.DatatypeEditingSupport(org.eclipse.jface.viewers.TableViewer viewer)
TableViewer
.viewer
- The TableViewer this editor is implemented forcolumns
- The columnspublic void update(java.util.List<ImportWizardModelColumn> columns)
columns
- protected boolean canEdit(java.lang.Object column)
canEdit
in class org.eclipse.jface.viewers.EditingSupport
column
- protected org.eclipse.jface.viewers.CellEditor getCellEditor(java.lang.Object arg0)
#editor
.getCellEditor
in class org.eclipse.jface.viewers.EditingSupport
arg0
- protected java.lang.Object getValue(java.lang.Object element)
#choices
for given column datatype.getValue
in class org.eclipse.jface.viewers.EditingSupport
element
- protected void setValue(java.lang.Object element, java.lang.Object value)
actionShowFormatInputDialog
. Otherwise
the choice is directly applied. THe input dialog itself will make
sure that the format string is valid for the data type. This method on
the other hand will try to apply the format string to the available
preview data ImportWizardModel.getPreviewData()
making sure
that it matches. In case of an error the choice is discarded.setValue
in class org.eclipse.jface.viewers.EditingSupport
element
- value
-