From: <jom...@us...> - 2011-10-10 20:28:20
|
Revision: 1665 http://jason.svn.sourceforge.net/jason/?rev=1665&view=rev Author: jomifred Date: 2011-10-10 20:28:14 +0000 (Mon, 10 Oct 2011) Log Message: ----------- improve error message when creating a project Modified Paths: -------------- trunk/src/jason/jeditplugin/NewProjectGUI.java trunk/src/jason/runtime/MASConsoleColorGUI.java Modified: trunk/src/jason/jeditplugin/NewProjectGUI.java =================================================================== --- trunk/src/jason/jeditplugin/NewProjectGUI.java 2011-10-10 20:08:20 UTC (rev 1664) +++ trunk/src/jason/jeditplugin/NewProjectGUI.java 2011-10-10 20:28:14 UTC (rev 1665) @@ -121,6 +121,7 @@ } protected boolean ok() { + System.out.println("******"); String projDecl = getProjDecl(); if (projDecl == null) { return false; @@ -129,10 +130,12 @@ File finalDir = new File(projFinalDir.getText().trim()); try { if (!finalDir.exists()) { - finalDir.mkdirs(); + boolean ok = finalDir.mkdirs(); + if (!ok) + JOptionPane.showMessageDialog(this, "Error creating project directory: "+finalDir); } } catch (Exception e) { - JOptionPane.showMessageDialog(this, "Error creating project directory: " + e); + JOptionPane.showMessageDialog(this, "Error creating project directory: "+finalDir+": " + e); return false; } Modified: trunk/src/jason/runtime/MASConsoleColorGUI.java =================================================================== --- trunk/src/jason/runtime/MASConsoleColorGUI.java 2011-10-10 20:08:20 UTC (rev 1664) +++ trunk/src/jason/runtime/MASConsoleColorGUI.java 2011-10-10 20:28:14 UTC (rev 1665) @@ -110,10 +110,11 @@ Color.gray, Color.cyan, Color.magenta, - Color.orange, - Color.pink, - Color.green, - Color.yellow}; + //Color.orange, + //Color.pink, + //Color.yellow, + Color.green + }; protected static int change = 0; protected static int lastColor = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |