Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Package Attributes | Private Member Functions | Private Attributes

de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage Class Reference

this class realize the reference page. It is used for the new child action AND for the new reference action. shorten the class. More...

List of all members.

Classes

class  ReferenceSelectionListener
 the selection listener for the references. More...

Public Member Functions

boolean canFlipToNextPage ()
void createControl (Composite parent)
 EditableViewReferenceWizardPage (String pageName, Role myRole, String title, EditableViewWizard wizard, String description, boolean done, boolean referenceaction)
Role getActiverole ()
IAXLangElement getApplicationmodelbuffer ()
IAXLangElement getCurrentchosenelement ()
LinkedHashMap< IAXLangElement,
LinkedHashMap< Role, ArrayList
< IAXLangElement > > > 
getDependedroleselementmap ()
LinkedHashMap< IAXLangElement,
LinkedHashMap< Role, ArrayList
< IAXLangElement > > > 
getDynamicdependedroleselementmap ()
LinkedHashMap< IAXLangElement,
ArrayList< IAXLangElement > > 
getElementreferencemap ()
 fills the interface table.
LinkedHashMap< Role, Combo > getReferencegroupcombos ()
IAXLangElement getResourcemodelbuffer ()
LinkedHashMap< Role, ArrayList
< IAXLangElement > > 
getRoleelementreferences ()
 this map contains all chosen elements independent from the e.g. chosen featuremodel.
void handleVisibility (boolean what, String titleadd)
 this method can be used to disable or enable the site. e.g. subcomponents and the referencepage.
boolean isChildmapping ()
boolean isMapping ()
boolean isSomethinghaschanged ()
void performFinish ()
 performs the finish if it was a NEW REFERENCE ACTION!
void refreshConnectionSelection (Role[] roles)
 refreshes the connection selection.
void setActualeditedelementbuffer (IAXLangElement actualeditedelementbuffer)
void setApplicationmodelbuffer (IAXLangElement applicationmodelbuffer)
void setResourcemodelbuffer (IAXLangElement resourcemodelbuffer)

Protected Member Functions

void addNewTableItems (Role role, IAXLangElement element, IAXLangElement parent)
 adds a new table item to the dynamic depended roles elemement map.
void fillTheDataElementsTable (IAXLangElement[] elements, Table table)
 fills up the data elements table.
void fillTheSelectedDeselectedFeaturesTables (IAXLangElement[] elements, Table table)
 fills the selected or deselected feature table.
String[] fillUpComboItemsForTable (Role role)
 fills up the combo boxes with the corresponding items, which appears if the user press the add button.
void fillUpTableItems (Role role)
 fills up the table items.
void handleActivityOrActivationSelection (Role role)
 handles the activity or activation selection.
void handleComboItemsForSimpleCombo (Combo combo, Role what)
 handles the items for the a simple combo box. e.g. data element link.
void handleConnectionOrHWConSubComponentSelection (Role myRole, Role sourcesubcomponent, Role targetsubcomponent, Role targetport, Role sourceport, Role type)
 handles the connection sub component AND hwconnection hw sub component selection.
void handleDependedComboItems (Role dependscomborole, Role comborole)
 builds up the items for the depended combo box.
void handleHWBusSelection (boolean target)
 handles the hwbus selection.
void handleRWAccess ()
 enables or disables the references for the rwacces role.
void removeTableItem (Role role)
 removes a table item.
void toggleDetailsArea (Role role)
 toggles the details area.
void validateDataElementLinkSelection ()
 validates the selection for the data element link (new child). needed exclusive because the data element link child is a very special one.

Protected Attributes

boolean busfinishpossible = false
 to mark that a finish via a selected bus is possible
boolean busselection = false
 to mark that a bus is selected
boolean buttonsisactive = false
 to know if the add or remove button is active...
boolean childmapping = false
 indicates that a child mapping is activ (e.g. p2p)
IAXLangElement currentchosenelement = null
 the current chosen element e.g. the actual featuremodel for the configuration (only the elements which creates a dependency to other elements!)
