Class EditorSection
- java.lang.Object
-
- org.palladiosimulator.dataflow.ui.table.EditorSection
-
public abstract class EditorSection extends Object
Modified version oforg.palladiosimulator.editors.commons.tabs.generic.EditorSection
to suit the properties sheet of the Sirius Editors
-
-
Field Summary
Fields Modifier and Type Field Description protected TableViewer
viewer
TableViewer
-
Constructor Summary
Constructors Constructor Description EditorSection(Composite composite)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addViewerSelectionChangedListener(ISelectionChangedListener listener)
protected abstract boolean
canAddButonCreated()
protected abstract boolean
canDeleteButonCreated()
protected abstract SelectionListener
createAddButtonActionListener()
Create a SelectionListener for the Add-Buttonprotected abstract SelectionListener
createDeleteButtonListener()
Set a SelectionListener for the Delete-Buttonprotected abstract void
createTableColumns(Table table)
Create the table columns.protected void
createTableSection(ToolBar toolBar)
Create the section with Table and TableViewer.protected ToolBar
createToolBar()
protected abstract CellEditor[]
createViewerCellEditors(Table table)
Create a CellEditors for Viewer.EObject
getSelectedObject()
protected abstract String[]
getTableColumnNames()
TableViewer
getViewer()
protected abstract boolean
inputValidation(EObject eObject)
void
refresh()
protected void
setDeleteButtonEnabled(boolean enabled)
protected void
setDeleteButtonListener(TableViewer viewer)
Create a SelectionListener for the Add-Button and set him to TableViewer as 'SelectionChangedListener'.void
setEnabled(boolean isEnabled)
void
setViewerCellModifier(ICellModifier modifier)
Set a CellModifier for TabelViewer.void
setViewerContentProvider(IContentProvider contentProvider)
Set a ContentProvider for the TableViewervoid
setViewerInput(Object input)
Set a input for the TableViewervoid
setViewerLabelProvider(IBaseLabelProvider labelProvider)
Set a LabelProvider for the TableViewer
-
-
-
Field Detail
-
viewer
protected TableViewer viewer
TableViewer
-
-
Constructor Detail
-
EditorSection
public EditorSection(Composite composite)
-
-
Method Detail
-
createToolBar
protected ToolBar createToolBar()
-
createTableSection
protected void createTableSection(ToolBar toolBar)
Create the section with Table and TableViewer.
-
createTableColumns
protected abstract void createTableColumns(Table table)
Create the table columns.
-
inputValidation
protected abstract boolean inputValidation(EObject eObject)
-
setDeleteButtonListener
protected void setDeleteButtonListener(TableViewer viewer)
Create a SelectionListener for the Add-Button and set him to TableViewer as 'SelectionChangedListener'. Thus those becomes available element, which was selected in the TableViewer, for the DeleteAction- Parameters:
viewer
- instance of TableViewer
-
createDeleteButtonListener
protected abstract SelectionListener createDeleteButtonListener()
Set a SelectionListener for the Delete-Button
-
getTableColumnNames
protected abstract String[] getTableColumnNames()
-
canAddButonCreated
protected abstract boolean canAddButonCreated()
-
canDeleteButonCreated
protected abstract boolean canDeleteButonCreated()
-
createViewerCellEditors
protected abstract CellEditor[] createViewerCellEditors(Table table)
Create a CellEditors for Viewer.
-
setViewerCellModifier
public void setViewerCellModifier(ICellModifier modifier)
Set a CellModifier for TabelViewer.
-
addViewerSelectionChangedListener
public void addViewerSelectionChangedListener(ISelectionChangedListener listener)
-
createAddButtonActionListener
protected abstract SelectionListener createAddButtonActionListener()
Create a SelectionListener for the Add-Button
-
setViewerInput
public void setViewerInput(Object input)
Set a input for the TableViewer
-
setViewerContentProvider
public void setViewerContentProvider(IContentProvider contentProvider)
Set a ContentProvider for the TableViewer
-
setViewerLabelProvider
public void setViewerLabelProvider(IBaseLabelProvider labelProvider)
Set a LabelProvider for the TableViewer
-
refresh
public void refresh()
-
setDeleteButtonEnabled
protected void setDeleteButtonEnabled(boolean enabled)
-
getSelectedObject
public EObject getSelectedObject()
-
getViewer
public TableViewer getViewer()
-
setEnabled
public void setEnabled(boolean isEnabled)
-
-