Class 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 Detail

      • validate

        public void validate​(int elementIndex,
                             int maxIndex)
        Validate.
        Parameters:
        elementIndex - the element index
        maxIndex - 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 declaration
        dialog - 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