LinkedHashMap< IAXLangElement,
LinkedHashMap< Role, ArrayList
< IAXLangElement > > > 
dependedroleselementmap = null
 links the combo box entries to the depended element with the specified role ,it doesn't change
LinkedHashMap< Role, ArrayList
< Role > > 
dependedrolesmap = null
 saves the dependencies between roles (e.g. for combo boxes-Role.INTERFACE-->Role.SCOPE,[Role.INTERFACE,Role.DATAELEMENT])
LinkedHashMap< Role, Control > detailsArea = null
LinkedHashMap< IAXLangElement,
ArrayList< IAXLangElement > > 
elementreferencemap = null
 e.g. to load all possible features to the featuremodel once at dialog time(currently used for the configuration)
LinkedHashMap< Integer, Integer > indexcorrection = null
 buffer to save the correct index (in a combo box an element isn't at the same index like in the corresponding table)
boolean mapping = false
 indicates that a mapping is activ (e.g. f2r)
boolean nothingtoadd = false
 needed to know if something was added inside the table
LinkedHashMap< Role, Combo > referencegroupcombos = null
 the role combo map
LinkedHashMap< Role, Table > referencegrouptables = null
 the role table map
LinkedHashMap< Role, ArrayList
< IAXLangElement > > 
roleelementreferences = null
 to save all selected references to the role
boolean somethinghaschanged = false
 only needed for the new reference action (false - new reference action has no effect, so no operations have to be performed)
boolean sourceenabled = true
 if its true a source was chosen (needed to enable/disable the finish button)
boolean targetenabled = true
 if its true a target was chosen (needed to enable/disable the finish button)

Package Attributes

final int MAXCOMBOLENGTH = 150
 the max value for the combo length (needed therewith the wizard is not so wide)

Private Member Functions

void addItemsForConnection (Role role, IAXLangElement parentelement, Role type)
 adds the collected data to the combo boxes.
void buildUpDatas (Role[] childroletosearch, IAXLangElement parentelement)
 builds up the main reference combo (more than one role to search). e.g. the extendedinterface and dataelement roles for the interfacerole. not generic!!old one.
void buildUpDatasForSimpleComboBox (Role role)
 builds up the data for a simple combo box. e.g. trigger or data element link
void buildUpDataTheConnections (Role role, Role childroletosearch, Role roles[], Role referencerole)
 specifies a connection/delegation for a component or hwcomponent.
void buildUpDependedRolesElementMap (IAXLangElement parent, IAXLangElement axlelement, Role role)
 builds up or adds new elements to the depended roles element map. this map is needed for dependencies relations like inside a configuration (featuremodel) or interface (dataelements)
void buildUpDependedSelections (Role depends, Role role)
 builds up selections for a combo box which depends from another (the role is the marker).
void buildUpElementReferenceMap (IAXLangElement parent, IAXLangElement toadd)
 this map builds up or adds new element to the element reference map. this map is needed to have a fast access to the possible elements which are in relation to the role of the main element.
void buildUpMainReferenceSingle (Group group, Role role, Role childroletosearch, boolean direct)
 builds up the main reference combo (only one role to search). e.g. the featuremodel reference for a configuration.
void buildUpMultipleTableSelections (Group group, Role role, String[] titles)
 builds up the multiple selection . e.g. to have the possibility to choose more than one feature as a selected or deselected feature for the configuration. e.g. to have the possibility to choose more than one data element for the port.
void buildUpRoleElementReferences (Role role, IAXLangElement axlelement)
 this map builds up or adds new element to the role element references map. this map is needed to figure out all elements with the specified role.
IAXLangElement checkActualPort (boolean delegation, Role rolesourcesubcomponent, Role rolesourceport, Role type, Role port)
 checks the actual port for the connection. check if the sourceport!=targetport
boolean checkIfTheElementWasAlreadyAdded (Role role, IAXLangElement elementtoadd, IAXLangElement parent)
 checks if the element already was added to another or the current table.
boolean checkTableConstraint (Role role, IAXLangElement element)
 checks the table constraint. Perhaps some tables have special constraint for the element which are allowed to add.
void correctComboSelection (Combo combo, Role roletocorrect, IAXLangElement selectedElement)
 this method corrects the selection inside a combo box (only if new reference was chosen).
void correctSimpleComboSelection (Combo combo, Role what)
 corrects the simple combo selection.
Control createDetailsArea (Composite parent, Role role)
 creates the deatils area.
void enableDisableAllElements (boolean what)
 handles the visibility.
void evaluateConfiguration (IAXLangElement[] features, Role role)
 checks if there are features which have to remove from the configuration.
ArrayList< String > fillUpItemsForCombo (ArrayList< IAXLangElement > elements, Role role, IAXLangElement child)
 this method fills up the strings for the combo box.
ArrayList< String > fillUpItemsForTable (ArrayList< IAXLangElement > elements, Role role, IAXLangElement child, int startcount)
 this method fills up the strings for the table combo box. the user can choose from the combo box and this elements will be put into the table. So the item count of the combo box isn't the same all the time, that's why the fillUpItemsForCombo can't be used. More Over there can be possible constraints like data element-->signal or operation
IAXLangElement findTheRightStartPoint ()
 search for the right start point element for the component type search.
void handelEnableDisableButtons (boolean what, Role role)
 handles the buttons.
ArrayList< String > handleAdditionalDataAdd (ArrayList< String > items, IAXLangElement selectedElement, Role role, boolean table, int startcount)
 this method adds additionalDatas to the given element. additional e.g. if its a local component the global signals and interfaces have to be considered
void handleChildMappingDataBuild (Role role, IAXLangElement parent)
 look for all elements which full fill the role. Only the instantiated components are relevant.
void handleFirstSpecialTableAdd (Role role, boolean builduptable)
 handles the special table add, because the old references must be visible inside the table at the first time.
void handleInstancePathBuild (Role role, IAXLangElement parent)
 handles the instance path build via the AXLInstanceBuilder class.
boolean isNextAttributePageChoosen ()
 checks if there is a attribute chosen to display the corresponding page.
String lookForPortSelection (Role myRole, Role type, String combotextadd)
 analyze the port selection inside the source.
void removeMultipleReference (IAXLangElement element, Role role)
 removes a multiple reference.
void removeSingleReference (IAXLangElement element, Role role)
 removes a path.
void specifyActivityAttribute ()
 specifies an activity attribute.
void specifyActivityOrActivation (Role role)
 specifies an activity or an activiation.
void specifyConfigurationReferenceGroups ()
 builds up the configuration reference groups.
void specifyConnectionGroups ()
 specifies the scope groups and there items (no dependency between boxes).
void specifyDifferentReferenceGroups ()
 builds up the reference groups. The panels inside the page.
void specifyMappings ()
 specifies the mapping references. f2r,a2r,f2a
void specifySingleReferenceGroup (Role parentrole, Role[] elementreferencemaprole)
 builds up a single reference group, which contains a combo box. notice: if it doesn't work ,look if the currentchosenelement is correct!
void validateCurrentMapping ()
 builds up the infos for a child or normal mapping.

Private Attributes

Role activerole = null
 needed to know which role is active if there is a depended combo box (e.g. activation-->trigger depends from hwbuspath or...)
IAXLangElement actualeditedelementbuffer = null
 needed if a dialog is restarted and there is a subcomponent to add (child deep is 1 max.!)
IAXLangElement applicationmodelbuffer = null
 needed if a dialog is restarted and there is no possibility to get the applicationmodel
LinkedHashMap< Role, Point > cachedWindowSize = null
 the window size to cache
LinkedHashMap< IAXLangElement,
LinkedHashMap< Role, ArrayList
< IAXLangElement > > > 
dynamicdependedroleselementmap = null
 links the combo box entries to the depended element with the specified role ,it does change (e.g. remove button)
boolean firstbuild = true
 for the connection to mark the old port references
boolean globaldisable = false
 to disable the finish button and the whole site
IAXLangElement mappingsourceelement = null
 the source element for the mapping
Role mappingsourcerole = null
 the source role for the mapping
IAXLangElement mappingtargetelement = null
 the target element for the mapping
Role mappingtargetrole = null
 the target role for the mapping
IAXLangElement oldreference = null
 the old referenced axl element
boolean possibleitem = false
 to know if there was a possibleitem or not-->for the user message
boolean referenceaction = false
 new child or new reference
LinkedHashMap< String, Button > referencegroupbuttons = null
 the role button map (as string to differ each button from another inside a role)
LinkedHashMap< Role, Group > referencegroups = null
 to save all groups (one group for every possible reference of the parentrole)
IAXLangElement resourcemodelbuffer = null
 needed if a dialog is restarted and there is no possibility to get the resourcemodel
String title = null
 the title of the page
String tooltiptext = null
 the tooltiptext to show, if the maxcombolength is exceeded

Detailed Description

this class realize the reference page. It is used for the new child action AND for the new reference action. shorten the class.

Author:
skaegebein
Version:
0.8.0
Since:
0.8.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.EditableViewReferenceWizardPage ( String  pageName,
Role  myRole,
String  title,
EditableViewWizard  wizard,
String  description,
boolean  done,
boolean  referenceaction 
)
Parameters:
pageName 
myRole 
title 
wizard 
description 
done 
referenceaction 

Member Function Documentation

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.addItemsForConnection ( Role  role,
IAXLangElement  parentelement,
Role  type 
) [private]

adds the collected data to the combo boxes.

Parameters:
role 
parentelement 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.addNewTableItems ( Role  role,
IAXLangElement  element,
IAXLangElement  parent 
) [protected]

adds a new table item to the dynamic depended roles elemement map.

Parameters:
role 
element 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.buildUpDatas ( Role[]  childroletosearch,
IAXLangElement  parentelement 
) [private]

builds up the main reference combo (more than one role to search). e.g. the extendedinterface and dataelement roles for the interfacerole. not generic!!old one.

Parameters:
group 
role builds up the data maps for the most used roles.
childroletosearch 
parentelement 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.buildUpDatasForSimpleComboBox ( Role  role  )  [private]

builds up the data for a simple combo box. e.g. trigger or data element link

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.buildUpDataTheConnections ( Role  role,
Role  childroletosearch,
Role  roles[],
Role  referencerole 
) [private]

specifies a connection/delegation for a component or hwcomponent.

currently used for the connections, because no other method have the same requirement like the connections. 1.search for all subcomponents 2.check if its an xorcomponent or a normal one a collect them 2.1. if its a xorsubcomponent the xorcomponent is the point of interest 2.2. if its a normal one, lock for the component type 3. search for all possible ports of the found components and collect the string of the subcomponents.

Parameters:
group 
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.buildUpDependedRolesElementMap ( IAXLangElement  parent,
IAXLangElement  axlelement,
Role  role 
) [private]

builds up or adds new elements to the depended roles element map. this map is needed for dependencies relations like inside a configuration (featuremodel) or interface (dataelements)

Parameters:
parent 
axlelement 
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.buildUpDependedSelections ( Role  depends,
Role  role 
) [private]

builds up selections for a combo box which depends from another (the role is the marker).

Parameters:
group 
depends 
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.buildUpElementReferenceMap ( IAXLangElement  parent,
IAXLangElement  toadd 
) [private]

this map builds up or adds new element to the element reference map. this map is needed to have a fast access to the possible elements which are in relation to the role of the main element.

Parameters:
parent 
toadd 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.buildUpMainReferenceSingle ( Group  group,
Role  role,
Role  childroletosearch,
boolean  direct 
) [private]

builds up the main reference combo (only one role to search). e.g. the featuremodel reference for a configuration.

Parameters:
group 
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.buildUpMultipleTableSelections ( Group  group,
Role  role,
String[]  titles 
) [private]

builds up the multiple selection . e.g. to have the possibility to choose more than one feature as a selected or deselected feature for the configuration. e.g. to have the possibility to choose more than one data element for the port.

Parameters:
group 
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.buildUpRoleElementReferences ( Role  role,
IAXLangElement  axlelement 
) [private]

this map builds up or adds new element to the role element references map. this map is needed to figure out all elements with the specified role.

Parameters:
role 
axlelement 
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.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).

See also:
getNextPage
isPageComplete()
IAXLangElement de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.checkActualPort ( boolean  delegation,
Role  rolesourcesubcomponent,
Role  rolesourceport,
Role  type,
Role  port 
) [private]

checks the actual port for the connection. check if the sourceport!=targetport

Parameters:
delegation 
rolesourcesubcomponent 
rolesourceport 
type 
port 
Returns:
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.checkIfTheElementWasAlreadyAdded ( Role  role,
IAXLangElement  elementtoadd,
IAXLangElement  parent 
) [private]

checks if the element already was added to another or the current table.

Parameters:
role 
Returns:
Return values:
true - the element was already added to a table
false - the element wasn't already added to a table
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.checkTableConstraint ( Role  role,
IAXLangElement  element 
) [private]

checks the table constraint. Perhaps some tables have special constraint for the element which are allowed to add.

Parameters:
role 
element 
Returns:
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.correctComboSelection ( Combo  combo,
Role  roletocorrect,
IAXLangElement  selectedElement 
) [private]

this method corrects the selection inside a combo box (only if new reference was chosen).

Parameters:
combo 
oldreference 
roletocorrect 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.correctSimpleComboSelection ( Combo  combo,
Role  what 
) [private]

corrects the simple combo selection.

Parameters:
combo 
what 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.createControl ( Composite  parent  ) 
Control de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.createDetailsArea ( Composite  parent,
Role  role 
) [private]

