|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swtbot.swt.finder.finders.PathGenerator
public class PathGenerator
This is a path generate used to resolve paths to a component. This is intended for use only internally by the debugging and logging framework.
Field Summary | |
---|---|
protected IChildrenResolver |
childrenResolver
The childrenResolver |
Constructor Summary | |
---|---|
PathGenerator()
|
Method Summary | |
---|---|
IChildrenResolver |
getChildrenResolver()
Gets the current registered child resolver. |
TreePath |
getPath(Widget widget)
|
String |
getPathAsString(TreePath path)
Converts the treePath to a string representation. |
String |
getPathAsString(Widget widget)
|
TreePath |
getPathFromString(String stringPath,
Display display)
Converts the string to an object representation. |
Widget |
getWidget(Object parent,
int index)
Gets the widget contained within the parent at the given index. |
protected void |
pathAsString(Widget w,
StringBuffer result)
Converts the path to a widget into a String. |
void |
setChildrenResolver(IChildrenResolver childrenResolver)
Sets the resolver to use for child resolution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IChildrenResolver childrenResolver
Constructor Detail |
---|
public PathGenerator()
Method Detail |
---|
public IChildrenResolver getChildrenResolver()
public TreePath getPathFromString(String stringPath, Display display)
stringPath
- The string path to find.display
- The display to use.
stringPath
public String getPathAsString(TreePath path)
path
- The tree path to use.
pathAsString(Widget, StringBuffer)
public Widget getWidget(Object parent, int index)
parent
- The parent widget to use.index
- The index of the child widget to get from the parent.
parent
.public void setChildrenResolver(IChildrenResolver childrenResolver)
childrenResolver
- The child resolver to use.protected void pathAsString(Widget w, StringBuffer result)
w
- the widget.result
- the buffer into which the result should be returned.public String getPathAsString(Widget widget)
widget
-
public TreePath getPath(Widget widget)
widget
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |