Hi Joe,
There are several different ways of setting the text in the SQL Entry
area. Within ISQLPanelAPI.java there are:
/**
* Append the passed SQL script to the SQL entry area but don't select
* it.
*
* @param sqlScript The script to be appended.
*/
void appendSQLScript(String sqlScript);
/**
* Append the passed SQL script to the SQL entry area and specify
* whether it should be selected.
*
* @param sqlScript The script to be appended.
* @param select If <TT>true</TT> then select the passed */
void appendSQLScript(String sqlScript, boolean select);
/**
* Replace the contents of the SQL entry area with the passed
* SQL script without selecting it.
*
* @param sqlScript The script to be placed in the SQL entry */
void setEntireSQLScript(String sqlScript);
/**
* Replace the contents of the SQL entry area with the passed
* SQL script and specify whether to select it.
*
* @param sqlScript The script to be placed in the SQL entry *
@param select If <TT>true</TT> then select the passed */
void setEntireSQLScript(String sqlScript, boolean select);
I'd suggest using
void appendSQLScript(String sqlScript, boolean select);
which will append the shortcut SQL to the end of the SQL entry area and
if you pass treu for 'select' the shortcut SQL should be selected ready
for a <CTRL><ENTER>.
Having said all that I have had problems with focus in the SQL entry
area (especially using the jEdit plugin) so this may still not work. Let
me know if it doesn't.
--
Colin Bell
http://squirrel-sql.sf.net
----- Original Message -----
From: Joseph Mocker <mo...@mi...>
Date: Sunday, May 4, 2003 11:40 am
Subject: [Squirrel-sql-users] Re: New Plugin - SQL Bookmark (bug)
>
> Ruffin,
>
> Do you see this only with the plugin? I know I've seen this behavior
> without the plugin, and just using the SQL edit buffer. I think this
> is just how Squirrel SQL works. I can, however, in the plugin make
> sure to set the input carat to the beginning of the buffer when
> inserting a bookmark into it, just in case.
>
> --joe
>
> On Sat, 2003-05-03 at 18:33, Joseph Mocker wrote:
> >
> >
> >
> > This plugin is a great idea, but I think I've stumbled over a
> bug.
> > Seems after pasting in
> > a bookmark, you have to select the SQL you want to execute or
> > ctrl-return only executes the
> > line you're currently on. Closing out the window and opening a
> new one
> > gets rid of the
> > behaviour, at least until you open another bookmark.
> >
> > That said, and that bug aside, something this simple really is
> awful> helpful.
> >
> > Ruffin Bailey
> >
> >
> >
> >
> >
>
>
>
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Squirrel-sql-users mailing list
> Squ...@li...
> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users
>
|