creates the deatils area.

Parameters:
parent 
role 
Returns:
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.enableDisableAllElements ( boolean  what  )  [private]

handles the visibility.

Parameters:
what true || false
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.evaluateConfiguration ( IAXLangElement[]  features,
Role  role 
) [private]

checks if there are features which have to remove from the configuration.

Parameters:
features 
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.fillTheDataElementsTable ( IAXLangElement[]  elements,
Table  table 
) [protected]

fills up the data elements table.

Parameters:
elements 
table 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.fillTheSelectedDeselectedFeaturesTables ( IAXLangElement[]  elements,
Table  table 
) [protected]

fills the selected or deselected feature table.

Parameters:
elements 
table 
String [] de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.fillUpComboItemsForTable ( Role  role  )  [protected]

fills up the combo boxes with the corresponding items, which appears if the user press the add button.

Parameters:
role 
Returns:
the founded items to the actual chosen role
ArrayList<String> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.fillUpItemsForCombo ( ArrayList< IAXLangElement elements,
Role  role,
IAXLangElement  child 
) [private]

this method fills up the strings for the combo box.

Parameters:
elements - the elements from the element reference map
role - the role to play
Returns:
ArrayList<String> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.fillUpItemsForTable ( ArrayList< IAXLangElement elements,
Role  role,
IAXLangElement  child,
int  startcount 
) [private]

