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