org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.pages.columns
Class ASATableEditorColumnsViewer

java.lang.Object
  extended by org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.pages.columns.ASATableEditorColumnsViewer

public class ASATableEditorColumnsViewer
extends java.lang.Object

Columns viewer for ASA table schema editor

Author:
Idull

Field Summary
static java.lang.String COPY_ROW_ACTION_EFINITION_ID
           
static java.lang.String CUT_ROW_ACTION_DEFINITION_ID
           
static java.lang.String PASTE_ROW_ACTION_DEFINITION_ID
           
 
Constructor Summary
ASATableEditorColumnsViewer(org.eclipse.jface.viewers.ICellModifier modifier, DatabaseDefinition dbdefinition, org.eclipse.datatools.sqltools.common.core.tableviewer.AbstractTableData data, Schema schema, boolean needUniqueColumn, boolean needMarkerColumn, SchemaObjectEditorModelListenersNotifier notifier, org.eclipse.ui.forms.widgets.FormToolkit toolkit, IValidatablePart part, ICuttablePart cuttablePart, org.eclipse.ui.IEditorPart editor, org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier)
          Constructor
 
Method Summary
 void createTable(org.eclipse.swt.widgets.Composite parent)
          This method initializes _table
 org.eclipse.datatools.sqltools.common.core.tableviewer.AbstractTableData getData()
           
 org.eclipse.emf.common.util.Diagnostic getDiagnosticAfterPopulating()
          Returns the diagnostic of this part, which is generated when populating the object.
 AccessibleTableViewer getViewer()
           
 void populateSQLObject(BaseTable table)
          Populate the table using the user's input
 void setDataAsInput(org.eclipse.datatools.sqltools.common.core.tableviewer.AbstractTableData data)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPY_ROW_ACTION_EFINITION_ID

public static final java.lang.String COPY_ROW_ACTION_EFINITION_ID
See Also:
Constant Field Values

PASTE_ROW_ACTION_DEFINITION_ID

public static final java.lang.String PASTE_ROW_ACTION_DEFINITION_ID
See Also:
Constant Field Values

CUT_ROW_ACTION_DEFINITION_ID

public static final java.lang.String CUT_ROW_ACTION_DEFINITION_ID
See Also:
Constant Field Values
Constructor Detail

ASATableEditorColumnsViewer

public ASATableEditorColumnsViewer(org.eclipse.jface.viewers.ICellModifier modifier,
                                   DatabaseDefinition dbdefinition,
                                   org.eclipse.datatools.sqltools.common.core.tableviewer.AbstractTableData data,
                                   Schema schema,
                                   boolean needUniqueColumn,
                                   boolean needMarkerColumn,
                                   SchemaObjectEditorModelListenersNotifier notifier,
                                   org.eclipse.ui.forms.widgets.FormToolkit toolkit,
                                   IValidatablePart part,
                                   ICuttablePart cuttablePart,
                                   org.eclipse.ui.IEditorPart editor,
                                   org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier)
Constructor

Parameters:
modifier -
dbdefinition -
data -
schema -
needUniqueColumn - whether the unique column is needed or not
Method Detail

createTable

public void createTable(org.eclipse.swt.widgets.Composite parent)
This method initializes _table


getViewer

public AccessibleTableViewer getViewer()

setDataAsInput

public void setDataAsInput(org.eclipse.datatools.sqltools.common.core.tableviewer.AbstractTableData data)

getData

public org.eclipse.datatools.sqltools.common.core.tableviewer.AbstractTableData getData()

populateSQLObject

public void populateSQLObject(BaseTable table)
Populate the table using the user's input

Parameters:
table -

getDiagnosticAfterPopulating

public org.eclipse.emf.common.util.Diagnostic getDiagnosticAfterPopulating()
Returns the diagnostic of this part, which is generated when populating the object. So this method should be called after the populateSQLObject is called.

Returns: