[ome-devel] Add a file annotation
Matthias Dunda
Matthias.Dunda at carus-it.com
Fri Feb 20 11:48:09 GMT 2009
Hi all-
I have a java.io.File and an omero.model.Project. I want to add this File to the Project as a FileAnnotation.
What I have so far is:
Project p = new ...
FileAnnotation fa = new FileAnnotationI();
p.linkAnnotation(fa);
I suppose I have to use the setFile-method
fa.setFile(OriginalFile theFile);
So how do I import the file itself to have it as OriginalFile?
Thanks
Matthias
More information about the ome-devel
mailing list