Hi Peppe,

the most complete method is at line 464
addMainMenuItem(PlugIn plugin, String[] menuPath, JMenuItem menuItem, EnableCheck enableCheck, int pos)

most other addMainMenuItem methods (if not all) are convenience methods calling that one.

There are some legacy one taking a PlugIn as first parameter
addMainMenuPlugin(PlugIn plugin...)

and the new ones taking AbstractUiPlugIn as second parameter
addMainMenuPlugin(String[] path, AbstractUiPlugIn plugin...)

Hope that helps,

Michaël



Le 08/06/2012 20:54, Giuseppe Aruta a écrit :
HI Ede,
which addMenuItem method is more similar to addMainMenuItemWithJava14Fix()?
Giuseppe

------------------------------------------------------------------------
*Da:* Giuseppe Aruta <giuseppe_ar...@yahoo.it>
*A:* OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net>
*Inviato:* Venerdì 8 Giugno 2012 19:26
*Oggetto:* Re: [JPP-Devel] What changed on OJ PlugIn management?

Thanks Ede,
I will change it
Giuseppe

------------------------------------------------------------------------
*Da:* "edgar.sol...@web.de" <edgar.sol...@web.de>
*A:* OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net>
*Inviato:* Venerdì 8 Giugno 2012 19:01
*Oggetto:* Re: [JPP-Devel] What changed on OJ PlugIn management?

addMainMenuItemWithJava14Fix() was only used internally and retired since then. you should use one of the new not deprecated addMenuItem methods instead.

..ede

On 08.06.2012 18:47, Giuseppe Aruta wrote:
> Hi all,
> I am going back to OJ world and yesterday. An tried to recover lost time in translation and programmin. > I tried to work with my measurement plugin (http://sourceforge.net/projects/opensit/files/Openjump/PlugIn/MeasureExtension/) on a NB Open JUMP installation.
>
> I had this error message:
>
> java.lang.NoSuchMethodError: com.vividsolutions.jump.workbench.ui.plugin.FeatureInstaller.addMainMenuItemWithJava14Fix(Lcom/vividsolutions/jump/workbench/plugin/PlugIn;[Ljava/lang/String;Ljava/lang/String;ZLjavax/swing/Icon;Lcom/vividsolutions/jump/workbench/plugin/EnableCheck;)V > at it.geoarbores.openjump.measure.plugins.CalculateDistanceSegmentPlugIn.initialize(CalculateDistanceSegmentPlugIn.java:27) > at it.geoarbores.openjump.measure.MeasureExtension.configure(MeasureExtension.java:49) > at com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:127) > at com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:117) > at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:388) > at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:343)
>
> well, something has changed, I think, on plugin managenet.
> Can soembody give me some hint?
>
> thanks
>
> Giuseppe
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net <mailto:Jump-pilot-devel@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net <mailto:Jump-pilot-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net <mailto:Jump-pilot-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to