svn commit: r17447 - trunk/src/argouml-app/src/org/argouml/kernel/ProfileConfiguration.java

Thomas Neustupny <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: thn
Date: 2009-11-02 09:18:18-0800
New Revision: 17447

Modified:
   trunk/src/argouml-app/src/org/argouml/kernel/ProfileConfiguration.java

Log:
added deprecated versions of changed methods to not break modules

Modified: trunk/src/argouml-app/src/org/argouml/kernel/ProfileConfiguration.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/kernel/ProfileConfiguration.java?view=diff&pathrev=17447&r1=17446&r2=17447
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/kernel/ProfileConfiguration.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/kernel/ProfileConfiguration.java	2009-11-02 09:18:18-0800
@@ -171,7 +171,19 @@
     public List<Profile> getProfiles() {
         return profiles;
     }
-    
+
+    /**
+     * Applies a new profile to this configuration.
+     * 
+     * @param p the profile to be applied
+     * @deprecated for 0.29.2, because since UML2 a profile must be applied to
+     * a model
+     */
+    @Deprecated
+    public void addProfile(Profile p) {
+        addProfile(p, null);
+    }
+
     /**
      * Applies a new profile to this configuration and to the given model (or
      * other profile, which could be later a collection).
@@ -216,6 +228,18 @@
     }
 
     /**
+     * Removes the passed profile from this configuration.
+     * 
+     * @param p the profile to be applied
+     * @deprecated for 0.29.2, because since UML2 a profile must be unapplied
+     * from a model
+     */
+    @Deprecated
+    public void removeProfile(Profile p) {
+        removeProfile(p, null);
+    }
+
+    /**
      * Removes the passed profile from the configuration and unapplies it from
      * the given model (or other profile, which could be later a collection).
      *

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

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.