[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/actions FileNewActionListener.java, 1.7,
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2006-10-13 15:47:43
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/actions In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8120/src/net/sourceforge/bprocessor/gui/actions Modified Files: FileNewActionListener.java Log Message: DO NEVER USE MAGIC NUMBERS NO ONE CAN INTERPRET IT.... THERE IS A REASON WHY public static final int mynumber ARE THERE Index: FileNewActionListener.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/actions/FileNewActionListener.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** FileNewActionListener.java 21 Mar 2006 12:24:13 -0000 1.7 --- FileNewActionListener.java 13 Oct 2006 15:47:34 -0000 1.8 *************** *** 47,51 **** "Projekt has been changed", JOptionPane.YES_NO_CANCEL_OPTION); ! if (n == 0) { if (Project.getInstance().getSavePath() == null) { JFileChooser chooser = new JFileChooser(Project.getInstance().getDefaultPath()); --- 47,51 ---- "Projekt has been changed", JOptionPane.YES_NO_CANCEL_OPTION); ! if (n == JOptionPane.YES_OPTION) { if (Project.getInstance().getSavePath() == null) { JFileChooser chooser = new JFileChooser(Project.getInstance().getDefaultPath()); *************** *** 65,69 **** log.error("Could not export to file: " + file, ex); } ! } } else { try { --- 65,69 ---- log.error("Could not export to file: " + file, ex); } ! } } else { try { *************** *** 76,80 **** } } ! if (n == 1) { Project.getInstance().close(); } --- 76,80 ---- } } ! if (n == JOptionPane.NO_OPTION) { Project.getInstance().close(); } |