svn commit: r15594 - trunk/src/argouml-app/src/org/argouml/util/Tools.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-08-20 10:11:36-0700
New Revision: 15594

Modified:
   trunk/src/argouml-app/src/org/argouml/util/Tools.java

Log:
Issue 5336: Catch exception if MDR isn't present so that the rest of the version info gets displayed correctly.

Modified: trunk/src/argouml-app/src/org/argouml/util/Tools.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/util/Tools.java?view=diff&rev=15594&p1=trunk/src/argouml-app/src/org/argouml/util/Tools.java&p2=trunk/src/argouml-app/src/org/argouml/util/Tools.java&r1=15593&r2=15594
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/util/Tools.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/util/Tools.java	2008-08-20 10:11:36-0700
@@ -103,7 +103,11 @@
             
             // TODO: The following is MDR specific.  We need something generic
             // to all Model subsystems - tfm 20070716
-            cls = Class.forName("org.netbeans.api.mdr.MDRManager");
+            try {
+                cls = Class.forName("org.netbeans.api.mdr.MDRManager");
+            } catch (ClassNotFoundException e) {
+                // ignore
+            }
 
             StringBuffer sb = new StringBuffer();
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.