svn commit: r13144 - trunk/src_new/org/argouml/uml/ProfileJava.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-07-25 13:14:33-0700
New Revision: 13144

Modified:
   trunk/src_new/org/argouml/uml/ProfileJava.java

Log:
Remove use of deprecated methods.  Reduce severity of logging.

Modified: trunk/src_new/org/argouml/uml/ProfileJava.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/ProfileJava.java?view=diff&rev=13144&p1=trunk/src_new/org/argouml/uml/ProfileJava.java&p2=trunk/src_new/org/argouml/uml/ProfileJava.java&r1=13143&r2=13144
==============================================================================
--- trunk/src_new/org/argouml/uml/ProfileJava.java	(original)
+++ trunk/src_new/org/argouml/uml/ProfileJava.java	2007-07-25 13:14:33-0700
@@ -173,8 +173,8 @@
      * @return the default generalization name
      */
     protected String defaultGeneralizationName(Object gen, Object namespace) {
-	Object child = Model.getFacade().getChild(gen);
-        Object parent = Model.getFacade().getParent(gen);
+	Object child = Model.getFacade().getSpecific(gen);
+        Object parent = Model.getFacade().getGeneral(gen);
 	StringBuffer buf = new StringBuffer();
 	buf.append(formatElement(child, namespace));
 	buf.append(" extends ");
@@ -387,9 +387,7 @@
         } catch (FileNotFoundException ex) {
             // No file found, try looking in the resources
             
-            // Not really an error, but we want to maximize our logging
-            // for debugging in a WebStart environment - tfm
-            LOG.error("Failed to load profile from file '" + modelFilename
+            LOG.warn("Failed to load profile from file '" + modelFilename
                     + "', attempting to load as resource");
 
             // Note that the class that we run getClass() in needs to be
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.