Re: uninstallPlugin doesn't work
Posted by
Wayne Rasband on
Aug 22, 2005; 6:44pm
URL: http://imagej.273.s1.nabble.com/uninstallPlugin-doesn-t-work-tp3705000p3705001.html
> I want to remove some commands (e.g. Crop, Scale...), so I tried the
> following
>
> int result = Menus.uninstallPlugin("Crop");
> IJ.write ("result is " + result);
>
> The result is -5, which means ImageJ doesn't know the
> command. But when I list the commands with CommandLister,
> there is a command called Crop. Does anyone know how to
> remove commands? Thanks in advance.
Menu commands in submenus can removed by editing the file IJ.Props.txt,
which is in ij.jar. Menu commands not in submenus can be removed by
editing Menus.java and using Ant to rebuild ij.jar.
-wayne