svn commit: r13768 - trunk/src_new/org/argouml/util/Tools.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-11-15 14:07:48-0800
New Revision: 13768

Modified:
   trunk/src_new/org/argouml/util/Tools.java

Log:
Make dependency explicit rather than hiding using reflection

Modified: trunk/src_new/org/argouml/util/Tools.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/util/Tools.java?view=diff&rev=13768&p1=trunk/src_new/org/argouml/util/Tools.java&p2=trunk/src_new/org/argouml/util/Tools.java&r1=13767&r2=13768
==============================================================================
--- trunk/src_new/org/argouml/util/Tools.java	(original)
+++ trunk/src_new/org/argouml/util/Tools.java	2007-11-15 14:07:48-0800
@@ -97,13 +97,13 @@
         try {
 
             // class preloading, so packages are there...
-            Class cls = Class.forName("org.tigris.gef.base.Editor");
-            cls = Class.forName("org.xml.sax.AttributeList");
-            cls = Class.forName("org.apache.log4j.Logger");
+            Class cls = org.tigris.gef.base.Editor.class;
+            cls = org.xml.sax.AttributeList.class;
+            cls = org.apache.log4j.Logger.class;
             
             // TODO: The following is MDR specific.  We need something generic
             // to all Model subsystems - tfm 20070716
-            cls = Class.forName("org.netbeans.api.mdr.MDRManager");
+            cls = org.netbeans.api.mdr.MDRManager.class;
 
             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.