Re: [JPP-Devel] OpenJump

2010-06-01 Thread Michaël Michaud
Hi Rahul, I answer to you with a copy to the OpenJUMP developers mailing list as this is the good place to ask questions about programming with OpenJUMP. If you have a look in the mailing list archive, you'll find a recent discussion about how to load shapefile by code : http://sourceforge.net/

Re: [JPP-Devel] How handle diferents menu items, inside the same plugin

2010-06-01 Thread Sunburned Surveyor
I agree with Larry. See if you can split your code into two plug-ins. Your plug-ins can share the common classes they need in your library JAR. The Sunburned Surveyor On Tue, Jun 1, 2010 at 8:36 AM, Larry Becker wrote: > Hi, > >   You might try to install an ActionListener for each menu item wit

Re: [JPP-Devel] How handle diferents menu items, inside the same plugin

2010-06-01 Thread Larry Becker
Hi, You might try to install an ActionListener for each menu item within your initialize method that sets a class variable that remembers the menu item. This is difficult. Usually though, it just best to have a class that does the work and two plugins, each with their own menu item. regards,

[JPP-Devel] How handle diferents menu items, inside the same plugin

2010-06-01 Thread Hernan Arellano
Hi all! I got only one plugin with diferents menu items, each of them call a diferent method. Therefore inside the method execute(PlugInContext context) ¿how can i know which button is pressed? so i can call the correct method. public void initialize(PlugInContext context) throws Exce

Re: [JPP-Devel] Problem in adding a WMS Layer in OpenJump

2010-06-01 Thread Rahkonen Jukka
Hi, My forst guess is that OpenJUMP is just not zoomed into your WMS extents. Have a try with selecting WMS layer - Right click - Zoom to WMS layer. That is not always possible because WMS servers do not usually send bounding boxes for all possible projections (SRS). In that case open some vec

Re: [JPP-Devel] problem with "New Table" in postgis plugin

2010-06-01 Thread luca marletta
Sorry, solved. I'm not jet waked up this morning It was part of a view!!! What a shame! 1 cent luca luca marletta www.beopen.it On Tue, Jun 1, 2010 at 9:44 AM, luca marletta wrote: > Hi all, > I encountered a problem today in an action i do every day from years > > I use postgis plugin fo

[JPP-Devel] problem with "New Table" in postgis plugin

2010-06-01 Thread luca marletta
Hi all, I encountered a problem today in an action i do every day from years I use postgis plugin for manage postgis tables. I had a field and I try to save as "new Table" as usual but I face encountered this error java.lang.IllegalStateException: Insert statement failed: org.postgresql.util.PSQ