Login  Register

uninstallPlugin doesn't work

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

uninstallPlugin doesn't work

Sabine De Vreese
4 posts
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
| More
Print post
Permalink

Re: uninstallPlugin doesn't work

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