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