From: <aki...@us...> - 2007-01-07 12:45:48
|
Revision: 1489 http://svn.sourceforge.net/gridarta/?rev=1489&view=rev Author: akirschbaum Date: 2007-01-07 04:45:49 -0800 (Sun, 07 Jan 2007) Log Message: ----------- Unify whitespace. Modified Paths: -------------- trunk/crossfire/src/cfeditor/gameobject/scripts/ScriptArchData.java trunk/daimonin/src/daieditor/gameobject/scripts/ScriptArchData.java Modified: trunk/crossfire/src/cfeditor/gameobject/scripts/ScriptArchData.java =================================================================== --- trunk/crossfire/src/cfeditor/gameobject/scripts/ScriptArchData.java 2007-01-07 12:43:33 UTC (rev 1488) +++ trunk/crossfire/src/cfeditor/gameobject/scripts/ScriptArchData.java 2007-01-07 12:45:49 UTC (rev 1489) @@ -555,7 +555,9 @@ /* ignore (really?) */ } - if (couldCreateFile) { + if (!couldCreateFile) { + JOptionPane.showMessageDialog(frame, "File '" + newScriptFile.getName() + "' could not be created.\n" + "Please check your path and write premissions.", "Cannot create file", JOptionPane.ERROR_MESSAGE); + } else { // file has been created, now link it to the event final ScriptedEvent event = new ScriptedEvent(eventType, pluginName, scriptPath, options); if (replaceIndex != -1) { @@ -567,10 +569,6 @@ // open new script file ScriptEditControl.getInstance().openScriptFile(newScriptFile.getAbsolutePath()); - } else { - JOptionPane.showMessageDialog(frame, "File '" + newScriptFile.getName() + "' could not be created.\n" + - "Please check your path and write premissions.", - "Cannot create file", JOptionPane.ERROR_MESSAGE); } } } Modified: trunk/daimonin/src/daieditor/gameobject/scripts/ScriptArchData.java =================================================================== --- trunk/daimonin/src/daieditor/gameobject/scripts/ScriptArchData.java 2007-01-07 12:43:33 UTC (rev 1488) +++ trunk/daimonin/src/daieditor/gameobject/scripts/ScriptArchData.java 2007-01-07 12:45:49 UTC (rev 1489) @@ -507,8 +507,7 @@ } if (!couldCreateFile) { - JOptionPane.showMessageDialog(frame, "File '" + newScriptFile.getName() + "' could not be created.\n" + "Please check your path and write premissions.", - "Cannot create file", JOptionPane.ERROR_MESSAGE); + JOptionPane.showMessageDialog(frame, "File '" + newScriptFile.getName() + "' could not be created.\n" + "Please check your path and write premissions.", "Cannot create file", JOptionPane.ERROR_MESSAGE); } else { // file has been created, now link it to the event final ScriptedEvent event = new ScriptedEvent(eventType, pluginName, scriptPath, options); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |