Re: placement of non-plugin utility classes
Posted by
Wayne Rasband on
Jul 11, 2006; 3:58pm
URL: http://imagej.273.s1.nabble.com/placement-of-non-plugin-utility-classes-tp3702100p3702101.html
> Hello,
>
> I am trying to reconcile what I learned in a recent Java training
> course with what I am learning about ImageJ. One piece that is quite
> fuzzy in my mind is the placement of my own non-plugin utility
> classes. Suppose I had a utility class, "MyArrayUtilityClass",that
> works with arrays in some generic way (other examples might be string
> or file utilities) . Where in the world do I put it so I can import
> it for my own ImageJ plugins. Literally, where do I place the class
> relative to the ImageJ application and what does the import statement
> look like?
To avoid class name conflicts, utility classes should be in packages.
There is an example at
http://rsb.info.nih.gov/ij/plugins/packages.htmlUtility classes and JAR files go in the plugins folder.
-wayne