net.sourceforge.squirrel_sql.plugins.sqlbookmark
Class AddBookmarkCommand
java.lang.Object
net.sourceforge.squirrel_sql.plugins.sqlbookmark.AddBookmarkCommand
- All Implemented Interfaces:
- ICommand
public class AddBookmarkCommand
- extends Object
- implements ICommand
Initiate the addition of a new SQL Bookmark.
The SQL for the bookmark is taken from the current SQL Edit buffer.
The user is prompted for a name for the bookmark.
- Author:
- Joseph Mocker
|
Method Summary |
void |
execute()
Execute the addition of the bookmark. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddBookmarkCommand
public AddBookmarkCommand(Frame frame,
ISession session,
SQLBookmarkPlugin plugin)
throws IllegalArgumentException
- Ctor.
- Parameters:
frame - Parent Frame.session - The session that we are saving a script for.plugin - The current plugin.
- Throws:
IllegalArgumentException - Thrown if a null ISession or IPlugin
passed.
execute
public void execute()
- Execute the addition of the bookmark.
- Specified by:
execute in interface ICommand
Copyright © 2001-2010. All Rights Reserved.