01: package net.sourceforge.squirrel_sql.plugins.favs;
02:
03: /*
04: * Copyright (C) 2001 Colin Bell
05: * colbell@users.sourceforge.net
06: *
07: * This program is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License
09: * as published by the Free Software Foundation; either version 2
10: * of the License, or any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: * GNU General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with this program; if not, write to the Free Software
19: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20: */
21: import java.awt.Frame;
22:
23: import net.sourceforge.squirrel_sql.client.IApplication;
24:
25: public class OrganizeSavedQueriesCommand {
26: private IApplication _app;
27: private FoldersCache _cache;
28: private Frame _frame;
29:
30: public OrganizeSavedQueriesCommand(IApplication app,
31: FoldersCache cache, Frame frame)
32: throws IllegalArgumentException {
33: super ();
34: if (app == null) {
35: throw new IllegalArgumentException(
36: "Null IApplication passed");
37: }
38: if (cache == null) {
39: throw new IllegalArgumentException(
40: "Null FoldersCache passed");
41: }
42:
43: _app = app;
44: _cache = cache;
45: _frame = frame;
46: }
47:
48: public void execute() {
49: new OrganizeSavedQueriesDialog(_app, _cache, _frame).show();
50: }
51: }
|