Login  Register

Re: help for a beginner in plugin with the ImageJ source code (use of macro functions)...

Posted by Paul Dufouleur on May 17, 2010; 12:32pm
URL: http://imagej.273.s1.nabble.com/help-for-a-beginner-in-plugin-with-the-ImageJ-source-code-use-of-macro-functions-tp3688273p3688275.html

Hi everyone,

 

Thank you for your help last time, but I have still some problem for using functions described in ij.macro.Functions.java like the method "getFileList" that I used in macro language. Can someone show me how to use them (is there an other way than finding those functions in some other class?)?

 

 

Thanks,

Paul.


PS: I understood why I didn't find "openAsString", I was using the 1.39 version source code...

 

 

> Date: Fri, 7 May 2010 10:27:35 +0200
> From: [hidden email]
> Subject: Re: help for a beginner in plugin with the ImageJ source code (use of macro functions)...
> To: [hidden email]
>
> Hi Paul,
>
> many of the macro commands are static functions in ij.IJ. E.g.,
> IJ.openAsString(String path).
> If you don't find it there, you have to look at
> ij.macro.Functions.java to see what java code they actually
> correspond to.
>
> Michael
> ________________________________________________________________
>
> On 7 May 2010, at 00:24, Paul Dufouleur wrote:
>
> > Hi everyone!
> >
> > I wrote some macro with ImageJ and I try rewrote it (and some
> > others) in Java with the source code of ImageJ... but I can't
> > manage to understand how to use functions we can find in
> > "MacroConstants" that were used in the macro, as "isOpen",
> > "nImages" or "openAsString" in the file "Functions". I understand
> > that there is a relation with what is called "token", but I can't
> > use it...
> >
> > Can someone show me how to use it for one of these functions?
> >
> > Thanks,
> >
> > Paul.
     
_________________________________________________________________
Découvrez Windows Phone 7 : Une nouvelle ère de téléphones !
http://www.microsoft.com/windowsmobile/fr-fr/cmpn1/windowsphone7series/default.mspx