this method fills up the strings for the table combo box. the user can choose from the combo box and this elements will be put into the table. So the item count of the combo box isn't the same all the time, that's why the fillUpItemsForCombo can't be used. More Over there can be possible constraints like data element-->signal or operation

Parameters:
elements 
role 
child 
startcount - has to be know , because of the additional data (applicationmodel - dataelement)
Returns:
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.fillUpTableItems ( Role  role  )  [protected]

fills up the table items.

Parameters:
role 
IAXLangElement de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.findTheRightStartPoint (  )  [private]

search for the right start point element for the component type search.

Returns:
the right start point.
Role de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.getActiverole (  ) 
Returns:
the instancepathmap
the activerole
IAXLangElement de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.getApplicationmodelbuffer (  ) 
Returns:
the applicationmodelbuffer
IAXLangElement de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.getCurrentchosenelement (  ) 
Returns:
the currentchosenelement
LinkedHashMap<IAXLangElement, LinkedHashMap<Role, ArrayList<IAXLangElement> > > de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.getDependedroleselementmap (  ) 
Returns:
the dependedroleselementmap
LinkedHashMap<IAXLangElement, LinkedHashMap<Role, ArrayList<IAXLangElement> > > de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.getDynamicdependedroleselementmap (  ) 
Returns:
the dynamicdependedroleselementmap
LinkedHashMap<IAXLangElement, ArrayList<IAXLangElement> > de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.getElementreferencemap (  ) 

