01: package net.sourceforge.squirrel_sql.plugins.sqlbookmark;
02:
03: import net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel;
04:
05: import java.awt.event.ActionEvent;
06:
07: public class BoomarksExternalServiceImpl implements
08: BoomarksExternalService {
09: private SQLBookmarkPlugin _plugin;
10:
11: public BoomarksExternalServiceImpl(SQLBookmarkPlugin plugin) {
12: _plugin = plugin;
13: }
14:
15: public void selectBookmark(ISQLEntryPanel entryPanel) {
16: ActionEvent event = new ActionEvent(entryPanel, -230366,
17: "bookmarkselect");
18: new CompleteBookmarkAction(entryPanel.getSession()
19: .getApplication(), _plugin.getResources(), entryPanel,
20: _plugin).actionPerformed(event);
21:
22: }
23: }
|