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.EditorSectionto suit the properties sheet of the Sirius Editors
-
-
Field Summary
Fields Modifier and Type Field Description protected TableViewerviewerTableViewer
-
Constructor Summary
Constructors Constructor Description EditorSection(Composite composite)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddViewerSelectionChangedListener(ISelectionChangedListener listener)protected abstract booleancanAddButonCreated()protected abstract booleancanDeleteButonCreated()protected abstract SelectionListenercreateAddButtonActionListener()Create a SelectionListener for the Add-Buttonprotected abstract SelectionListenercreateDeleteButtonListener()Set a SelectionListener for the Delete-Buttonprotected abstract voidcreateTableColumns(Table table)Create the table columns.protected voidcreateTableSection(ToolBar toolBar)Create the section with Table and TableViewer.protected ToolBarcreateToolBar()protected abstract CellEditor[]createViewerCellEditors(Table table)Create a CellEditors for Viewer.EObjectgetSelectedObject()protected abstract String[]getTableColumnNames()TableViewergetViewer()protected abstract booleaninputValidation(EObject eObject)voidrefresh()protected voidsetDeleteButtonEnabled(boolean enabled)protected voidsetDeleteButtonListener(TableViewer viewer)Create a SelectionListener for the Add-Button and set him to TableViewer as 'SelectionChangedListener'.voidsetEnabled(boolean isEnabled)voidsetViewerCellModifier(ICellModifier modifier)Set a CellModifier for TabelViewer.voidsetViewerContentProvider(IContentProvider contentProvider)Set a ContentProvider for the TableViewervoidsetViewerInput(Object input)Set a input for the TableViewervoidsetViewerLabelProvider(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)
-
-