svn commit: r12582 - trunk/src_new: org/argouml/application org/argouml/kernel templates

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2007-05-09 10:45:34-0700
New Revision: 12582

Modified:
   trunk/src_new/org/argouml/application/Main.java
   trunk/src_new/org/argouml/kernel/ProjectManager.java
   trunk/src_new/org/argouml/kernel/package.html
   trunk/src_new/templates/ArgoVersion.template

Log:
Made ArgoUML's version publically available, also when Main.main() is not run.

Modified: trunk/src_new/org/argouml/application/Main.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/application/Main.java?view=diff&rev=12582&p1=trunk/src_new/org/argouml/application/Main.java&p2=trunk/src_new/org/argouml/application/Main.java&r1=12581&r2=12582
==============================================================================
--- trunk/src_new/org/argouml/application/Main.java	(original)
+++ trunk/src_new/org/argouml/application/Main.java	2007-05-09 10:45:34-0700
@@ -140,7 +140,7 @@
         org.tigris.gef.base.Globals.setLastDirectory(directory);
         
         // Initialise the version of this application
-        ApplicationVersion.init(ArgoVersion.getVersion());
+        initVersion();
 
         // Set the i18n locale
         Translator.init(Configuration.getString(Argo.KEY_LOCALE));
@@ -784,6 +784,18 @@
         );         
     }
 
+    /**
+     * Publish the version of the ArgoUML application. <p>
+     * 
+     * This function is intentionally public, 
+     * since applications built on ArgoUML, 
+     * that do not make use of Main.main(), 
+     * can call this function and then access ArgoUML's version 
+     * from the ApplicationVersion class. 
+     */
+    public static void initVersion() {
+        ArgoVersion.init();
+    }
 
 
 } /* end Class Main */

Modified: trunk/src_new/org/argouml/kernel/ProjectManager.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/kernel/ProjectManager.java?view=diff&rev=12582&p1=trunk/src_new/org/argouml/kernel/ProjectManager.java&p2=trunk/src_new/org/argouml/kernel/ProjectManager.java&r1=12581&r2=12582
==============================================================================
--- trunk/src_new/org/argouml/kernel/ProjectManager.java	(original)
+++ trunk/src_new/org/argouml/kernel/ProjectManager.java	2007-05-09 10:45:34-0700
@@ -47,13 +47,13 @@
 import org.tigris.gef.undo.UndoManager;
 
 /**
- * This class manages the projects loaded in argouml.
+ * This class manages the projects loaded in argouml. <p>
  *
- * Classes in Argouml can ask this class for the current
+ * Classes in ArgoUML can ask this class for the current
  * project and set the current project.  Since we only have one
  * project in ArgoUML at the moment, this class does not manage a list
  * of projects like one would expect. This could be a nice extension
- * for the future of argouml.  As soon as the current project is
+ * for the future of ArgoUML.  As soon as the current project is
  * changed, a property changed event is fired.
  *
  * @since Nov 17, 2002

Modified: trunk/src_new/org/argouml/kernel/package.html
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/kernel/package.html?view=diff&rev=12582&p1=trunk/src_new/org/argouml/kernel/package.html&p2=trunk/src_new/org/argouml/kernel/package.html&r1=12581&r2=12582
==============================================================================
--- trunk/src_new/org/argouml/kernel/package.html	(original)
+++ trunk/src_new/org/argouml/kernel/package.html	2007-05-09 10:45:34-0700
@@ -30,8 +30,8 @@
 <body bgcolor="white">
 
 
-<p>Contains support for 'history', predicates, delayed change event handling,
-   + ProjectManager & ProjectMember, Wizard.</P>
+<p>Contains support for delayed change event handling,
+   and Project handling.</P>
 
 <h2>Package Specification</h2>
 

Modified: trunk/src_new/templates/ArgoVersion.template
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/templates/ArgoVersion.template?view=diff&rev=12582&p1=trunk/src_new/templates/ArgoVersion.template&p2=trunk/src_new/templates/ArgoVersion.template&r1=12581&r2=12582
==============================================================================
--- trunk/src_new/templates/ArgoVersion.template	(original)
+++ trunk/src_new/templates/ArgoVersion.template	2007-05-09 10:45:34-0700
@@ -24,6 +24,8 @@
 
 package org.argouml.application;
 
+import org.argouml.application.helpers.ApplicationVersion;
+
 /**
  * This class <strong>only</strong> encapsulates the ArgoUML version string.<p>
  *
@@ -44,12 +46,10 @@
     private static final String VERSION = "@ARGO_RELEASE_VERSION@";
 
     /**
-     * Retrieve the version number.
-     *
-     * @return the version number.
+     * Make the version of ArgoUML public. 
      */
-    static String getVersion() {
-        return VERSION;
+    static void init() {
+        ApplicationVersion.init(VERSION);
     }
 
     /**
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.