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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract booleanprotected abstract booleanprotected abstract SelectionListenerCreate a SelectionListener for the Add-Buttonprotected abstract SelectionListenerSet 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 ToolBarprotected abstract CellEditor[]createViewerCellEditors(Table table) Create a CellEditors for Viewer.protected abstract String[]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 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)
-