Class UpDownButtonsValidator
java.lang.Object
org.palladiosimulator.editors.commons.dialogs.parameters.UpDownButtonsValidator
The Class place the validate methods for CompositeDataType and Parameters(Signature) editor area.
The methods are used for validating of InnerDeclaration of CompositeDataType and signature
parameters. Validating passes each Action (Delete, Up, Down) with call.
-
Method Summary
Modifier and TypeMethodDescriptionstatic UpDownButtonsValidator
Gets the singelton.void
setContents
(CreateEditorContents contents) Sets the contents.void
validate
(int elementIndex, int maxIndex) Validate.void
validateInnerDeclaration
(org.palladiosimulator.pcm.repository.InnerDeclaration declaration) Validate (Enabled/Unenabled) up-, down-button in the DataTypeDialog.void
validateParameter
(org.palladiosimulator.pcm.repository.Parameter parameter) Validate (Enabled/Unenabled) up-, down-button in the ParameterDialog.void
validateSelection
(Object selection) Validate selection from table viewer.boolean
validdateDeclarationInnerDataType
(org.palladiosimulator.pcm.repository.InnerDeclaration declaration, PalladioDataTypeDialog dialog) Validdate declaration inner data type.
-
Method Details
-
validate
public void validate(int elementIndex, int maxIndex) Validate.- Parameters:
elementIndex
- the element indexmaxIndex
- the max index
-
validateSelection
Validate selection from table viewer.- Parameters:
selection
- the selection
-
validateParameter
public void validateParameter(org.palladiosimulator.pcm.repository.Parameter parameter) Validate (Enabled/Unenabled) up-, down-button in the ParameterDialog. Call if selection instanceof Parameter.- Parameters:
parameter
- the parameter
-
validateInnerDeclaration
public void validateInnerDeclaration(org.palladiosimulator.pcm.repository.InnerDeclaration declaration) Validate (Enabled/Unenabled) up-, down-button in the DataTypeDialog. Call if selection instanceof InnerDeclaration.- Parameters:
declaration
- the declaration
-
validdateDeclarationInnerDataType
public boolean validdateDeclarationInnerDataType(org.palladiosimulator.pcm.repository.InnerDeclaration declaration, PalladioDataTypeDialog dialog) Validdate declaration inner data type.- Parameters:
declaration
- the declarationdialog
- the dialog- Returns:
- true, if successful
-
getSingelton
Gets the singelton.- Returns:
- the singelton
-
setContents
Sets the contents.- Parameters:
contents
- the new contents
-