Changeset 5685
- Timestamp:
- 10/14/08 09:58:19 (7 weeks ago)
- Location:
- trunk/SRC/org/openmicroscopy/shoola
- Files:
-
- 2 modified
-
agents/metadata/editor/AttachmentsUI.java (modified) (2 diffs)
-
env/data/OMEROGateway.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/org/openmicroscopy/shoola/agents/metadata/editor/AttachmentsUI.java
r5650 r5685 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; … … 988 989 Iterator i = addedFiles.iterator(); 989 990 File f; 991 List<File> notSupported = new ArrayList<File>(); 992 FileAnnotationData data = null; 990 993 while (i.hasNext()) { 991 994 f = (File) i.next(); 992 toAdd.add(new FileAnnotationData(f)); 995 try { 996 data = new FileAnnotationData(f); 997 } catch (Exception e) { 998 notSupported.add(f); 999 data = null; 1000 } 1001 if (data != null) toAdd.add(data); 1002 } 1003 if (notSupported.size() > 0) { 1004 UserNotifier un = EditorAgent.getRegistry().getUserNotifier(); 1005 Iterator<File> k = notSupported.iterator(); 1006 String s = ""; 1007 while (k.hasNext()) { 1008 s += (k.next()).getName(); 1009 s += " "; 1010 } 1011 un.notifyInfo("Attach", 1012 "The following files cannot be attached: \n"+s); 993 1013 } 994 1014 if (addedFileAnnotations.size() > 0) -
trunk/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java
r5682 r5685 41 41 import java.util.List; 42 42 import java.util.Map; 43 import java.util.Properties;44 43 import java.util.ResourceBundle; 45 44 import java.util.Set;
