1 | public class RefreshObjectTreeItemCommand implements ICommand
↵ | | 1 | public class ReturnResultTabCommand implements ICommand↵
|
2 | {
↵ | | 2 | {↵
|
3 | /** The object tree that is to be refreshed. */
↵ | | 3 | /** Frame to be returned. */↵
|
4 | private final IObjectTreeAPI _tree;↵ | | 4 | private ResultFrame _re↵
|
5 |
↵ | | 5 | sultFrame;↵
|
|
6 | /**
↵ | | 6 | /**↵
|
7 | * Ctor.
↵ | | 7 | * Ctor.↵
|
8 | *
↵ | | 8 | *↵
|
9 | * @param tree The object tree to be refreshed.
↵ | | 9 | * @param resultFrame Frame to be returned to tabbed folder.↵
|
10 | *
↵ | | 10 | *↵
|
11 | * @throws IllegalArgumentException
↵ | | 11 | * @throws IllegalArgumentException↵
|
12 | * Thrown if a <TT>null</TT> <TT>IObjectTreeAPI</TT> passed.
↵ | | 12 | * Thrown if a <TT>null</TT> <TT>ResultFrame</TT> passed.↵
|
13 | */
↵ | | 13 | */↵
|
14 | public RefreshObjectTreeItemCommand(IObjectTreeAPI tree)
↵ | | 14 | public ReturnResultTabCommand(ResultFrame resultFrame)↵
|
15 | {
↵ | | 15 | {↵
|
16 | super();
↵ | | 16 | super();↵
|
17 | if (tree == null)
↵ | | 17 | if (resultFrame == null)↵
|
18 | {
↵ | | 18 | {↵
|
19 | throw new IllegalArgumentException("IObjectTreeAPI == null");
↵ | | 19 | throw new IllegalArgumentException("Null ResultFrame passed");↵
|
20 | }
↵ | | 20 | }↵
|
|
21 | _tree = tree;↵ | | 21 | _re↵
|
22 | }↵ | | |
|
|
23 | /**↵ | | |
|
24 | * Refresh tree.↵ | | |
|
25 | */
↵ | | 22 | sultFrame = resultFrame;↵
|
| | | 23 | }↵
|
|
26 | public void execute()
↵ | | 24 | public void execute()↵
|
27 | {
↵ | | 25 | {↵
|
28 | _tree.refreshSelectedNodes() | | 26 | _resultFrame.returnToTabbedPane()
|