uninstallPlugin doesn't work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

uninstallPlugin doesn't work

Sabine De Vreese
Hi,

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.
Reply | Threaded
Open this post in threaded view
|

Re: uninstallPlugin doesn't work

Wayne Rasband
> 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