Class DataTypeDialog

    • Constructor Detail

      • DataTypeDialog

        public DataTypeDialog​(Shell parentShell)
        Instantiates a new data type dialog.
        Parameters:
        parentShell - the parent shell
    • Method Detail

      • init

        protected void init​(DataTypeEnum dataTyp,
                            String repositoryName,
                            String entityName,
                            String entityInnerType)
        The method is called with the editing of the type of DataType.
        Parameters:
        dataTyp - the data typ
        repositoryName - - the repository name of editing DataType
        entityName - - the name of the editing DataType
        entityInnerType - - the inner type of the editing DataType
      • setEnabled

        public void setEnabled​(boolean enabled)
        Enables the receiver all component if the argument is true, and disables it otherwise.
        Parameters:
        enabled - the new enabled state
      • getEditeDataType

        protected DataTypeEnum getEditeDataType()
        Gets the edite data type.
        Returns:
        the edite data type
      • setOKButtonEnabled

        protected void setOKButtonEnabled()
        Sets the ok button enabled.
      • setOKButtonDisabled

        protected void setOKButtonDisabled()
        Sets the ok button disabled.
      • getLoadedRepositories

        public abstract String[] getLoadedRepositories()
        The method define the list with a loaded repository.
        Returns:
        the loaded repositories
      • createInnerSectionCompositeGroup

        public abstract void createInnerSectionCompositeGroup​(Composite group)
        The method create the editing area for CompositeDataType.
        Parameters:
        group - the group
      • getSelectedInnerType

        public abstract String getSelectedInnerType​(SelectionEvent event)
        Gets the selected inner type.
        Parameters:
        event - the event
        Returns:
        the selected inner type
      • setEditedResource

        public abstract void setEditedResource​(String resource)
        Sets the edited resource.
        Parameters:
        resource - the new edited resource
      • createCollectionDataType

        public abstract void createCollectionDataType()
        The method create a new CollectionDataType.
      • createCompositeDataType

        public abstract void createCompositeDataType()
        The method create a new CompositeDataType.
      • validateCompositeDataType

        public abstract boolean validateCompositeDataType()
        Validate composite data type.
        Returns:
        true, if successful
      • getEntityName

        protected String getEntityName()
        Gets the entity name.
        Returns:
        the entity name
      • setTopCompositeLayout

        protected void setTopCompositeLayout()
        The method specified in topControl is visible and all other controls are not visible.
      • setTopCollectionLayout

        protected void setTopCollectionLayout()
        Sets the top collection layout.
      • validateInput

        public void validateInput()
        The method examines whether the straight editing DataTYpe type has all parameters.
      • getChoiceTypeGroup

        protected Group getChoiceTypeGroup()
        Gets the choice type group.
        Returns:
        the choice type group
      • getCompositeButton

        protected Button getCompositeButton()
        Gets the composite button.
        Returns:
        the composite button
      • getCollectionButton

        protected Button getCollectionButton()
        Gets the collection button.
        Returns:
        the collection button
      • getStackLayout

        protected StackLayout getStackLayout()
        Gets the stack layout.
        Returns:
        the stack layout
      • getComposite

        protected Composite getComposite()
        Gets the composite.
        Returns:
        the composite