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 newDatabasesUIProvider
with the givenDataRepositoryManager
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addButtonSelected()
This method is called when the add button is selected.protected void
createAndInitList(Composite parent)
Creates and initializes theListViewer
.protected DetailsUI
createDetailsUI(Composite parent)
Creates theDetailsUI
and returns it.protected void
createLabelComposite(Composite parent)
Creates the elements of the label area.protected String
getModelExtension()
Returns a string representation of the extension of model files that can be modified by the elements in the provided UIprotected void
removeButtonSelected()
This method is called when the remove button is selected.void
updateUI()
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 newDatabasesUIProvider
with the givenDataRepositoryManager
.- Parameters:
drManager
- theDataRepositoryManager
to access the model resource
-
-
Method Detail
-
createLabelComposite
protected void createLabelComposite(Composite parent)
Description copied from class:AbstractUIProvider
Creates the elements of the label area.- Specified by:
createLabelComposite
in classAbstractUIProvider
- Parameters:
parent
- the parentComposite
-
createDetailsUI
protected DetailsUI createDetailsUI(Composite parent)
Description copied from class:AbstractUIProvider
Creates theDetailsUI
and returns it.- Specified by:
createDetailsUI
in classAbstractUIProvider
- Parameters:
parent
- the parentComposite
- Returns:
- the created
DetailsUI
-
createAndInitList
protected void createAndInitList(Composite parent)
Description copied from class:AbstractUIProvider
Creates and initializes theListViewer
.- Specified by:
createAndInitList
in classAbstractUIProvider
- Parameters:
parent
- the parentComposite
-
updateUI
public void updateUI()
Description copied from interface:UIProvider
Updates the UI.- Specified by:
updateUI
in interfaceUIProvider
- Specified by:
updateUI
in classAbstractUIProvider
-
addButtonSelected
protected void addButtonSelected()
Description copied from class:AbstractUIProvider
This method is called when the add button is selected.- Specified by:
addButtonSelected
in classAbstractUIProvider
-
removeButtonSelected
protected void removeButtonSelected()
Description copied from class:AbstractUIProvider
This method is called when the remove button is selected.- Specified by:
removeButtonSelected
in classAbstractUIProvider
-
getModelExtension
protected String getModelExtension()
Description copied from class:AbstractUIProvider
Returns a string representation of the extension of model files that can be modified by the elements in the provided UI- Specified by:
getModelExtension
in classAbstractUIProvider
- Returns:
- the extension of model files that can be modified by the provided UI
-
-