| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
GUIRunner.TreePathIterator.TreePathUpdater
Expands the tree along the current path,
for
GUIRunner.TreePathIterator.TreePathUpdater.Generic after incrementing the current path. |
| Modifier and Type | Field and Description |
|---|---|
private TreePath |
currPath |
private TreeModel |
treeModel
A model of the tree of testsuites and tests.
|
private GUIRunner.TreePathIterator.TreePathUpdater |
treePathUpdater
Decides how to update the current path:
For the first path, just inkoke ***** .
|
| Constructor and Description |
|---|
TreePathIterator(JTree tree,
int index) |
| Modifier and Type | Method and Description |
|---|---|
(package private) TreePath |
getPath() |
(package private) TreePath |
incPath()
Increments
currPath and returns the result. |
(package private) static TreePath |
prolonguePath(TreePath path)
Prolongues path as long as possible in each step with 0th child.
|
(package private) void |
setFirstPath()
|
private int |
shortenPath()
Replaces
currPath removing the last node
as long as the last node in the path
is the last child of the last but one node
and after having done this
returns the index of the last node
as a child of the last but one node. |
(package private) void |
updatePathI() |
private final TreeModel treeModel
private TreePath currPath
private GUIRunner.TreePathIterator.TreePathUpdater treePathUpdater
TreePathIterator(JTree tree, int index)
void updatePathI()
void setFirstPath()
static TreePath prolonguePath(TreePath path)
private int shortenPath()
currPath removing the last node
as long as the last node in the path
is the last child of the last but one node
and after having done this
returns the index of the last node
as a child of the last but one node.
CAUTION: This method shall be invoked only
if currPath can be incremented.
NullPointerException - if currPath cannot be incremented.TreePath getPath()
Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.