Hi Denis,
> I have not looked at the plugin API yet. Are there enought
> hooks in the
> API to be able to pull this off? Do you think it would be a useful
> plugin? If so, where would be a good place for me to find
> more info on
> how to write the plugin-code?
I think this would be a very valuable plugin. You shouldn't need too many
hooks into SQuirreL for this, basically just adding an entry to the popup
menu in the object tree. The best way to see how to do this (mainly because
of the total lack of documentaion) would be to take a look at an existing
plugin. I'd suggest the MySQL plugin. That'll show you how to add an item to
the popup menu and how to know which table was selected etc. If you have any
problems just send a msg to this dev list.
I'd give you a bit more info but unfortunately I don't have the source code
on this PC.
Col
> -----Original Message-----
> From: Dennis Lundberg [mailto:den...@md...]
> Sent: Sunday, 9 November 2003 12:07
> To: squ...@li...
> Subject: [Squirrel-sql-develop] Idea for a new plugin
>
>
> Hi all
>
> I've written a Swing application that connects to a database, let the
> user select a table and then goes on to create some Java-classes for
> that table. At the moment it creates a JavaBeans-compliant
> value-object-class and a DAO-class.
>
> Much of the work of connecting to the database can be done by
> SQuirrel
> SQL. The idea is that the user would right-click on a table in the
> table-tab and select a new option called "Generate Java-classes.." or
> something like that. This would bring up a dialog which presents some
> options to the user. After clicking on a button the classes are
> generated to a folder in the users home directory.
>
> I have not looked at the plugin API yet. Are there enought
> hooks in the
> API to be able to pull this off? Do you think it would be a useful
> plugin? If so, where would be a good place for me to find
> more info on
> how to write the plugin-code?
>
> --
> Dennis Lundberg
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> Squirrel-sql-develop mailing list
> Squ...@li...
> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-develop
>
|