Class DatabasesUIProvider
- java.lang.Object
-
- org.palladiosimulator.pcmtx.pcmtxviews.ui.AbstractUIProvider
-
- org.palladiosimulator.pcmtx.pcmtxviews.ui.DatabasesUIProvider
-
- All Implemented Interfaces:
Disposable,UIProvider
public class DatabasesUIProvider extends AbstractUIProvider
This class provides the GUI elements for theDatabasesView.
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.pcmtx.pcmtxviews.ui.AbstractUIProvider
viewer
-
-
Constructor Summary
Constructors Constructor Description DatabasesUIProvider(DataRepositoryManager drManager)Creates a newDatabasesUIProviderwith the givenDataRepositoryManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddButtonSelected()This method is called when the add button is selected.protected voidcreateAndInitList(Composite parent)Creates and initializes theListViewer.protected DetailsUIcreateDetailsUI(Composite parent)Creates theDetailsUIand returns it.protected voidcreateLabelComposite(Composite parent)Creates the elements of the label area.protected StringgetModelExtension()Returns a string representation of the extension of model files that can be modified by the elements in the provided UIprotected voidremoveButtonSelected()This method is called when the remove button is selected.voidupdateUI()Updates the UI.-
Methods inherited from class org.palladiosimulator.pcmtx.pcmtxviews.ui.AbstractUIProvider
clearUI, createUI, dispose, setEnabled, setFocus
-
-
-
-
Constructor Detail
-
DatabasesUIProvider
public DatabasesUIProvider(DataRepositoryManager drManager)
Creates a newDatabasesUIProviderwith the givenDataRepositoryManager.- Parameters:
drManager- theDataRepositoryManagerto access the model resource
-
-
Method Detail
-
createLabelComposite
protected void createLabelComposite(Composite parent)
Description copied from class:AbstractUIProviderCreates the elements of the label area.- Specified by:
createLabelCompositein classAbstractUIProvider- Parameters:
parent- the parentComposite
-
createDetailsUI
protected DetailsUI createDetailsUI(Composite parent)
Description copied from class:AbstractUIProviderCreates theDetailsUIand returns it.- Specified by:
createDetailsUIin classAbstractUIProvider- Parameters:
parent- the parentComposite- Returns:
- the created
DetailsUI
-
createAndInitList
protected void createAndInitList(Composite parent)
Description copied from class:AbstractUIProviderCreates and initializes theListViewer.- Specified by:
createAndInitListin classAbstractUIProvider- Parameters:
parent- the parentComposite
-
updateUI
public void updateUI()
Description copied from interface:UIProviderUpdates the UI.- Specified by:
updateUIin interfaceUIProvider- Specified by:
updateUIin classAbstractUIProvider
-
addButtonSelected
protected void addButtonSelected()
Description copied from class:AbstractUIProviderThis method is called when the add button is selected.- Specified by:
addButtonSelectedin classAbstractUIProvider
-
removeButtonSelected
protected void removeButtonSelected()
Description copied from class:AbstractUIProviderThis method is called when the remove button is selected.- Specified by:
removeButtonSelectedin classAbstractUIProvider
-
getModelExtension
protected String getModelExtension()
Description copied from class:AbstractUIProviderReturns a string representation of the extension of model files that can be modified by the elements in the provided UI- Specified by:
getModelExtensionin classAbstractUIProvider- Returns:
- the extension of model files that can be modified by the provided UI
-
-