01: package net.sourceforge.squirrel_sql.client.session.event;
02:
03: /*
04: * Copyright (C) 2003 Jason Height jmheight@users.sourceforge.net
05: *
06: * This library is free software; you can redistribute it and/or modify it under
07: * the terms of the GNU Lesser General Public License as published by the Free
08: * Software Foundation; either version 2.1 of the License, or (at your option)
09: * any later version.
10: *
11: * This library is distributed in the hope that it will be useful, but WITHOUT
12: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14: * details.
15: *
16: * You should have received a copy of the GNU Lesser General Public License
17: * along with this library; if not, write to the Free Software Foundation, Inc.,
18: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: */
20: import net.sourceforge.squirrel_sql.client.session.ISession;
21: import net.sourceforge.squirrel_sql.client.session.mainpanel.ISQLResultExecuter;
22:
23: public class SQLResultExecuterTabEvent {
24: private ISession _session;
25: private ISQLResultExecuter _tab;
26:
27: public SQLResultExecuterTabEvent(ISession session,
28: ISQLResultExecuter tab) throws IllegalArgumentException {
29: super ();
30: if (session == null) {
31: throw new IllegalArgumentException("Null ISession passed");
32: }
33: if (tab == null) {
34: throw new IllegalArgumentException(
35: "Null ExecuterTab passed");
36: }
37: _session = session;
38: _tab = tab;
39: }
40:
41: public ISession getSession() {
42: return _session;
43: }
44:
45: public ISQLResultExecuter getExecuter() {
46: return _tab;
47: }
48: }
|