|
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.FileProxyNode
File proxy node. This class is dedicated to wrap physical file into proxy
| Constructor Summary | |
|---|---|
FileProxyNode(org.eclipse.core.resources.IFile file)
Constructor to create a proxy from a physical file. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAdapter(java.lang.Class adapter)
This proxy is adaptable in IResource if it has been placed instead of a file. |
org.eclipse.core.resources.IFile |
getFile()
Return the associated file |
java.lang.String |
getIdentifier()
A file proxy node is by definition a root level node, its identifier is empty. |
org.eclipse.swt.graphics.Image |
getImage()
Returns the icon of the proxy, by default, the standard eclipse file icon is used. |
java.lang.Object |
getParent()
Returns the parent object of this node. |
java.lang.String |
getText()
Retruns the name of the file as the name of the proxy node. |
org.eclipse.core.resources.IResource |
getUnderlyingResource()
The underlying resource of a file proxy node is the file itself. |
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. |
| 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 |
| Constructor Detail |
public FileProxyNode(org.eclipse.core.resources.IFile file)
file - a physical file| Method Detail |
public java.lang.String getText()
getText in interface IProxyNodepublic org.eclipse.swt.graphics.Image getImage()
getImage in interface IProxyNodepublic java.lang.Object getParent()
IProxyNode
getParent in interface IProxyNodeIProxyNode.getParent()public org.eclipse.core.resources.IFile getFile()
public java.lang.String getIdentifier()
getIdentifier in interface IProxypublic org.eclipse.core.resources.IResource getUnderlyingResource()
getUnderlyingResource in interface IProxypublic java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablepublic 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 | ||||||||||