1 | public class GotoPreviousResultsTabCommand implements ICommand↵ | | 1 | public class RefreshObjectTreeItemCommand implements ICommand↵
|
2 | {↵ | | 2 | {↵
|
3 | /** Current panel. */↵ | | 3 | /** The object tree that is to be refreshed. */↵
|
4 | private final ISQLPanelAPI _panel;↵ | | 4 | private final IObjectTreeAPI _tree;↵
|
|
5 | /**↵ | | 5 | /**↵
|
6 | * Ctor.↵ | | 6 | * Ctor.↵
|
7 | *↵ | | 7 | *↵
|
8 | * @param panel The SQL Panel we want to display the previous results↵ | | 8 | * @param tree The object tree to be re↵
|
9 | * tab for.↵ | | 9 | freshed.↵
|
10 | *↵ | | 10 | *↵
|
11 | * @throws IllegalArgumentException↵ | | 11 | * @throws IllegalArgumentException↵
|
12 | * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.↵ | | 12 | * Thrown if a <TT>null</TT> <TT>IObjectTreeAPI</TT> passed.↵
|
13 | */↵ | | 13 | */↵
|
14 | public GotoPreviousResultsTabCommand(ISQLPanelAPI panel)↵ | | 14 | public RefreshObjectTreeItemCommand(IObjectTreeAPI tree)↵
|
15 | {↵ | | 15 | {↵
|
16 | super();↵ | | 16 | super();↵
|
17 | if (panel == null)↵ | | 17 | if (tree == null)↵
|
18 | {↵ | | 18 | {↵
|
19 | throw new IllegalArgumentException("ISession == null");↵ | | 19 | throw new IllegalArgumentException("IObjectTreeAPI == null");↵
|
20 | }↵ | | 20 | }↵
|
21 | _panel = panel;↵ | | 21 | _tree = tree;↵
|
22 | }↵ | | 22 | }↵
|
|
23 | /**↵ | | 23 | /**↵
|
24 | * Display the previous results tab.↵ | | 24 | * Refresh tree.↵
|
25 | */↵ | | 25 | */↵
|
26 | public void execute()↵ | | 26 | public void execute()↵
|
27 | {↵ | | 27 | {↵
|
28 | _panel.gotoPreviousResultsTab() | | 28 | _tree.refreshSelectedNodes()
|