From: <sh...@us...> - 2009-11-19 16:47:16
|
Revision: 15071 http://cdk.svn.sourceforge.net/cdk/?rev=15071&view=rev Author: shk3 Date: 2009-11-19 16:47:09 +0000 (Thu, 19 Nov 2009) Log Message: ----------- since the 2d/3d question is not relevant for jcp, we do not ask for io settings if mol file is saved Modified Paths: -------------- jchempaint/trunk/src/main/org/openscience/jchempaint/action/SaveAsAction.java Modified: jchempaint/trunk/src/main/org/openscience/jchempaint/action/SaveAsAction.java =================================================================== --- jchempaint/trunk/src/main/org/openscience/jchempaint/action/SaveAsAction.java 2009-11-19 16:04:44 UTC (rev 15070) +++ jchempaint/trunk/src/main/org/openscience/jchempaint/action/SaveAsAction.java 2009-11-19 16:47:09 UTC (rev 15071) @@ -34,6 +34,7 @@ import java.io.FileWriter; import java.io.IOException; import java.util.Iterator; +import java.util.Properties; import javax.swing.JFileChooser; import javax.swing.JOptionPane; @@ -267,10 +268,12 @@ } outFile=new File(fileName); cow = new MDLWriter(new FileWriter(outFile)); - if (cow != null && askIOSettings()) + //since the 2d/3d question is not relevant for jcp, + //we do not ask for io settings + /*if (cow != null && askIOSettings()) { cow.addChemObjectIOListener(new SwingGUIListener(jcpPanel, 4)); - } + }*/ JChemPaint.flipOnReadingAndWriting(model); cow.write(model); cow.close(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |