1 | public class OrganizeSavedQueriesAction extends BaseFavouriteAction ↵ | | 1 | public class ViewSessionScriptsAction extends SquirrelAction↵
|
2 | {↵ | | 2 | {↵
|
3 | private FoldersCache _cache;↵ | | 3 | private ↵
|
|
4 | public OrganizeSavedQueriesAction(IApplication app, Resources rsrc,↵ | | |
|
5 | FoldersCache cache)↵ | | |
|
6 | throws IllegalArgumentException ↵ | | 4 | SessionScriptPlugin _plugin;↵
|
|
| | | 5 | /**↵
|
| | | 6 | * @throws IllegalArgumentException↵
|
| | | 7 | * Thrown if a <TT>null</TT> <TT>IPlugin</TT> passed.↵
|
| | | 8 | */↵
|
| | | 9 | public ViewSessionScriptsAction(IApplication app, Resources rsrc,↵
|
| | | 10 | SessionScriptPlugin plugin)↵
|
7 | {↵ | | 11 | {↵
|
8 | super(app, rsrc);↵ | | 12 | super(app, rsrc);↵
|
9 | if (cache == null) {↵ | | 13 | if (plugin == null) {↵
|
10 | throw new IllegalArgumentException("Null FoldersCache passed");↵ | | 14 | throw new IllegalArgumentException("Null IPlugin passed");↵
|
11 | }↵ | | 15 | }↵
|
|
12 | _cache = cache;↵ | | 16 | _plugin = plugin;↵
|
13 | }↵ | | 17 | }↵
|
14 |
↵ | | |
|
15 | public void actionPerformed(ActionEvent evt) ↵ | | 18 | public void actionPerformed(ActionEvent evt)↵
|
16 | {↵ | | 19 | {↵
|
17 | OrganizeSavedQueriesCommand cmd = new OrganizeSavedQueriesCommand(↵ | | 20 | ViewSessionScriptsCommand cmd = new ViewSessionScriptsCommand(↵
|
18 | getApplication(), _cache, getParentFrame(evt));↵ | | 21 | getApplication(), getParentFrame(evt), _plugin);↵
|
19 | cmd.execute() | | 22 | cmd.execute()
|