1 | public class NewSessionPropertiesCommand↵ | | 1 | public class ↵
|
2 | {↵ | | |
|
3 | /** Application API. */↵ | | |
|
4 | private IApplication _app↵ | | 2 | RefreshObjectTreeCommand implements ICommand↵
|
| | | 3 | {↵
|
| | | 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 NewSessionPropertiesCommand(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;↵ | | |
|
22 | }↵ | | |
|
|
23 | /**↵ | | |
|
24 | * Display the Dialog↵ | | 20 | IObjectTreeAPI == null");↵
|
| | | 21 | }↵
|
| | | 22 | _tree = tree;↵
|
| | | 23 | }↵
|
|
| | | 24 | /**↵
|
| | | 25 | * Refresh tree.↵
|
25 | */↵ | | 26 | */↵
|
26 | public void execute()↵ | | 27 | public void execute()↵
|
27 | {↵ | | 28 | {↵
|
28 | NewSessionPropertiesSheet.showSheet(_app) | | 29 | _tree.refreshTree(true)
|