Class CreateEditorContents
java.lang.Object
org.palladiosimulator.editors.commons.dialogs.parameters.CreateEditorContents
This class create a dialog area for Parameter-, DataTypeDialog. In order to make functionality
possible from dialogue perfectly to, the following functions must be called:
setViewerContentProvider(IContentProvider contentProvider),
setViewerLabelProvider(IBaseLabelProvider labelProvider), setViewerCellModifier(ICellModifier
cellModifier), setAddButtonActionListener(SelectionListener listener),
setDeleteButtonActionListener(SelectionListener listener),
setUpButtonActionListener(SelectionListener listener),
setDownButtonActionListener(SelectionListener listener), setViewerInput(Object input){
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Columns of a table, which is used into ParameterEditDialog.static final String
The Constant CONTEXT_COLUMN.static final int
The Constant CONTEXT_COLUMN_INDEX.static final int
The Constant ICON_COLUMN_INDEX.static final String
The Constant NAME_COLUMN.static final int
The Constant NAME_COLUMN_INDEX.static final String
The Constant TYPE_COLUMN.static final int
The Constant TYPE_COLUMN_INDEX. -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateEditorContents
Factory Method.void
Creates the name column cell editor.void
createSeparator
(Composite composite) Creates the separator.void
createTypeColumnCellEditor
(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain) Creates the type column cell editor.static String[]
Gets the column names.Gets the viewer.void
create dialog area.void
setAddButtonActionListener
(SelectionListener listener) Sets the adds the button action listener.void
Sets the delete button action listener.void
setDeleteItemsEnabled
(boolean enabled) set deleteItem - ToolItem enabled or disabled.void
setDownButtonActionListener
(SelectionListener listener) Sets the down button action listener.void
setDownItemsEnabled
(boolean enabled) set downItem - ToolItem enabled or disabled.void
setUpButtonActionListener
(SelectionListener listener) Sets the up button action listener.void
setUpItemsEnabled
(boolean enabled) set upItem - ToolItem enabled or disabled.void
setViewerCellModifier
(ICellModifier cellModifier) Sets the viewer cell modifier.void
setViewerContentProvider
(IContentProvider contentProvider) Sets the viewer content provider.void
setViewerInput
(Object input) Sets the viewer input.void
setViewerLabelProvider
(IBaseLabelProvider labelProvider) Sets the viewer label provider.void
Sets the viewer selection changed listener.
-
Field Details
-
ICON_COLUMN_INDEX
public static final int ICON_COLUMN_INDEXThe Constant ICON_COLUMN_INDEX.- See Also:
-
CONTEXT_COLUMN_INDEX
public static final int CONTEXT_COLUMN_INDEXThe Constant CONTEXT_COLUMN_INDEX.- See Also:
-
TYPE_COLUMN_INDEX
public static final int TYPE_COLUMN_INDEXThe Constant TYPE_COLUMN_INDEX.- See Also:
-
NAME_COLUMN_INDEX
public static final int NAME_COLUMN_INDEXThe Constant NAME_COLUMN_INDEX.- See Also:
-
ATTRIBUTE_ICON_COLUMN
Columns of a table, which is used into ParameterEditDialog.- See Also:
-
CONTEXT_COLUMN
The Constant CONTEXT_COLUMN.- See Also:
-
TYPE_COLUMN
The Constant TYPE_COLUMN.- See Also:
-
NAME_COLUMN
The Constant NAME_COLUMN.- See Also:
-
-
Method Details
-
create
Factory Method.- Parameters:
composite
- the composite- Returns:
- the creates the editor contents
-
createNameColumnCellEditor
public void createNameColumnCellEditor()Creates the name column cell editor. -
createTypeColumnCellEditor
public void createTypeColumnCellEditor(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain) Creates the type column cell editor.- Parameters:
editingDomain
- the editing domain
-
setViewerContentProvider
Sets the viewer content provider.- Parameters:
contentProvider
- the new viewer content provider
-
setViewerLabelProvider
Sets the viewer label provider.- Parameters:
labelProvider
- the new viewer label provider
-
setViewerCellModifier
Sets the viewer cell modifier.- Parameters:
cellModifier
- the new viewer cell modifier
-
setAddButtonActionListener
Sets the adds the button action listener.- Parameters:
listener
- the new adds the button action listener
-
setDeleteButtonActionListener
Sets the delete button action listener.- Parameters:
listener
- the new delete button action listener
-
setUpButtonActionListener
Sets the up button action listener.- Parameters:
listener
- the new up button action listener
-
setDownButtonActionListener
Sets the down button action listener.- Parameters:
listener
- the new down button action listener
-
setViewerSelectionChangedListener
Sets the viewer selection changed listener.- Parameters:
listener
- the new viewer selection changed listener
-
setViewerInput
Sets the viewer input.- Parameters:
input
- the new viewer input
-
init
create dialog area.- Parameters:
composite
- the composite
-
setUpItemsEnabled
public void setUpItemsEnabled(boolean enabled) set upItem - ToolItem enabled or disabled.- Parameters:
enabled
- the new up items enabled
-
setDownItemsEnabled
public void setDownItemsEnabled(boolean enabled) set downItem - ToolItem enabled or disabled.- Parameters:
enabled
- the new down items enabled
-
setDeleteItemsEnabled
public void setDeleteItemsEnabled(boolean enabled) set deleteItem - ToolItem enabled or disabled.- Parameters:
enabled
- the new delete items enabled
-
createSeparator
Creates the separator.- Parameters:
composite
- the composite
-
getColumnNames
Gets the column names.- Returns:
- the column names
-
getViewer
Gets the viewer.- Returns:
- the viewer
-