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
public class PalladioDataTypeDialog extends DataTypeDialog
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
Constructors Constructor Description PalladioDataTypeDialog(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createCollectionDataType()
The method create a new CollectionDataType.void
createCompositeDataType()
The method create a new CompositeDataType.void
createInnerSectionCompositeGroup(Composite group)
The method create the editing area for CompositeDataType.org.palladiosimulator.pcm.repository.CompositeDataType
getCompositeDataType()
Gets the composite data type.org.palladiosimulator.pcm.repository.DataType
getEditedDataType()
Gets the edited data type.protected org.palladiosimulator.pcm.repository.Repository
getEditedRepository()
Gets the edited repository.CreateEditorContents
getEditorContents()
Gets the editor contents.protected org.palladiosimulator.pcm.repository.DataType
getInnerDataType()
Gets the inner data type.String[]
getLoadedRepositories()
The method define the list with a loaded repository.String
getSelectedInnerType(SelectionEvent e)
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
validateCompositeDataType()
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 Detail
-
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 Detail
-
getLoadedRepositories
public String[] 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
public void setEditedResource(String repositoryName)
Description copied from class:DataTypeDialog
Sets the edited resource.- Specified by:
setEditedResource
in classDataTypeDialog
- 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 classDataTypeDialog
- Parameters:
group
- the group
-
getSelectedInnerType
public String getSelectedInnerType(SelectionEvent e)
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
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
-
-