From: <my...@us...> - 2009-05-25 13:12:19
|
Revision: 1949 http://aperture.svn.sourceforge.net/aperture/?rev=1949&view=rev Author: mylka Date: 2009-05-25 12:27:34 +0000 (Mon, 25 May 2009) Log Message: ----------- fixed a bug in the fileinspector swing app, so that now even if there is no extractor for a mime type the mime type is displayed correctly and the progress bar disappears. Modified Paths: -------------- aperture/trunk/example/swing/src/main/java/org/semanticdesktop/aperture/examples/fileinspector/FileInspectorPanel.java Modified: aperture/trunk/example/swing/src/main/java/org/semanticdesktop/aperture/examples/fileinspector/FileInspectorPanel.java =================================================================== --- aperture/trunk/example/swing/src/main/java/org/semanticdesktop/aperture/examples/fileinspector/FileInspectorPanel.java 2009-05-25 11:51:51 UTC (rev 1948) +++ aperture/trunk/example/swing/src/main/java/org/semanticdesktop/aperture/examples/fileinspector/FileInspectorPanel.java 2009-05-25 12:27:34 UTC (rev 1949) @@ -176,7 +176,7 @@ byte[] bytes = IOUtil.readBytes(buffer, minBufferSize); final String mimeType = mimeTypeIdentifier.identify(bytes, file.getPath(), null); - + stream.close(); // extract the full-text and metadata @@ -217,6 +217,13 @@ } if (container == null) { + SwingUtilities.invokeLater(new Runnable() { + public void run() { + metadataPanel.getModel().setMetadata(mimeType, null); + dialog.setVisible(false); + dialog.dispose(); + } + }); return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |