Login  Register

Re: IJ.doCommand(???) and ThresholdAdjuster

Posted by drix on Aug 13, 2008; 8:07pm
URL: http://imagej.273.s1.nabble.com/IJ-doCommand-and-ThresholdAdjuster-tp3695389p3695392.html

Hi,

Have you try with the empty string,
IJ.runPlugIn("ThresholdAdjuster", "")

It work with my plugin.

Hendrix

On Wed, Aug 13, 2008 at 3:52 PM, Carl Trapani <[hidden email]> wrote:

> Hi Everyone,
>
> Does anyone know what the commands are that can be passed to
> IJ.doCommand(String command)? Are there constants defined somewhere or some
> type of naming scheme?
>
> I'm trying to run the ThresholdAdjuster from my class when the user clicks a
> button. My class extends PlugInFrame. My idea is to just use
> IJ.doCommand("Threshold"), but that isn't working. I've also tried
> IJ.runPlugIn("ThresholdAdjuster", null), but that doesn't appear to do
> anything?
>
> Thanks in advance for any tips.
> Carl Trapani
>