01: package net.sourceforge.squirrel_sql.plugins.userscript;
02:
03: import net.sourceforge.squirrel_sql.client.session.IObjectTreeAPI;
04: import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
05: import net.sourceforge.squirrel_sql.client.session.ISession;
06:
07: /**
08: * This class was introduced to make the plugin compilable for the time it takes
09: * to completely introduce the multible session windows framework.
10: * It may be removed after that.
11: */
12: public class FrameWorkAcessor {
13: public static ISQLPanelAPI getSQLPanelAPI(ISession session,
14: UserScriptPlugin plugin) {
15: // _session.getSQLPanelAPI(_plugin)
16: return session.getSessionSheet().getSQLPaneAPI();
17: }
18:
19: public static IObjectTreeAPI getObjectTreeAPI(ISession session,
20: UserScriptPlugin plugin) {
21: //IObjectTreeAPI api = session.getObjectTreeAPI(this);
22: return session.getSessionSheet().getObjectTreePanel();
23: }
24: }
|