1 | public class CreateDriverCommand implements ICommand↵ | | 1 | public class RefreshObjectTreeItemCommand implements ICommand
↵
|
2 | {↵ | | 2 | {
↵
|
3 | /** Application API. */↵ | | 3 | /** The object tree that is to be refreshed. */
↵
|
4 | private final IApplication _app;↵ | | 4 | private final I↵
|
| | | 5 | ObjectTreeAPI _tree;↵
|
| | | 6 |
↵
|
5 | /**↵ | | 7 | /**
↵
|
6 | * Ctor.↵ | | 8 | * Ctor.
↵
|
7 | *↵ | | 9 | *
↵
|
8 | * @param app Application API.↵ | | 10 | * @param tree The object tree to be refreshed.↵
|
| | | 11 | *↵
|
| | | 12 | * @throws IllegalArgumentException↵
|
| | | 13 | * Thrown if a <TT>null</TT> <TT>IObjectTreeAPI</TT> passed.
↵
|
9 | */↵ | | 14 | */
↵
|
10 | public CreateDriverCommand(IApplication app)↵ | | 15 | public RefreshObjectTreeItemCommand(IObjectTreeAPI tree)
↵
|
11 | {↵ | | 16 | {
↵
|
12 | super();↵ | | 17 | super();
↵
|
13 | if (app == null)↵ | | 18 | if (tree == null)
↵
|
14 | {↵ | | 19 | {
↵
|
15 | throw new IllegalArgumentException("IApplication == null");↵ | | 20 | throw new IllegalArgumentException("IObjectTreeAPI == null");
↵
|
16 | }↵ | | 21 | }
↵
|
17 | _app = app;↵ | | 22 | _↵
|
18 | }↵ | | |
|
| | | 23 | tree = tree;↵
|
| | | 24 | }↵
|
|
| | | 25 | /**↵
|
| | | 26 | * Refresh tree.↵
|
| | | 27 | */
↵
|
19 | public void execute()↵ | | 28 | public void execute()
↵
|
20 | {↵ | | 29 | {
↵
|
21 | _app.getWindowManager().showNewDriverInternalFrame() | | 30 | _tree.refreshSelectedNodes()
|