Public Member Functions | Package Functions | Private Member Functions | Private Attributes

de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction Class Reference

realizes the rename action via the refactoring menu. More...

List of all members.

Public Member Functions

String getSelectedText ()
 RenameAction (String ident)
void run ()
 the reaction of the action.
void setActualselectedelement (IAXLangElement theActualselectedelement)
void setDocument (IDocument doc)
void setLinenumber (int theLinenumber)
void setOffset (int theOffset)
void setSelectedText (String selectedText)

Package Functions

IAXLangElement getActualselectedelement ()

Private Member Functions

IAXLangElement handleSpecialIAXLangElement (IAXLangElement element, Role role)
 searches for the defined reference role and checks if the selectedText is equals to the identifier.
boolean isSearchedIAXLangElement (IAXLangElement element) throws BadLocationException
 checks if the element is the current selected element. It's not possible to check the selectedText because the identifier must not be the same.

Private Attributes

IAXLangElement actualselectedelement = null
InputDialog dialog = null
IDocument document = null
int linenumber = -1
int offset = -1
String selectedText = null
IInputValidator vali = null

Detailed Description

realizes the rename action via the refactoring menu.

Author:
skaegebein
Version:
0.8.0
Since:
0.8.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction.RenameAction ( String  ident  ) 
Parameters:
ident 

Member Function Documentation

IAXLangElement de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction.getActualselectedelement (  )  [package]
Returns:
the actualselectedelement
String de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction.getSelectedText (  ) 
Returns:
the selectedText
IAXLangElement de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction.handleSpecialIAXLangElement ( IAXLangElement  element,
Role  role 
) [private]

searches for the defined reference role and checks if the selectedText is equals to the identifier.

Parameters:
element 
role 
Returns:
boolean de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction.isSearchedIAXLangElement ( IAXLangElement  element  )  throws BadLocationException [private]

checks if the element is the current selected element. It's not possible to check the selectedText because the identifier must not be the same.

Parameters:
element 
Returns:
Exceptions:
BadLocationException 
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction.run (  ) 

the reaction of the action.

void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction.setActualselectedelement ( IAXLangElement  theActualselectedelement  ) 
Parameters:
theActualselectedelement the actualselectedelement to set
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction.setDocument ( IDocument  doc  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction.setLinenumber ( int  theLinenumber  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction.setOffset ( int  theOffset  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.actions.RenameAction.setSelectedText ( String  selectedText  ) 
Parameters:
theselectedText the selectedText to set

Member Data Documentation