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

2010-06-02 Thread Hernan Arellano
Ok, This was what I thought. thanks for the help!. Hernan. _ --

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