1 | public class CloseAllSQLResultTabsCommand implements ICommand↵ | | 1 | public class CloseAllSQLResultWindowsCommand implements ICommand↵
|
2 | {↵ | | 2 | {↵
|
3 | private final ISQLPanelAPI _api;↵ | | 3 | private final ISQLPanelAPI _api;↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Ctor.↵ | | 5 | * Ctor.↵
|
6 | *↵ | | 6 | *↵
|
7 | * @param api↵ | | 7 | * @param api↵
|
8 | *↵ | | 8 | *↵
|
9 | * @throws IllegalArgumentException↵ | | 9 | * @throws IllegalArgumentException↵
|
10 | * Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.↵ | | 10 | * Thrown if a <TT>null</TT> <TT>ISession</TT> passed.↵
|
11 | */↵ | | 11 | */↵
|
12 | public CloseAllSQLResultTabsCommand(ISQLPanelAPI api)↵ | | 12 | public CloseAllSQLResultWindowsCommand(ISQLPanelAPI api)↵
|
13 | {↵ | | 13 | {↵
|
14 | super();↵ | | 14 | super();↵
|
15 | if (api == null)↵ | | 15 | if (api == null)↵
|
16 | {↵ | | 16 | {↵
|
17 | throw new IllegalArgumentException("ISQLPanelAPI == null");↵ | | 17 | throw new IllegalArgumentException("ISQLPanelAPI == null");↵
|
18 | }↵ | | 18 | }↵
|
|
19 | _api = api;↵ | | 19 | _api = api;↵
|
20 | }↵ | | 20 | }↵
|
|
21 | public void execute()↵ | | 21 | public void execute()↵
|
22 | {↵ | | 22 | {↵
|
23 | _api.closeAllSQLResultTabs() | | 23 | _api.closeAllSQLResultFrames()
|