|
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.TestFolderProxyNode
This class is test folder proxy node. A test folder is associated to a actual
folder but it filters all test elements which are not ok according into the
ITestFolderContentValidator interface.
This class is used inside the type provider proxies trees.
| Constructor Summary | |
|---|---|
protected |
TestFolderProxyNode(org.eclipse.core.resources.IContainer container,
ITestFolderContentValidator validator,
IFileProxyManager fileProxyManager,
boolean flat,
java.lang.Object parent)
Constructor. |
| Method Summary | |
|---|---|
protected void |
buildChildren(java.util.List _children,
org.eclipse.core.resources.IContainer cont)
Builds the list of proxy node children of a given physical folder. |
static TestFolderProxyNode |
create(org.eclipse.core.resources.IContainer container,
ITestFolderContentValidator validator,
IFileProxyManager fileProxyManager,
boolean flat,
java.lang.Object parent)
Public API of creation. |
protected IResourceChangeListenerProxyNode |
createChildFolderProxyNode(org.eclipse.core.resources.IContainer container)
Returns a TestFolderProxyNode that should represent the given container. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
IProxyNode[] |
getChildren()
Returns the array of children of this node. |
protected IFileProxyManager |
getFileProxyManager()
Returns the file proxy manager instance used by this folder proxy node. |
java.lang.String |
getIdentifier()
Returns a unique identifier for the represented element within the underlying resource. |
org.eclipse.swt.graphics.Image |
getImage()
Returns the icon of this node used in the navigator. |
java.lang.Object |
getParent()
Returns the parent object of this node. |
java.lang.String |
getText()
Returns the label used in the navigator to designate this node. |
org.eclipse.core.resources.IResource |
getUnderlyingResource()
Returns the file system resource containing the element represented by this proxy. |
protected ITestFolderContentValidator |
getValidator()
Returns the validator used by this test folder. |
boolean |
isApplicableFor()
Returns whether this renamer is applicable for the adapted proxy or not. |
protected boolean |
isFlat()
Returns the flat attribute. |
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. |
IProxyNode |
resourceChanged(org.eclipse.core.resources.IResourceDelta rootDelta)
Examines the resource delta and perform any consequent adjustment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected TestFolderProxyNode(org.eclipse.core.resources.IContainer container,
ITestFolderContentValidator validator,
IFileProxyManager fileProxyManager,
boolean flat,
java.lang.Object parent)
container - the actual folder (or project) the proxy is associated to.validator - a validator used to test whether the members of the given container should be convert into test folder children.fileProxyManager - the file proxy manager used to cache file proxy node.flat - flat a flag that control the content hierarchy. If flag is true this means that the physical hierarchy is flattened.
Otherwise, the original folder hierarchy is respected and converted into the proxy node hierarchy.parent - the parent node of the test folder proxy node.| Method Detail |
public static TestFolderProxyNode create(org.eclipse.core.resources.IContainer container,
ITestFolderContentValidator validator,
IFileProxyManager fileProxyManager,
boolean flat,
java.lang.Object parent)
null if the new test folder is empty.
container - the actual folder (or project) the proxy is associated to.validator - a validator used to test whether the members of the given
container should be convert into test folder children.fileProxyManager - the file proxy manager used to cache file proxy node.flat - a flag that control the content hierarchy. If flag is true this means that the physical hierarchy is flattened.
Otherwise, the original folder hierarchy is respected and converted into the proxy node hierarchy.parent - the parent node of the test folder proxy node.
null if the new test folder is empty.
protected void buildChildren(java.util.List _children,
org.eclipse.core.resources.IContainer cont)
_children - the list of proxy node childrencont - an actual folder (or project).protected IResourceChangeListenerProxyNode createChildFolderProxyNode(org.eclipse.core.resources.IContainer container)
container - A container that is a child of the resource represented by this
proxy node.
public java.lang.String getText()
IProxyNode
getText in interface IProxyNodeIProxyNode.getText()public org.eclipse.swt.graphics.Image getImage()
IProxyNode
getImage in interface IProxyNodeIProxyNode.getImage()public java.lang.Object getParent()
IProxyNode
getParent in interface IProxyNodeIProxyNode.getParent()public IProxyNode[] getChildren()
IProxyNode
getChildren in interface IProxyNodeIProxyNode.getChildren()public org.eclipse.core.resources.IResource getUnderlyingResource()
IProxy
getUnderlyingResource in interface IProxyIProxy.getUnderlyingResource()public java.lang.String getIdentifier()
IProxy
getIdentifier in interface IProxyIProxy.getIdentifier()public boolean isApplicableFor()
IProxyNodeRenamer
isApplicableFor in interface IProxyNodeRenamertrue if rename can be done and false otherwise.IProxyNodeRenamer.isApplicableFor()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)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 java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptableIAdaptable.getAdapter(java.lang.Class)public IProxyNode resourceChanged(org.eclipse.core.resources.IResourceDelta rootDelta)
IResourceChangeListenerProxyNode
resourceChanged in interface IResourceChangeListenerProxyNoderootDelta - the delta describing the change about the resource represented by this proxy.
IResourceChangeListenerProxyNode.resourceChanged(org.eclipse.core.resources.IResourceDelta)protected final boolean isFlat()
protected final ITestFolderContentValidator getValidator()
protected final IFileProxyManager getFileProxyManager()
|
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 | ||||||||||