- Timestamp:
- 10/14/08 09:57:47 (7 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/Beta3.1/SRC/org/openmicroscopy/shoola/agents/metadata/editor/AttachmentsUI.java
r5587 r5684 73 73 74 74 //Application-internal dependencies 75 import org.openmicroscopy.shoola.agents.editor.EditorAgent; 75 76 import org.openmicroscopy.shoola.agents.metadata.IconManager; 76 77 import org.openmicroscopy.shoola.agents.metadata.MetadataViewerAgent; … … 990 991 Iterator i = addedFiles.iterator(); 991 992 File f; 993 List<File> notSupported = new ArrayList<File>(); 994 FileAnnotationData data = null; 992 995 while (i.hasNext()) { 993 996 f = (File) i.next(); 994 toAdd.add(new FileAnnotationData(f)); 997 try { 998 data = new FileAnnotationData(f); 999 } catch (Exception e) { 1000 notSupported.add(f); 1001 data = null; 1002 } 1003 if (data != null) toAdd.add(data); 1004 } 1005 if (notSupported.size() > 0) { 1006 UserNotifier un = EditorAgent.getRegistry().getUserNotifier(); 1007 Iterator<File> k = notSupported.iterator(); 1008 String s = ""; 1009 while (k.hasNext()) { 1010 s += (k.next()).getName(); 1011 s += " "; 1012 } 1013 un.notifyInfo("Attach", 1014 "The following files cannot be attached: \n"+s); 995 1015 } 996 1016 if (addedFileAnnotations.size() > 0)