fills the interface table.

Parameters:
elements 
table 
Returns:
the elementreferencemap
LinkedHashMap<Role, Combo> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.getReferencegroupcombos (  ) 
Returns:
the referencegroupcombos
IAXLangElement de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.getResourcemodelbuffer (  ) 
Returns:
the resourcemodelbuffer
LinkedHashMap<Role, ArrayList<IAXLangElement> > de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.getRoleelementreferences (  ) 

this map contains all chosen elements independent from the e.g. chosen featuremodel.

Returns:
the roleelementreferences
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handelEnableDisableButtons ( boolean  what,
Role  role 
) [private]

handles the buttons.

Parameters:
what 
Return values:
enable (true) or disable (false).
Parameters:
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handleActivityOrActivationSelection ( Role  role  )  [protected]

handles the activity or activation selection.

Parameters:
role 
ArrayList<String> de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handleAdditionalDataAdd ( ArrayList< String >  items,
IAXLangElement  selectedElement,
Role  role,
boolean  table,
int  startcount 
) [private]

this method adds additionalDatas to the given element. additional e.g. if its a local component the global signals and interfaces have to be considered

Parameters:
items 
selectedElement 
role 
table 
startcount 
Returns:
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handleChildMappingDataBuild ( Role  role,
IAXLangElement  parent 
) [private]

look for all elements which full fill the role. Only the instantiated components are relevant.

Parameters:
role 
parent 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handleComboItemsForSimpleCombo ( Combo  combo,
Role  what 
) [protected]

handles the items for the a simple combo box. e.g. data element link.

Parameters:
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handleConnectionOrHWConSubComponentSelection ( Role  myRole,
Role  sourcesubcomponent,
Role  targetsubcomponent,
Role  targetport,
Role  sourceport,
Role  type 
) [protected]

handles the connection sub component AND hwconnection hw sub component selection.

Parameters:
myRole 
sourcesubcomponent 
targetsubcomponent 
targetport 
sourceport 
type 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handleDependedComboItems ( Role  dependscomborole,
Role  comborole 
) [protected]

builds up the items for the depended combo box.

Parameters:
dependscomborole 
comborole 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handleFirstSpecialTableAdd ( Role  role,
boolean  builduptable 
) [private]

handles the special table add, because the old references must be visible inside the table at the first time.

Parameters:
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handleHWBusSelection ( boolean  target  )  [protected]

handles the hwbus selection.

Parameters:
target 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handleInstancePathBuild ( Role  role,
IAXLangElement  parent 
) [private]

handles the instance path build via the AXLInstanceBuilder class.

Parameters:
role 
parent 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handleRWAccess (  )  [protected]

enables or disables the references for the rwacces role.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.handleVisibility ( boolean  what,
String  titleadd 
)

this method can be used to disable or enable the site. e.g. subcomponents and the referencepage.

Parameters:
what 
title 
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.isChildmapping (  ) 
Returns:
the childmapping
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.isMapping (  ) 
Returns:
the mapping
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.isNextAttributePageChoosen (  )  [private]

checks if there is a attribute chosen to display the corresponding page.

Returns:
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.isSomethinghaschanged (  ) 
Returns:
the somethinghaschanged
String de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.lookForPortSelection ( Role  myRole,
Role  type,
String  combotextadd 
) [private]

analyze the port selection inside the source.

Parameters:
myRole 
type 
combotextadd 
Returns:
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.performFinish (  ) 

performs the finish if it was a NEW REFERENCE ACTION!

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.refreshConnectionSelection ( Role[]  roles  ) 

refreshes the connection selection.

Parameters:
roles 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.removeMultipleReference ( IAXLangElement  element,
Role  role 
) [private]

removes a multiple reference.

Parameters:
element 
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.removeSingleReference ( IAXLangElement  element,
Role  role 
) [private]

