Class UpDownButtonsValidator
- java.lang.Object
-
- org.palladiosimulator.editors.commons.dialogs.parameters.UpDownButtonsValidator
-
public final class UpDownButtonsValidator extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpDownButtonsValidator
getSingelton()
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 Detail
-
validate
public void validate(int elementIndex, int maxIndex)
Validate.- Parameters:
elementIndex
- the element indexmaxIndex
- the max index
-
validateSelection
public void validateSelection(Object selection)
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
public static UpDownButtonsValidator getSingelton()
Gets the singelton.- Returns:
- the singelton
-
setContents
public void setContents(CreateEditorContents contents)
Sets the contents.- Parameters:
contents
- the new contents
-
-