Class EditorSection
java.lang.Object
org.palladiosimulator.dataflow.ui.table.EditorSection
Modified version of
org.palladiosimulator.editors.commons.tabs.generic.EditorSection
to suit the properties sheet of the Sirius Editors-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected abstract boolean
protected abstract boolean
protected abstract SelectionListener
Create a SelectionListener for the Add-Buttonprotected abstract SelectionListener
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
protected abstract CellEditor[]
createViewerCellEditors
(Table table) Create a CellEditors for Viewer.protected abstract String[]
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 Details
-
viewer
TableViewer
-
-
Constructor Details
-
EditorSection
-
-
Method Details
-
createToolBar
-
createTableSection
Create the section with Table and TableViewer. -
createTableColumns
Create the table columns. -
inputValidation
-
setDeleteButtonListener
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
Set a SelectionListener for the Delete-Button -
getTableColumnNames
-
canAddButonCreated
protected abstract boolean canAddButonCreated() -
canDeleteButonCreated
protected abstract boolean canDeleteButonCreated() -
createViewerCellEditors
Create a CellEditors for Viewer. -
setViewerCellModifier
Set a CellModifier for TabelViewer. -
addViewerSelectionChangedListener
-
createAddButtonActionListener
Create a SelectionListener for the Add-Button -
setViewerInput
Set a input for the TableViewer -
setViewerContentProvider
Set a ContentProvider for the TableViewer -
setViewerLabelProvider
Set a LabelProvider for the TableViewer -
refresh
public void refresh() -
setDeleteButtonEnabled
protected void setDeleteButtonEnabled(boolean enabled) -
getSelectedObject
-
getViewer
-
setEnabled
public void setEnabled(boolean isEnabled)
-