1 | public class GotoNextResultsTabCommand implements ICommand↵ | | 1 | public class RefreshObjectTreeItemCommand implements ICommand↵
|
2 | {↵ | | 2 | {↵
|
3 | /** The 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 next results↵ | | 8 | * @param ↵
|
9 | * tab for.↵ | | 9 | tree The object tree to be refreshed.↵
|
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 GotoNextResultsTabCommand(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("ISQLPanelAPI == null");↵ | | 19 | throw new IllegalArgumentException("IObjectTreeAPI == null");↵
|
20 | }↵ | | 20 | }↵
|
21 | _panel = panel;↵ | | 21 | _tree = tree;↵
|
22 | }↵ | | 22 | }↵
|
|
23 | /**↵ | | 23 | /**↵
|
24 | * Display the next results tab.↵ | | 24 | * Refresh tree.↵
|
25 | */↵ | | 25 | */↵
|
26 | public void execute()↵ | | 26 | public void execute()↵
|
27 | {↵ | | 27 | {↵
|
28 | _panel.gotoNextResultsTab() | | 28 | _tree.refreshSelectedNodes()
|