svn commit: r12858 - branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/profile/ProfileConfiguration.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: maurelio1234
Date: 2007-06-16 04:54:38-0700
New Revision: 12858

Modified:
   branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/profile/ProfileConfiguration.java

Log:
adapting profileconfiguration to be a project member in order to be persisted

Modified: branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/profile/ProfileConfiguration.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/profile/ProfileConfiguration.java?view=diff&rev=12858&p1=branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/profile/ProfileConfiguration.java&p2=branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/profile/ProfileConfiguration.java&r1=12857&r2=12858
==============================================================================
--- branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/profile/ProfileConfiguration.java	(original)
+++ branches/gsoc2007/maurelio1234/argouml/org/argouml/uml/profile/ProfileConfiguration.java	2007-06-16 04:54:38-0700
@@ -28,17 +28,17 @@
 import java.awt.Image;

 import java.util.Iterator;

 import java.util.Vector;

-import org.apache.log4j.Logger;

 

+import org.apache.log4j.Logger;

+import org.argouml.kernel.AbstractProjectMember;

+import org.argouml.kernel.Project;

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

-import org.tigris.gef.presentation.Fig;

-import org.tigris.gef.presentation.FigImage;

 /**

  *   This class captures the configurable behavior of Argo.

  *

  *   @author Marcos Aurélio

  */

-public class ProfileConfiguration {

+public class ProfileConfiguration extends AbstractProjectMember {

 

     private FormatingStrategy formatingStrategy;

     private Vector	      figNodeStrategies = new Vector();

@@ -47,12 +47,16 @@
     private Vector profiles = new Vector();

     private Vector profileModels = new Vector();

     

+    public static final String EXTENSION = "profile";

+    

     /**

      * Logger.

      */

     private static final Logger LOG = Logger.getLogger(ProfileConfiguration.class);

     

-    public ProfileConfiguration() {

+    public ProfileConfiguration(Project project) {

+	super(EXTENSION, project);

+	

 	defaultProfile = new ProfileJava();

 

 	formatingStrategy = defaultProfile.getFormatingStrategy();

@@ -129,4 +133,14 @@
     public FigNodeStrategy getFigNodeStrategy() {

 	return compositeFigNodeStrategy; 

     }

+

+    @Override

+    public String getType() {

+	return EXTENSION;

+    }

+

+    public String repair() {

+	return "";

+    }

+

 }
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.