[Mathlib-commitlog] SF.net SVN: mathlib:[504] JMathLib/trunk/src/jmathlib/ui/awt/GUI.java
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2008-11-30 15:39:27
|
Revision: 504
http://mathlib.svn.sourceforge.net/mathlib/?rev=504&view=rev
Author: st_mueller
Date: 2008-11-30 15:39:23 +0000 (Sun, 30 Nov 2008)
Log Message:
-----------
added message for update information
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/ui/awt/GUI.java
Modified: JMathLib/trunk/src/jmathlib/ui/awt/GUI.java
===================================================================
--- JMathLib/trunk/src/jmathlib/ui/awt/GUI.java 2008-11-30 15:38:51 UTC (rev 503)
+++ JMathLib/trunk/src/jmathlib/ui/awt/GUI.java 2008-11-30 15:39:23 UTC (rev 504)
@@ -226,16 +226,31 @@
interpreter = new Interpreter(runningStandalone);
interpreter.setOutputPanel(answer);
+
+ this.setTitle(TITLE + " - [4/4] running startup script");
+ interpreter.executeExpression("startup;");
+ //interpreter.executeExpression("messageoftheday");
+ answer.displayPrompt();
+
// silent check for updates
interpreter.executeExpression("checkForUpdates('-silent')");
+ this.setTitle(TITLE + " - Console Window");
+
+ // in case an update is available inform the user
+ if (interpreter.prefs.getLocalProperty("update.newversionavailable").equals("yes"))
+ {
+ this.setTitle(TITLE + " - (NEW version available: type update at prompt)");
+ String s = interpreter.prefs.getLocalProperty("update.newversionavailable.message01");
+ if (s==null)
+ answer.displayText("A NEW version of JMathLib is available\n type update or visit www.jmathlib.de");
+ else
+ answer.displayText(s);
+
+ answer.displayPrompt();
+ }
- this.setTitle(TITLE + " - [4/4] running startup script");
- interpreter.executeExpression("startup;");
- answer.displayPrompt();
-
- this.setTitle(TITLE + " - Console Window");
-
+
}
/**The main console initializer.*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|