Public Member Functions | Private Member Functions | Private Attributes

de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard Class Reference

The main wizard class where all pages are added and the finish button is handled. More...

List of all members.

Public Member Functions

void addPages ()
boolean canFinish ()
void changeWindowTitle (String title)
 changes the actual window title.
void configureMainPage (String title, String startstring, String description, Vector< String > usedIdentifiers)
 via this method the mainpage can be configured.
void configureNextPage (String title, String description, boolean done, String attribute)
 via this method all pages to the corresponding attribute can be configured.
void configureReferencePage (String title, Vector< Role > possiblereferences, String description, boolean done, boolean referenceaction)
 via this method the reference page can be configured.
 EditableViewWizard (Role myrole, String action, IAXLangElement element, IAXLangElement actualeditedelement)
IAXLangElement getActualeditedelement ()
LinkedHashMap< String,
AtomicBoolean > 
getAttributechoosen ()
IAXLangElement getElement ()
EditableViewMainWizardPage getMainpage ()
EditableViewWizardDialog getMyDialog ()
LinkedHashMap< Role, ArrayList
< String > > 
getNeededattributes ()
LinkedHashMap< String,
EditableViewNextWizardPage
getNextpages ()
ArrayList< String > getPageorder ()
LinkedHashMap< String,
LinkedHashMap< String, Boolean > > 
getPossibleattributes ()
Vector< Role > getPossiblereferences ()
LinkedHashMap< Role, ArrayList
< Role > > 
getReferenceconstraints ()
EditableViewReferenceWizardPage getReferencepage ()
void init (IWorkbench workbench, IStructuredSelection selection)
void performActivation ()
 performs a Activation.
void performActivity ()
 performs a Activity.
void performActivityAttribute ()
 performs the ActivityAttribute.
void performAddMultipleReferencesFromTable (IAXLangElement element, Role role, IAXLangElement referencedelement)
 adds multiple references to the element from a table.
void performAddSingleReference (IAXLangElement element, Role role)
 adds a single reference to the element.
void performAddSingleReferenceFromComboViaDependedRole (IAXLangElement element, Role parentrole, Role role)
 adds a single reference to the element via the depended role element map.
void performBehaviour ()
 performs a Behaviour.
void performChildMapping ()
 performs a ChildMapping.
void performConfiguration (boolean featuremodelladd)
 performs a performXORHWSubComponent.
void performConnection ()
 performs the scope.
void performDataElementLink ()
 performs a DataElementLink.
void performDescription ()
 performs the description.
boolean performFinish ()
void performHWConnection ()
 performs a HWConnection.
void performMapping (Role source, Role target)
 performs a Mapping.
void performNeededAttributes (Role myRole)
 realize the add of a needed attribute to the element.
void performOptionalAttribute ()
 performs the Optional attribute.
void performORAttribute (Role role)
 performs the OR Attribute.
void performRWAccess ()
 performs a RWAccess.
void performSubService ()
 performs a SubService.
void performTransactionModel ()
 performs a TransactionModel.
void performTrigger ()
 performs a Trigger.
boolean performXORAttribute (Role role)
 performs the XOR Attribute.
void resetWindowTitle ()
 resets the window title
void setMyDialog (EditableViewWizardDialog dialog)

Private Member Functions

IAXLangElement getTheRightElement ()
 looks for the right element for adding the new child or reference.
XORComponent performXORSubComponent ()
 performs a XORSubComponent.

Private Attributes

String action = null
 the action to perform (for the title)
IAXLangElement actualeditedelement = null
 the element which was chosen inside the TreeEditor
LinkedHashMap< String,
AtomicBoolean > 
attributechoosen = null
 map which saves the actual status of a attribute (chosen or not) and only for this attributes which have a next page!
IAXLangElement element = null
 the element to edit
EditableViewMainWizardPage mainpage = null
 the mainwizard page where the user can enter the identifier of the element
EditableViewWizardDialog myDialog = null
 the wizard dialog
Role myrole = null
 the role of the chosen element
LinkedHashMap< Role, ArrayList
< String > > 
neededattributes = null
 the needed attributes map , e.g. direction for port or datatype for operations...
LinkedHashMap< String,
EditableViewNextWizardPage
nextpages = null
 the possible pages which depends on the possible attributes
String oldwindowtitle = null
ArrayList< String > pageorder = null
 the corresponding page order
LinkedHashMap< String,
LinkedHashMap< String, Boolean > > 
possibleattributes = null
 the attributes which appears on the mainpage,<identifier,<text,nextpage?>
Vector< Role > possiblereferences = null
 the possible references (for the reference page)
boolean referenceaction = false
 marks that a new reference action is activ
LinkedHashMap< Role, ArrayList
< Role > > 
referenceconstraints = null
 the reference constraints map, e.g. a port must have an interface reference
EditableViewReferenceWizardPage referencepage = null
 the the referencewizard page where all references are handles (via new child or new reference)

Detailed Description

The main wizard class where all pages are added and the finish button is handled.

Author:
skaegebein
Version:
0.8.0
Since:
0.8.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.EditableViewWizard ( Role  myrole,
String  action,
IAXLangElement  element,
IAXLangElement  actualeditedelement 
)
Parameters:
myrole 
action 
element 
actualeditedelement 

Member Function Documentation

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.addPages (  ) 
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.canFinish (  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.changeWindowTitle ( String  title  ) 

changes the actual window title.

Parameters:
title 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.configureMainPage ( String  title,
String  startstring,
String  description,
Vector< String >  usedIdentifiers 
)

via this method the mainpage can be configured.

Parameters:
title 
startstring 
description 
usedIdentifiers 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.configureNextPage ( String  title,
String  description,
boolean  done,
String  attribute 
)

via this method all pages to the corresponding attribute can be configured.

Parameters:
title 
description 
done 
attribute 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.configureReferencePage ( String  title,
Vector< Role >  possiblereferences,
String  description,
boolean  done,
boolean  referenceaction 
)

via this method the reference page can be configured.

Parameters:
title 
possiblereferences 
description 
done 

Todo:
check this change

IAXLangElement de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getActualeditedelement (  ) 
Returns:
the actualeditedelement
LinkedHashMap<String, AtomicBoolean> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getAttributechoosen (  ) 
Returns:
the attributechoosen
IAXLangElement de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getElement (  ) 
Returns:
the element
EditableViewMainWizardPage de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getMainpage (  ) 
Returns:
the mainpage
EditableViewWizardDialog de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getMyDialog (  ) 
Returns:
the myDialog
LinkedHashMap<Role, ArrayList<String> > de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getNeededattributes (  ) 
Returns:
the neededattributes
LinkedHashMap<String, EditableViewNextWizardPage> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getNextpages (  ) 
Returns:
the nextpages
ArrayList<String> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getPageorder (  ) 
Returns:
the pageorder
LinkedHashMap<String, LinkedHashMap<String, Boolean> > de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getPossibleattributes (  ) 
Returns:
the possibleattributes
Vector<Role> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getPossiblereferences (  ) 
Returns:
the possiblereferences
LinkedHashMap<Role, ArrayList<Role> > de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getReferenceconstraints (  ) 
Returns:
the referenceconstraints
EditableViewReferenceWizardPage de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getReferencepage (  ) 
Returns:
the referencepage
IAXLangElement de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.getTheRightElement (  )  [private]

looks for the right element for adding the new child or reference.

Returns:
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.init ( IWorkbench  workbench,
IStructuredSelection  selection 
)
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performActivation (  ) 

performs a Activation.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performActivity (  ) 

performs a Activity.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performActivityAttribute (  ) 

performs the ActivityAttribute.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performAddMultipleReferencesFromTable ( IAXLangElement  element,
Role  role,
IAXLangElement  referencedelement 
)

adds multiple references to the element from a table.

Parameters:
element 
role 
referencedelement 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performAddSingleReference ( IAXLangElement  element,
Role  role 
)

adds a single reference to the element.

Parameters:
element 
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performAddSingleReferenceFromComboViaDependedRole ( IAXLangElement  element,
Role  parentrole,
Role  role 
)

adds a single reference to the element via the depended role element map.

Parameters:
element 
parentrole 
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performBehaviour (  ) 

performs a Behaviour.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performChildMapping (  ) 

performs a ChildMapping.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performConfiguration ( boolean  featuremodelladd  ) 

performs a performXORHWSubComponent.

performs a Configuration.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performConnection (  ) 

performs the scope.

performs the data element. performs a Connection.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performDataElementLink (  ) 

performs a DataElementLink.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performDescription (  ) 

performs the description.

boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performFinish (  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performHWConnection (  ) 

performs a HWConnection.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performMapping ( Role  source,
Role  target 
)

performs a Mapping.

Parameters:
source 
target 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performNeededAttributes ( Role  myRole  ) 

realize the add of a needed attribute to the element.

Parameters:
myRole 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performOptionalAttribute (  ) 

performs the Optional attribute.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performORAttribute ( Role  role  ) 

performs the OR Attribute.

Parameters:
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performRWAccess (  ) 

performs a RWAccess.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performSubService (  ) 

performs a SubService.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performTransactionModel (  ) 

performs a TransactionModel.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performTrigger (  ) 

performs a Trigger.

boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performXORAttribute ( Role  role  ) 

performs the XOR Attribute.

Parameters:
role 
Returns:
XORComponent de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.performXORSubComponent (  )  [private]

performs a XORSubComponent.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.resetWindowTitle (  ) 

resets the window title

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.setMyDialog ( EditableViewWizardDialog  dialog  ) 
Returns:
the myDialog

Member Data Documentation

the action to perform (for the title)

the element which was chosen inside the TreeEditor

map which saves the actual status of a attribute (chosen or not) and only for this attributes which have a next page!

the element to edit

the mainwizard page where the user can enter the identifier of the element

the wizard dialog

the role of the chosen element

the needed attributes map , e.g. direction for port or datatype for operations...

the possible pages which depends on the possible attributes

the corresponding page order

LinkedHashMap<String, LinkedHashMap<String, Boolean> > de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.EditableViewWizard.possibleattributes = null [private]

the attributes which appears on the mainpage,<identifier,<text,nextpage?>

the possible references (for the reference page)

marks that a new reference action is activ

the reference constraints map, e.g. a port must have an interface reference

the the referencewizard page where all references are handles (via new child or new reference)