01: package net.sourceforge.squirrel_sql.plugins.hibernate;
02:
03: import net.sourceforge.squirrel_sql.client.IApplication;
04: import net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel;
05: import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
06: import net.sourceforge.squirrel_sql.fw.util.Resources;
07:
08: import java.awt.event.ActionEvent;
09:
10: public class HQLBookmarksAction extends SquirrelAction {
11: private ISQLEntryPanel _entryPanel;
12:
13: public HQLBookmarksAction(IApplication app, Resources rsrc,
14: ISQLEntryPanel entryPanel) {
15: super (app, rsrc);
16: _entryPanel = entryPanel;
17: }
18:
19: public void actionPerformed(ActionEvent e) {
20: BookmarksAccessor.selectBookmark(_entryPanel);
21: }
22: }
|