From: <mar...@us...> - 2009-08-12 10:45:52
|
Revision: 14714 http://cdk.svn.sourceforge.net/cdk/?rev=14714&view=rev Author: mark_rynbeek Date: 2009-08-12 10:45:42 +0000 (Wed, 12 Aug 2009) Log Message: ----------- Allow alternative file extensions, further fix Modified Paths: -------------- jchempaint/trunk/src/main/org/openscience/jchempaint/action/OpenAction.java jchempaint/trunk/src/main/org/openscience/jchempaint/io/JCPFileFilter.java Modified: jchempaint/trunk/src/main/org/openscience/jchempaint/action/OpenAction.java =================================================================== --- jchempaint/trunk/src/main/org/openscience/jchempaint/action/OpenAction.java 2009-08-12 10:44:45 UTC (rev 14713) +++ jchempaint/trunk/src/main/org/openscience/jchempaint/action/OpenAction.java 2009-08-12 10:45:42 UTC (rev 14714) @@ -90,7 +90,7 @@ javax.swing.filechooser.FileFilter ff = chooser.getFileFilter(); if (ff instanceof JCPFileFilter) { type = ((JCPFileFilter) ff).getType(); - System.out.println("FILE TYPE is "+type); + } if(jcpPanel.getGuistring().equals(JChemPaintEditorApplet.GUI_APPLET)){ int clear=jcpPanel.showWarning(); Modified: jchempaint/trunk/src/main/org/openscience/jchempaint/io/JCPFileFilter.java =================================================================== --- jchempaint/trunk/src/main/org/openscience/jchempaint/io/JCPFileFilter.java 2009-08-12 10:44:45 UTC (rev 14713) +++ jchempaint/trunk/src/main/org/openscience/jchempaint/io/JCPFileFilter.java 2009-08-12 10:45:42 UTC (rev 14714) @@ -148,7 +148,7 @@ private boolean isAlternative (String extension, String type ) { - System.out.println(type); + for ( Iterator<String> alternatives = alternativeExtensions.keySet().iterator();alternatives.hasNext();) { String alt = alternatives.next(); if (alt.equals(extension)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |