Class PalladioDataTypeDialog

All Implemented Interfaces:
IShellProvider

public class PalladioDataTypeDialog extends DataTypeDialog
The class initialize the DataTypeDialog with the Palladio Component Model specific characteristics.
  • Constructor Details

    • PalladioDataTypeDialog

      public PalladioDataTypeDialog(Shell parentShell, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
      Instantiates a new palladio data type dialog.
      Parameters:
      parentShell - the parent shell
      editingDomain - the editing domain
    • PalladioDataTypeDialog

      public PalladioDataTypeDialog(Shell parentShell, org.palladiosimulator.pcm.repository.DataType editeDataType)
      Instantiates a new palladio data type dialog.
      Parameters:
      parentShell - the parent shell
      editeDataType - the edite data type
  • Method Details

    • getLoadedRepositories

      public String[] getLoadedRepositories()
      Description copied from class: DataTypeDialog
      The method define the list with a loaded repository.
      Specified by:
      getLoadedRepositories in class DataTypeDialog
      Returns:
      the loaded repositories
    • setEditedResource

      public void setEditedResource(String repositoryName)
      Description copied from class: DataTypeDialog
      Sets the edited resource.
      Specified by:
      setEditedResource in class DataTypeDialog
      Parameters:
      repositoryName - the new edited resource
    • createInnerSectionCompositeGroup

      public void createInnerSectionCompositeGroup(Composite group)
      Description copied from class: DataTypeDialog
      The method create the editing area for CompositeDataType.
      Specified by:
      createInnerSectionCompositeGroup in class DataTypeDialog
      Parameters:
      group - the group
    • getSelectedInnerType

      public String getSelectedInnerType(SelectionEvent e)
      Description copied from class: DataTypeDialog
      Gets the selected inner type.
      Specified by:
      getSelectedInnerType in class DataTypeDialog
      Parameters:
      e - the event
      Returns:
      the selected inner type
    • validateCompositeDataType

      public boolean validateCompositeDataType()
      Description copied from class: DataTypeDialog
      Validate composite data type.
      Specified by:
      validateCompositeDataType in class DataTypeDialog
      Returns:
      true, if successful
    • createCollectionDataType

      public void createCollectionDataType()
      Description copied from class: DataTypeDialog
      The method create a new CollectionDataType.
      Specified by:
      createCollectionDataType in class DataTypeDialog
    • createCompositeDataType

      public void createCompositeDataType()
      Description copied from class: DataTypeDialog
      The method create a new CompositeDataType.
      Specified by:
      createCompositeDataType in class DataTypeDialog
    • getEditedDataType

      public org.palladiosimulator.pcm.repository.DataType getEditedDataType()
      Gets the edited data type.
      Returns:
      the edited data type
    • getCompositeDataType

      public org.palladiosimulator.pcm.repository.CompositeDataType getCompositeDataType()
      Gets the composite data type.
      Returns:
      the compositeDataType
    • setCompositeDataType

      public void setCompositeDataType(org.palladiosimulator.pcm.repository.CompositeDataType compositeDataType)
      Sets the composite data type.
      Parameters:
      compositeDataType - the compositeDataType to set
    • getEditorContents

      public CreateEditorContents getEditorContents()
      Gets the editor contents.
      Returns:
      the editorContents
    • refresh

      public void refresh()
      Refresh.
    • getInnerDataType

      protected org.palladiosimulator.pcm.repository.DataType getInnerDataType()
      Gets the inner data type.
      Returns:
      the inner data type
    • getEditedRepository

      protected org.palladiosimulator.pcm.repository.Repository getEditedRepository()
      Gets the edited repository.
      Returns:
      the edited repository