svn commit: r13299 - branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/ProfileJavaBeans.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: maurelio1234
Date: 2007-08-12 12:41:14-0700
New Revision: 13299

Modified:
   branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/ProfileJavaBeans.java

Log:
implementing profile dependencies 

solving bugs

Modified: branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/ProfileJavaBeans.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/ProfileJavaBeans.java?view=diff&rev=13299&p1=branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/ProfileJavaBeans.java&p2=branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/ProfileJavaBeans.java&r1=13298&r2=13299
==============================================================================
--- branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/ProfileJavaBeans.java	(original)
+++ branches/gsoc2007/maurelio1234/examples/javabeans/src/org/argouml/uml/profile/javabeans/ProfileJavaBeans.java	2007-08-12 12:41:14-0700
@@ -28,6 +28,7 @@
 import org.argouml.uml.profile.FigNodeStrategy;

 import org.argouml.uml.profile.FormatingStrategy;

 import org.argouml.uml.profile.Profile;

+import org.argouml.uml.profile.ProfileJava;

 import org.argouml.uml.profile.ProfileModelLoader;

 import org.argouml.uml.profile.ResourceModelLoader;

 

@@ -44,8 +45,9 @@
 	    model = profileModelLoader.loadModel("JavaBeans.xmi");	

 	    

 	    if (model == null) {

-		model = Model.getModelManagementFactory().createModel();

+	    	model = Model.getModelManagementFactory().createModel();

 	    }

+		addProfileDependency(ProfileJava.getInstance());

     }

 

     public static ProfileJavaBeans getInstance() {
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.