this class realize the main wizard page. a lot to generalize (performComponentRole() etc.) More...
Classes | |
class | AttributeSelectionListener |
the selection listener for the attributes. More... | |
Public Member Functions | |
boolean | canFlipToNextPage () |
void | checkReferenceConstraints () |
checks if all references are defined. e.g. a port must have an interface reference! | |
void | createControl (Composite parent) |
EditableViewMainWizardPage (String pageName, Role myRole, String title, String startstring, String description, EditableViewWizard myWizard, Vector< String > usedidentifiers, boolean done) | |
the constructor. | |
String | getActualidentifier () |
LinkedHashMap< String, Button > | getButtonspecifications () |
LinkedHashMap< String, Combo > | getNeededattributescombos () |
boolean | isNofinishallowed () |
void | performFinish () |
handles the special information for the element to add after the finish button was pressed. | |
void | setNofinishallowed (boolean nofinishallowed) |
void | updateUserInfos () |
updates the user info via the setMessage("...") method. | |
Protected Member Functions | |
void | validateInput (Text text) |
Validates the input. | |
Protected Attributes | |
Vector< String > | alreadyUsedIdentifiers = null |
vector to save all used identifier (needed e.g. for the feature creation). | |
boolean | blockattributeselection = false |
to prevent loops inside the attribute selection class | |
LinkedHashMap< String, Button > | buttonspecifications = null |
map to collect all buttons according to their importance. | |
CLabel | hint = null |
the referencepage hint | |
Text | text = null |
the text field for the identifier of the element. | |
Private Member Functions | |
boolean | checkIfThereIsAnEditablePage () |
Checks if there is an editable page. | |
boolean | checkNeededAttributeConstraints (String id) |
checks if the attribute are avaiable for the role. e.g. a port can't defined with an inout direction attribute. | |
void | handleNeededAttributes (Composite parent) |
builds up the needed attributes automatically. | |
void | handleOptionalButton (Button button) |
void | handleSpecifications (Composite parent) |
builds up the attribute specifications. | |
void | initializeValidator () |
initialize the validator for the input name. | |
Private Attributes | |
String | actualidentifier = null |
the actualidentifier. | |
Group | identgroup = null |
the first group, where the identifier text field is displayed. | |
LinkedHashMap< String, Combo > | neededattributescombos = null |
the needed attributes combos, string is the attribute name | |
boolean | nofinishallowed = false |
referenceconstraints | |
Group | specpanel = null |
the second group, where the attributes are displayed. | |
String | startstring = null |
the start string for the text field. | |
Group | thirdpanel = null |
the third group, where the datatypes are displayed. | |
IInputValidator | validator |
The input validator, or null if none. |
this class realize the main wizard page. a lot to generalize (performComponentRole() etc.)
de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.EditableViewMainWizardPage | ( | String | pageName, | |
Role | myRole, | |||
String | title, | |||
String | startstring, | |||
String | description, | |||
EditableViewWizard | myWizard, | |||
Vector< String > | usedidentifiers, | |||
boolean | done | |||
) |
the constructor.
pageName | ||
myRole | ||
title | ||
startstring | ||
description | ||
myWizard | ||
usedidentifiers | ||
done |
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.canFlipToNextPage | ( | ) |
The WizardPage
implementation of this IWizardPage
method returns true
if this page is complete (isPageComplete
) and there is a next page to flip to. Subclasses may override (extend or reimplement).
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.checkIfThereIsAnEditablePage | ( | ) | [private] |
Checks if there is an editable page.
true | if there is a editable page | |
false | if there is no editable page |
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.checkNeededAttributeConstraints | ( | String | id | ) | [private] |
checks if the attribute are avaiable for the role. e.g. a port can't defined with an inout direction attribute.
id |
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.checkReferenceConstraints | ( | ) |
checks if all references are defined. e.g. a port must have an interface reference!
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.createControl | ( | Composite | parent | ) |
String de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.getActualidentifier | ( | ) |
LinkedHashMap<String, Button> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.getButtonspecifications | ( | ) |
LinkedHashMap<String, Combo> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.getNeededattributescombos | ( | ) |
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.handleNeededAttributes | ( | Composite | parent | ) | [private] |
builds up the needed attributes automatically.
parent |
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.handleOptionalButton | ( | Button | button | ) | [private] |
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.handleSpecifications | ( | Composite | parent | ) | [private] |
builds up the attribute specifications.
parent |
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.initializeValidator | ( | ) | [private] |
initialize the validator for the input name.
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.isNofinishallowed | ( | ) |
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.performFinish | ( | ) |
handles the special information for the element to add after the finish button was pressed.
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.setNofinishallowed | ( | boolean | nofinishallowed | ) |
nofinishallowed | the nofinishallowed to set |
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.updateUserInfos | ( | ) |
updates the user info via the setMessage("...") method.
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.validateInput | ( | Text | text | ) | [protected] |
Validates the input.
String de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.actualidentifier = null [private] |
the actualidentifier.
Vector<String> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.alreadyUsedIdentifiers = null [protected] |
vector to save all used identifier (needed e.g. for the feature creation).
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.blockattributeselection = false [protected] |
to prevent loops inside the attribute selection class
LinkedHashMap<String, Button> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.buttonspecifications = null [protected] |
map to collect all buttons according to their importance.
CLabel de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.hint = null [protected] |
the referencepage hint
Group de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.identgroup = null [private] |
the first group, where the identifier text field is displayed.
LinkedHashMap<String, Combo> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.neededattributescombos = null [private] |
the needed attributes combos, string is the attribute name
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.nofinishallowed = false [private] |
referenceconstraints
Group de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.specpanel = null [private] |
the second group, where the attributes are displayed.
String de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.startstring = null [private] |
the start string for the text field.
Text de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.text = null [protected] |
the text field for the identifier of the element.
Group de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.thirdpanel = null [private] |
the third group, where the datatypes are displayed.
IInputValidator de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewMainWizardPage.validator [private] |
The input validator, or null
if none.