Login  Register

How to know if a file is supported by imageJ without preloading?

Posted by Juanjo Vega on Feb 08, 2010; 2:37pm
URL: http://imagej.273.s1.nabble.com/How-to-know-if-a-file-is-supported-by-imageJ-without-preloading-tp3689405.html

Hello everybody,

I'm developing a new plugin and I need a way to know when a file is
supported by imageJ.

I'm implementing a browser with a preview and the idea is to know when a
file is supported or not to show one or another icon. The main idea is
to use something like: "isASupportedFileType(): boolean", so new file
types will return "true" when a new plugin will be added.

Right now I'm filtering items by their extension and that's not cool at
all =P

Sincerelly,

Juanjo.

--
Juanjo Vega ([hidden email])

Unidad de Biocomputación. Laboratorio B-13.
Centro Nacional de Biotecnología. CNB-CSIC.
C\ Darwin, 3. Campus de Cantoblanco.
Universidad Autónoma de Madrid.
28049, Madrid, Spain.

http://www.cnb.csic.es
http://www.biocomp.cnb.csic.es

+34 91 585 4510


"Las mejores almas son capaces de los mayores vicios como de las mayores virtudes, y aquellos que caminan despacio por el camino recto pueden llegar más lejos que los que corren pero se apartan de él." - Discurso del Método, René Descartes.