removes a path.

Parameters:
element 
path removes a single reference,
element 
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.removeTableItem ( Role  role  )  [protected]

removes a table item.

Parameters:
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.setActualeditedelementbuffer ( IAXLangElement  actualeditedelementbuffer  ) 
Parameters:
actualeditedelementbuffer the actualeditedelementbuffer to set
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.setApplicationmodelbuffer ( IAXLangElement  applicationmodelbuffer  ) 
Parameters:
applicationmodelbuffer the applicationmodelbuffer to set
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.setResourcemodelbuffer ( IAXLangElement  resourcemodelbuffer  ) 
Parameters:
resourcemodelbuffer the resourcemodelbuffer to set
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.specifyActivityAttribute (  )  [private]

specifies an activity attribute.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.specifyActivityOrActivation ( Role  role  )  [private]

specifies an activity or an activiation.

Parameters:
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.specifyConfigurationReferenceGroups (  )  [private]

builds up the configuration reference groups.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.specifyConnectionGroups (  )  [private]

specifies the scope groups and there items (no dependency between boxes).

specifies the groups for the axlang element Interface. specifies a connection/delegation for a component or hwcomponent.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.specifyDifferentReferenceGroups (  )  [private]

builds up the reference groups. The panels inside the page.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.specifyMappings (  )  [private]

specifies the mapping references. f2r,a2r,f2a

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.specifySingleReferenceGroup ( Role  parentrole,
Role[]  elementreferencemaprole 
) [private]

builds up a single reference group, which contains a combo box. notice: if it doesn't work ,look if the currentchosenelement is correct!

Parameters:
parentrole 
elementreferencemaprole 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.toggleDetailsArea ( Role  role  )  [protected]

toggles the details area.

Parameters:
role 
void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.validateCurrentMapping (  )  [private]

builds up the infos for a child or normal mapping.

void de.fraunhofer.isst.axbench.editors.axlmultipage.treeeditor.wizards.pages.EditableViewReferenceWizardPage.validateDataElementLinkSelection (  )  [protected]

validates the selection for the data element link (new child). needed exclusive because the data element link child is a very special one.


Member Data Documentation

needed to know which role is active if there is a depended combo box (e.g. activation-->trigger depends from hwbuspath or...)

needed if a dialog is restarted and there is a subcomponent to add (child deep is 1 max.!)

needed if a dialog is restarted and there is no possibility to get the applicationmodel

to mark that a finish via a selected bus is possible

to mark that a bus is selected

to know if the add or remove button is active...

the window size to cache

indicates that a child mapping is activ (e.g. p2p)

the current chosen element e.g. the actual featuremodel for the configuration (only the elements which creates a dependency to other elements!)

links the combo box entries to the depended element with the specified role ,it doesn't change

saves the dependencies between roles (e.g. for combo boxes-Role.INTERFACE-->Role.SCOPE,[Role.INTERFACE,Role.DATAELEMENT])

links the combo box entries to the depended element with the specified role ,it does change (e.g. remove button)

e.g. to load all possible features to the featuremodel once at dialog time(currently used for the configuration)

for the connection to mark the old port references

to disable the finish button and the whole site

buffer to save the correct index (in a combo box an element isn't at the same index like in the corresponding table)

indicates that a mapping is activ (e.g. f2r)

the source element for the mapping

the source role for the mapping

the target element for the mapping

the target role for the mapping

the max value for the combo length (needed therewith the wizard is not so wide)

needed to know if something was added inside the table

the old referenced axl element

to know if there was a possibleitem or not-->for the user message

new child or new reference

the role button map (as string to differ each button from another inside a role)

the role combo map

to save all groups (one group for every possible reference of the parentrole)

the role table map

needed if a dialog is restarted and there is no possibility to get the resourcemodel

to save all selected references to the role

only needed for the new reference action (false - new reference action has no effect, so no operations have to be performed)

if its true a source was chosen (needed to enable/disable the finish button)

if its true a target was chosen (needed to enable/disable the finish button)

the title of the page

the tooltiptext to show, if the maxcombolength is exceeded