Class PalladioDataTypeDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.jface.dialogs.TitleAreaDialog
org.palladiosimulator.editors.commons.dialogs.datatype.DataTypeDialog
org.palladiosimulator.editors.commons.dialogs.datatype.PalladioDataTypeDialog
- All Implemented Interfaces:
IShellProvider
The class initialize the DataTypeDialog with the Palladio Component Model specific
characteristics.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
-
Field Summary
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred
-
Constructor Summary
ConstructorDescriptionPalladioDataTypeDialog
(Shell parentShell, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain) Instantiates a new palladio data type dialog.PalladioDataTypeDialog
(Shell parentShell, org.palladiosimulator.pcm.repository.DataType editeDataType) Instantiates a new palladio data type dialog. -
Method Summary
Modifier and TypeMethodDescriptionvoid
The method create a new CollectionDataType.void
The method create a new CompositeDataType.void
The method create the editing area for CompositeDataType.org.palladiosimulator.pcm.repository.CompositeDataType
Gets the composite data type.org.palladiosimulator.pcm.repository.DataType
Gets the edited data type.protected org.palladiosimulator.pcm.repository.Repository
Gets the edited repository.Gets the editor contents.protected org.palladiosimulator.pcm.repository.DataType
Gets the inner data type.String[]
The method define the list with a loaded repository.Gets the selected inner type.void
refresh()
Refresh.void
setCompositeDataType
(org.palladiosimulator.pcm.repository.CompositeDataType compositeDataType) Sets the composite data type.void
setEditedResource
(String repositoryName) Sets the edited resource.boolean
Validate composite data type.Methods inherited from class org.palladiosimulator.editors.commons.dialogs.datatype.DataTypeDialog
configureShell, createButtonsForButtonBar, createDialogArea, getChoiceTypeGroup, getCollectionButton, getComposite, getCompositeButton, getEditeDataType, getEntityName, getInitialSize, getStackLayout, init, setEnabled, setOKButtonDisabled, setOKButtonEnabled, setTopCollectionLayout, setTopCompositeLayout, validateInput
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
createContents, getErrorMessage, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
PalladioDataTypeDialog
public PalladioDataTypeDialog(Shell parentShell, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain) Instantiates a new palladio data type dialog.- Parameters:
parentShell
- the parent shelleditingDomain
- 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 shellediteDataType
- the edite data type
-
-
Method Details
-
getLoadedRepositories
Description copied from class:DataTypeDialog
The method define the list with a loaded repository.- Specified by:
getLoadedRepositories
in classDataTypeDialog
- Returns:
- the loaded repositories
-
setEditedResource
Description copied from class:DataTypeDialog
Sets the edited resource.- Specified by:
setEditedResource
in classDataTypeDialog
- Parameters:
repositoryName
- the new edited resource
-
createInnerSectionCompositeGroup
Description copied from class:DataTypeDialog
The method create the editing area for CompositeDataType.- Specified by:
createInnerSectionCompositeGroup
in classDataTypeDialog
- Parameters:
group
- the group
-
getSelectedInnerType
Description copied from class:DataTypeDialog
Gets the selected inner type.- Specified by:
getSelectedInnerType
in classDataTypeDialog
- 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 classDataTypeDialog
- Returns:
- true, if successful
-
createCollectionDataType
public void createCollectionDataType()Description copied from class:DataTypeDialog
The method create a new CollectionDataType.- Specified by:
createCollectionDataType
in classDataTypeDialog
-
createCompositeDataType
public void createCompositeDataType()Description copied from class:DataTypeDialog
The method create a new CompositeDataType.- Specified by:
createCompositeDataType
in classDataTypeDialog
-
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
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
-