svn commit: r17367 - trunk/src/argouml-app/src/org/argouml/application/Main.java

Andreas Rueckert <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: andreas
Date: 2009-10-02 03:11:50-0700
New Revision: 17367

Modified:
   trunk/src/argouml-app/src/org/argouml/application/Main.java

Log:
Added a uml2 warning and a commandline switch to disable it.


Modified: trunk/src/argouml-app/src/org/argouml/application/Main.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/application/Main.java?view=diff&pathrev=17367&r1=17366&r2=17367
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/application/Main.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/application/Main.java	2009-10-02 03:11:50-0700
@@ -131,6 +131,9 @@
     private static String projectName = null;
     
     private static String theTheme;
+
+    // Andreas: this is just temporary for the uml2 pre-alpha versions.
+    private static boolean showUml2warning = true;
     
     /**
      * The main entry point of ArgoUML.
@@ -238,6 +241,15 @@
             ArgoFrame.getFrame().setCursor(
                     Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
 
+	    // Andreas: just temporary: a warning dialog for uml2...
+	    if( showUml2warning && Model.getFacade().getUmlVersion().startsWith("2")) {
+		JOptionPane.showMessageDialog( ArgoFrame.getFrame()
+					       , "You are running an experimental version not meant for productive work!"
+					       , "UML2 pre-alpha warning"
+					       , JOptionPane.WARNING_MESSAGE);
+	    }
+
+
             //ToolTipManager.sharedInstance().setInitialDelay(500);
             ToolTipManager.sharedInstance().setDismissDelay(50000000);
         } catch (Throwable t) {
@@ -366,6 +378,8 @@
                     PrintManager.getInstance().print();
                     // nothing else to do (?)
                     System.exit(0);
+		} else if (args[i].equalsIgnoreCase("-nouml2warning")) {  // Andreas: just temporary for the 
+			showUml2warning = false;                         // uml2 pre-alpha versions!
                 } else {
                     System.err
                             .println("Ignoring unknown/incomplete option '"

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2402832

To unsubscribe from this discussion, e-mail: [[email protected]].
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.