|
TPTP 4.3.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.test.ui.navigator.EObjectProxyNode
org.eclipse.hyades.test.ui.navigator.CMNNamedElementProxyNode
| Constructor Summary | |
|---|---|
CMNNamedElementProxyNode(org.eclipse.emf.ecore.EObject eObject,
java.lang.Object parent)
Constructor |
|
CMNNamedElementProxyNode(org.eclipse.ui.IMemento memento,
java.lang.Object parent)
Constructor used to load an already built proxy. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAdapter(java.lang.Class adapter)
For performance reason, EObjectProxyNode instances are not, by default, adaptable in EObject. |
java.lang.String |
getText()
Returns the name of the named element given in the constructor. |
boolean |
isApplicableFor()
Returns whether this renamer is applicable for the adapted proxy or not. |
boolean |
performRename(java.lang.String newName)
Performs the actual rename task on proxy node and referenced object. |
RenamerUIStatus |
performUserInteraction(java.lang.String oldName)
Performs the GUI interaction in order to get the new name. |
protected void |
setName(java.lang.String name)
Setter for name. |
| Methods inherited from class org.eclipse.hyades.test.ui.navigator.EObjectProxyNode |
|---|
getEObject, getIdentifier, getOriginatorURI, getParent, getUnderlyingResource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.hyades.test.ui.navigator.IProxyNode |
|---|
getChildren, getImage |
| Constructor Detail |
public CMNNamedElementProxyNode(org.eclipse.ui.IMemento memento,
java.lang.Object parent)
memento - the saved content of the proxy.parent - the parent node of this proxy.
public CMNNamedElementProxyNode(org.eclipse.emf.ecore.EObject eObject,
java.lang.Object parent)
eObject - the EMF named object to convert, the first argument should be a descendant of CMNNamedElement.parent - its parent node.| Method Detail |
public java.lang.String getText()
getText in interface IProxyNodeprotected void setName(java.lang.String name)
name - the new name of the proxy.public java.lang.Object getAdapter(java.lang.Class adapter)
EObjectProxyNode
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class EObjectProxyNodeIAdaptable.getAdapter(java.lang.Class)public boolean isApplicableFor()
IProxyNodeRenamer
isApplicableFor in interface IProxyNodeRenamertrue if rename can be done and false otherwise.IProxyNodeRenamer.isApplicableFor()public boolean performRename(java.lang.String newName)
IProxyNodeRenamer
performRename in interface IProxyNodeRenamernewName - the new name of the proxy node.
IProxyNodeRenamer.performRename(java.lang.String)public RenamerUIStatus performUserInteraction(java.lang.String oldName)
IProxyNodeRenamer
performUserInteraction in interface IProxyNodeRenameroldName - the string containing the current name before renaming.
RenamerUIStatus class:
org.eclipse.hyades.test.ui.navigator.actions.RenamerUIOk:
this means that rename action calls a specific GUI in order to get the new name and
this GUI ends properly. The new name can be accessed through the RenameUIOK.getNewName(),org.eclipse.hyades.test.ui.navigator.actions.RenamerUICancel:
this means that rename action calls a specific GUI in order to get the new name and
this GUI has been aborted by user. There is no new name set and the action needs to be aborted.org.eclipse.hyades.test.ui.navigator.actions.RenamerUIInlineEditor:
this means that rename action uses the default inline editor in order to get the new name. The name is internaly passed to the method IProxyNodeRenamer.performRename(String newName)IProxyNodeRenamer.performUserInteraction(java.lang.String)
|
TPTP 4.3.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||