svn commit: r13066 - branches/gsoc2007/maurelio1234/src_new/org/argouml: i18n persistence ui/explorer ui/explorer/rules uml/diagram/ui uml/profile

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: maurelio1234
Date: 2007-07-13 04:36:24-0700
New Revision: 13066

Added:
   branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProfileConfigurationToProfile.java
   branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProfileToModel.java
   branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProjectToProfileConfiguration.java
Modified:
   branches/gsoc2007/maurelio1234/src_new/org/argouml/i18n/misc.properties
   branches/gsoc2007/maurelio1234/src_new/org/argouml/persistence/PGMLStackParser.java
   branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/ExplorerPopup.java
   branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/NameOrder.java
   branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/PerspectiveManager.java
   branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/diagram/ui/FigNodeModelElement.java
   branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/Profile.java
   branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/ProfileConfiguration.java

Log:
adding:

+ persistence to stereotype view
+ profiles models to explorer

Modified: branches/gsoc2007/maurelio1234/src_new/org/argouml/i18n/misc.properties
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/src_new/org/argouml/i18n/misc.properties?view=diff&rev=13066&p1=branches/gsoc2007/maurelio1234/src_new/org/argouml/i18n/misc.properties&p2=branches/gsoc2007/maurelio1234/src_new/org/argouml/i18n/misc.properties&r1=13065&r2=13066
==============================================================================
--- branches/gsoc2007/maurelio1234/src_new/org/argouml/i18n/misc.properties	(original)
+++ branches/gsoc2007/maurelio1234/src_new/org/argouml/i18n/misc.properties	2007-07-13 04:36:24-0700
@@ -147,9 +147,12 @@
 misc.primitive.rounded-rectangle = Rounded Rectangle
 misc.primitive.spline = Spline
 misc.primitive.text = Text
+misc.profile.model = Profile->Model
+misc.profileconfiguration.profile = Profile Configuration->Profile
 misc.project.collaboration = Project->Collaboration
 misc.project.diagram = Project->Diagram
 misc.project.model = Project->Model
+misc.project.profileconfiguration = Project->Profile Configuration
 misc.project.state-machine = Project->State Machine
 misc.properties = Properties
 misc.receives = Receives:

Modified: branches/gsoc2007/maurelio1234/src_new/org/argouml/persistence/PGMLStackParser.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/src_new/org/argouml/persistence/PGMLStackParser.java?view=diff&rev=13066&p1=branches/gsoc2007/maurelio1234/src_new/org/argouml/persistence/PGMLStackParser.java&p2=branches/gsoc2007/maurelio1234/src_new/org/argouml/persistence/PGMLStackParser.java&r1=13065&r2=13066
==============================================================================
--- branches/gsoc2007/maurelio1234/src_new/org/argouml/persistence/PGMLStackParser.java	(original)
+++ branches/gsoc2007/maurelio1234/src_new/org/argouml/persistence/PGMLStackParser.java	2007-07-13 04:36:24-0700
@@ -42,6 +42,7 @@
 import org.argouml.uml.diagram.ui.ExtensionsCompartmentContainer;
 import org.argouml.uml.diagram.ui.FigEdgeModelElement;
 import org.argouml.uml.diagram.ui.FigEdgePort;
+import org.argouml.uml.diagram.ui.FigNodeModelElement;
 import org.argouml.uml.diagram.ui.OperationsCompartmentContainer;
 import org.argouml.uml.diagram.ui.PathContainer;
 import org.argouml.uml.diagram.ui.StereotypeContainer;
@@ -280,6 +281,14 @@
             } else if ("extensionPointVisible".equals(name)) {
                 ((ExtensionsCompartmentContainer) fig)
                     .setExtensionPointVisible(value.equalsIgnoreCase("true"));
+            } else if ("stereotypeView".equals(name)) {
+                FigNodeModelElement fnme = (FigNodeModelElement) fig;
+                
+                try {
+                    fnme.setStereotypeView(Integer.parseInt(value));
+                } catch(NumberFormatException nfe) {
+                    fnme.setStereotypeView(FigNodeModelElement.STEREOTYPE_VIEW_TEXTUAL);
+                }
             }
         }
     }

Modified: branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/ExplorerPopup.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/ExplorerPopup.java?view=diff&rev=13066&p1=branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/ExplorerPopup.java&p2=branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/ExplorerPopup.java&r1=13065&r2=13066
==============================================================================
--- branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/ExplorerPopup.java	(original)
+++ branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/ExplorerPopup.java	2007-07-13 04:36:24-0700
@@ -56,6 +56,8 @@
 import org.argouml.uml.diagram.ui.ActionAddExistingNode;
 import org.argouml.uml.diagram.ui.ActionAddExistingNodes;
 import org.argouml.uml.diagram.ui.ActionSaveDiagramToClipboard;
+import org.argouml.uml.profile.Profile;
+import org.argouml.uml.profile.ProfileConfiguration;
 import org.argouml.uml.ui.ActionActivityDiagram;
 import org.argouml.uml.ui.ActionAddPackage;
 import org.argouml.uml.ui.ActionClassDiagram;
@@ -92,6 +94,9 @@
     public ExplorerPopup(Object selectedItem, MouseEvent me) {
         super("Explorer popup menu");
 
+        final Project currentProject =
+            ProjectManager.getManager().getCurrentProject();
+
         /* Check if multiple items are selected. */
         boolean multiSelect =
                 TargetManager.getInstance().getTargets().size() > 1;
@@ -99,13 +104,15 @@
         boolean modelElementsOnly = true;
         for (Iterator it = TargetManager.getInstance().getTargets().iterator();
                 it.hasNext() && modelElementsOnly; ) {
-            if (!Model.getFacade().isAUMLElement(it.next())) {
+            Object element = it.next();
+            if (!Model.getFacade().isAUMLElement(element) ||
+                    
+                    // profile elements are NOT model elements
+                    isRelatedToProfiles(currentProject, element)) {
         	modelElementsOnly = false;
             }
         }
 
-        final Project currentProject =
-            ProjectManager.getManager().getCurrentProject();
         final Diagram activeDiagram = currentProject.getActiveDiagram();
 
         // TODO: I've made some attempt to rationalize the conditions here
@@ -126,7 +133,10 @@
         // this.add(action);
         // }
 
-        if (!multiSelect) {
+        if (!multiSelect && 
+                
+                // a profile element is not considered a selection
+                !isRelatedToProfiles(currentProject, selectedItem)) {
             initMenuCreateDiagrams();
             this.add(createDiagrams);
         }
@@ -137,7 +147,10 @@
 
         final Object projectModel = currentProject.getModel();
         final boolean modelElementSelected =
-            Model.getFacade().isAUMLElement(selectedItem);
+            Model.getFacade().isAUMLElement(selectedItem) &&
+            
+            // avoids modifications on profile models
+            !isRelatedToProfiles(currentProject, selectedItem);
 
         if (modelElementSelected) {
             final boolean nAryAssociationSelected =
@@ -253,7 +266,10 @@
             while (iter != null && iter.hasNext()) {
                 Object o = iter.next();
                 if (Model.getFacade().isAClassifier(o)
-                     && !Model.getFacade().isARelationship(o)) {
+                     && !Model.getFacade().isARelationship(o)
+
+                     // avoids modifications on profile models
+                     && !isRelatedToProfiles(currentProject, o)) {
                     classifiers.add(o);
                 }
             }
@@ -275,6 +291,23 @@
 
     }
 
+    private boolean isRelatedToProfiles(Project currentProject, Object selectedItem) {                
+        boolean found = selectedItem instanceof ProfileConfiguration ||
+                            selectedItem instanceof Profile;
+        
+        Iterator it = currentProject.getProfileConfiguration().getProfileModels().iterator();
+        while(!found && it.hasNext()) {
+            Object model = it.next();
+            
+            if ((Model.getFacade().getModel(selectedItem).equals(model))) {
+                found = true;
+                break;
+            }
+        }
+        
+        return found;
+    }
+
     /**
      * initialize the menu for diagram construction in the explorer popup menu.
      *

Modified: branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/NameOrder.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/NameOrder.java?view=diff&rev=13066&p1=branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/NameOrder.java&p2=branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/NameOrder.java&r1=13065&r2=13066
==============================================================================
--- branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/NameOrder.java	(original)
+++ branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/NameOrder.java	2007-07-13 04:36:24-0700
@@ -28,9 +28,11 @@
 
 import javax.swing.tree.DefaultMutableTreeNode;
 
+import org.argouml.i18n.Translator;
 import org.argouml.model.InvalidElementException;
 import org.argouml.model.Model;
-import org.argouml.i18n.Translator;
+import org.argouml.uml.profile.Profile;
+import org.argouml.uml.profile.ProfileConfiguration;
 import org.tigris.gef.base.Diagram;
 
 /**
@@ -97,7 +99,12 @@
         String name;
         if (obj instanceof Diagram) {
             name = ((Diagram) obj).getName();
+        } else if (obj instanceof ProfileConfiguration) {
+            name = "Profile Configuration";
+        } else if (obj instanceof Profile) {
+            name = ((Profile)obj).getDisplayName();
         } else {
+
             if (Model.getFacade().isAModelElement(obj)) { 
                 try {
                     name = Model.getFacade().getName(obj);

Modified: branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/PerspectiveManager.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/PerspectiveManager.java?view=diff&rev=13066&p1=branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/PerspectiveManager.java&p2=branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/PerspectiveManager.java&r1=13065&r2=13066
==============================================================================
--- branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/PerspectiveManager.java	(original)
+++ branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/PerspectiveManager.java	2007-07-13 04:36:24-0700
@@ -75,11 +75,14 @@
 import org.argouml.ui.explorer.rules.GoOperationToCollaboration;
 import org.argouml.ui.explorer.rules.GoOperationToCollaborationDiagram;
 import org.argouml.ui.explorer.rules.GoOperationToSequenceDiagram;
-import org.argouml.ui.explorer.rules.GoPackageToElementImport;
 import org.argouml.ui.explorer.rules.GoPackageToClass;
+import org.argouml.ui.explorer.rules.GoPackageToElementImport;
+import org.argouml.ui.explorer.rules.GoProfileConfigurationToProfile;
+import org.argouml.ui.explorer.rules.GoProfileToModel;
 import org.argouml.ui.explorer.rules.GoProjectToCollaboration;
 import org.argouml.ui.explorer.rules.GoProjectToDiagram;
 import org.argouml.ui.explorer.rules.GoProjectToModel;
+import org.argouml.ui.explorer.rules.GoProjectToProfileConfiguration;
 import org.argouml.ui.explorer.rules.GoProjectToStateMachine;
 import org.argouml.ui.explorer.rules.GoSignalToReception;
 import org.argouml.ui.explorer.rules.GoStateMachineToState;
@@ -339,6 +342,9 @@
             new ExplorerPerspective(
                 "combobox.item.class-centric");
         classPerspective.addRule(new GoProjectToModel());
+        classPerspective.addRule(new GoProjectToProfileConfiguration());
+        classPerspective.addRule(new GoProfileConfigurationToProfile());
+        classPerspective.addRule(new GoProfileToModel());
         classPerspective.addRule(new GoNamespaceToClassifierAndPackage());
         classPerspective.addRule(new GoNamespaceToDiagram());
         classPerspective.addRule(new GoClassToSummary());
@@ -353,6 +359,9 @@
             new ExplorerPerspective(
                 "combobox.item.package-centric");
         packagePerspective.addRule(new GoProjectToModel());
+        packagePerspective.addRule(new GoProjectToProfileConfiguration());
+        packagePerspective.addRule(new GoProfileConfigurationToProfile());
+        packagePerspective.addRule(new GoProfileToModel());
         packagePerspective.addRule(new GoNamespaceToOwnedElements());
         packagePerspective.addRule(new GoPackageToElementImport());
         packagePerspective.addRule(new GoNamespaceToDiagram());
@@ -397,6 +406,9 @@
             new ExplorerPerspective(
                 "combobox.item.diagram-centric");
         diagramPerspective.addRule(new GoProjectToModel());
+        diagramPerspective.addRule(new GoProjectToProfileConfiguration());
+        diagramPerspective.addRule(new GoProfileConfigurationToProfile());
+        diagramPerspective.addRule(new GoProfileToModel());
         diagramPerspective.addRule(new GoModelToDiagrams());
         diagramPerspective.addRule(new GoDiagramToNode());
         diagramPerspective.addRule(new GoDiagramToEdge());
@@ -408,6 +420,9 @@
             new ExplorerPerspective(
                 "combobox.item.inheritance-centric");
         inheritancePerspective.addRule(new GoProjectToModel());
+        inheritancePerspective.addRule(new GoProjectToProfileConfiguration());
+        classPerspective.addRule(new GoProfileConfigurationToProfile());
+        classPerspective.addRule(new GoProfileToModel());
         inheritancePerspective.addRule(new GoModelToBaseElements());
         inheritancePerspective
                 .addRule(new GoGeneralizableElementToSpecialized());
@@ -416,6 +431,9 @@
             new ExplorerPerspective(
                 "combobox.item.class-associations");
         associationsPerspective.addRule(new GoProjectToModel());
+        associationsPerspective.addRule(new GoProjectToProfileConfiguration());
+        associationsPerspective.addRule(new GoProfileConfigurationToProfile());
+        associationsPerspective.addRule(new GoProfileToModel());
         associationsPerspective.addRule(new GoNamespaceToDiagram());
         associationsPerspective.addRule(new GoPackageToClass());
         associationsPerspective.addRule(new GoClassToAssociatedClass());
@@ -424,6 +442,9 @@
             new ExplorerPerspective(
                 "combobox.item.residence-centric");
         residencePerspective.addRule(new GoProjectToModel());
+        residencePerspective.addRule(new GoProjectToProfileConfiguration());
+        residencePerspective.addRule(new GoProfileConfigurationToProfile());
+        residencePerspective.addRule(new GoProfileToModel());
         residencePerspective.addRule(new GoModelToNode());
         residencePerspective.addRule(new GoNodeToResidentComponent());
         residencePerspective.addRule(new GoComponentToResidentModelElement());
@@ -455,6 +476,9 @@
             new ExplorerPerspective(
                 "combobox.item.composite-centric");
         compositionPerspective.addRule(new GoProjectToModel());
+        compositionPerspective.addRule(new GoProjectToProfileConfiguration());
+        compositionPerspective.addRule(new GoProfileConfigurationToProfile());
+        compositionPerspective.addRule(new GoProfileToModel());
         compositionPerspective.addRule(new GoModelElementToContents());
         compositionPerspective.addRule(new GoModelElementToContainedDiagrams());
 
@@ -514,7 +538,9 @@
             new GoOperationToSequenceDiagram(), new GoPackageToClass(),
             new GoPackageToElementImport(),
             new GoProjectToCollaboration(), new GoProjectToDiagram(),
-            new GoProjectToModel(), new GoProjectToStateMachine(),
+            new GoProjectToModel(), new GoProjectToStateMachine(), 
+            new GoProjectToProfileConfiguration(), new GoProfileConfigurationToProfile(),
+            new GoProfileToModel(),
             new GoSignalToReception(), new GoStateMachineToTop(),
             new GoStatemachineToDiagram(), new GoStateMachineToState(),
             new GoStateMachineToTransition(), new GoStateToDoActivity(),

Added: branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProfileConfigurationToProfile.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProfileConfigurationToProfile.java?view=auto&rev=13066
==============================================================================
--- (empty file)
+++ branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProfileConfigurationToProfile.java	2007-07-13 04:36:24-0700
@@ -0,0 +1,65 @@
+// $Id: GoProjectToModel.java 13040 2007-07-10 20:00:25Z linus $

+// Copyright (c) 1996-2006 The Regents of the University of California. All

+// Rights Reserved. Permission to use, copy, modify, and distribute this

+// software and its documentation without fee, and without a written

+// agreement is hereby granted, provided that the above copyright notice

+// and this paragraph appear in all copies.  This software program and

+// documentation are copyrighted by The Regents of the University of

+// California. The software program and documentation are supplied "AS

+// IS", without any accompanying services from The Regents. The Regents

+// does not warrant that the operation of the program will be

+// uninterrupted or error-free. The end-user understands that the program

+// was developed for research purposes and is advised not to rely

+// exclusively on the program for any reason.  IN NO EVENT SHALL THE

+// UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,

+// SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,

+// ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF

+// THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF

+// SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY

+// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF

+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE

+// PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF

+// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,

+// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

+

+package org.argouml.ui.explorer.rules;

+

+import java.util.Collection;

+import java.util.Set;

+import java.util.Vector;

+

+import org.argouml.i18n.Translator;

+import org.argouml.kernel.Project;

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

+

+/**

+ * Rule for Project->Profile.

+ *

+ */

+public class GoProfileConfigurationToProfile extends AbstractPerspectiveRule {

+

+    /*

+     * @see org.argouml.ui.explorer.rules.PerspectiveRule#getRuleName()

+     */

+    public String getRuleName() {

+	return Translator.localize ("misc.profileconfiguration.profile");

+    }

+

+    /*

+     * @see org.argouml.ui.explorer.rules.PerspectiveRule#getChildren(java.lang.Object)

+     */

+    public Collection getChildren(Object parent) {

+	if (parent instanceof ProfileConfiguration) {

+	    return ((ProfileConfiguration)parent).getProfiles();

+	}

+	return null;

+    }

+

+    /*

+     * @see org.argouml.ui.explorer.rules.PerspectiveRule#getDependencies(java.lang.Object)

+     */

+    public Set getDependencies(Object parent) {

+        // TODO: What?

+	return null;

+    }

+}


Added: branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProfileToModel.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProfileToModel.java?view=auto&rev=13066
==============================================================================
--- (empty file)
+++ branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProfileToModel.java	2007-07-13 04:36:24-0700
@@ -0,0 +1,67 @@
+// $Id: GoProjectToModel.java 13040 2007-07-10 20:00:25Z linus $

+// Copyright (c) 1996-2006 The Regents of the University of California. All

+// Rights Reserved. Permission to use, copy, modify, and distribute this

+// software and its documentation without fee, and without a written

+// agreement is hereby granted, provided that the above copyright notice

+// and this paragraph appear in all copies.  This software program and

+// documentation are copyrighted by The Regents of the University of

+// California. The software program and documentation are supplied "AS

+// IS", without any accompanying services from The Regents. The Regents

+// does not warrant that the operation of the program will be

+// uninterrupted or error-free. The end-user understands that the program

+// was developed for research purposes and is advised not to rely

+// exclusively on the program for any reason.  IN NO EVENT SHALL THE

+// UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,

+// SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,

+// ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF

+// THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF

+// SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY

+// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF

+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE

+// PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF

+// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,

+// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

+

+package org.argouml.ui.explorer.rules;

+

+import java.util.Collection;

+import java.util.Set;

+import java.util.Vector;

+

+import org.argouml.i18n.Translator;

+import org.argouml.model.Model;

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

+

+/**

+ * Rule for Project->Profile.

+ *

+ */

+public class GoProfileToModel extends AbstractPerspectiveRule {

+

+    /*

+     * @see org.argouml.ui.explorer.rules.PerspectiveRule#getRuleName()

+     */

+    public String getRuleName() {

+	return Translator.localize ("misc.profile.model");

+    }

+

+    /*

+     * @see org.argouml.ui.explorer.rules.PerspectiveRule#getChildren(java.lang.Object)

+     */

+    public Collection getChildren(Object parent) {

+	if (parent instanceof Profile) {

+//            Vector l = new Vector();

+//            l.add(((Profile)parent).getModel());

+	    return Model.getFacade().getOwnedElements(((Profile)parent).getModel());

+	}

+	return null;

+    }

+

+    /*

+     * @see org.argouml.ui.explorer.rules.PerspectiveRule#getDependencies(java.lang.Object)

+     */

+    public Set getDependencies(Object parent) {

+        // TODO: What?

+	return null;

+    }

+}


Added: branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProjectToProfileConfiguration.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProjectToProfileConfiguration.java?view=auto&rev=13066
==============================================================================
--- (empty file)
+++ branches/gsoc2007/maurelio1234/src_new/org/argouml/ui/explorer/rules/GoProjectToProfileConfiguration.java	2007-07-13 04:36:24-0700
@@ -0,0 +1,66 @@
+// $Id: GoProjectToModel.java 13040 2007-07-10 20:00:25Z linus $

+// Copyright (c) 1996-2006 The Regents of the University of California. All

+// Rights Reserved. Permission to use, copy, modify, and distribute this

+// software and its documentation without fee, and without a written

+// agreement is hereby granted, provided that the above copyright notice

+// and this paragraph appear in all copies.  This software program and

+// documentation are copyrighted by The Regents of the University of

+// California. The software program and documentation are supplied "AS

+// IS", without any accompanying services from The Regents. The Regents

+// does not warrant that the operation of the program will be

+// uninterrupted or error-free. The end-user understands that the program

+// was developed for research purposes and is advised not to rely

+// exclusively on the program for any reason.  IN NO EVENT SHALL THE

+// UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,

+// SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,

+// ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF

+// THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF

+// SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY

+// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF

+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE

+// PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF

+// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,

+// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

+

+package org.argouml.ui.explorer.rules;

+

+import java.util.Collection;

+import java.util.Set;

+import java.util.Vector;

+

+import org.argouml.i18n.Translator;

+import org.argouml.kernel.Project;

+

+/**

+ * Rule for Project->Profile.

+ *

+ */

+public class GoProjectToProfileConfiguration extends AbstractPerspectiveRule {

+

+    /*

+     * @see org.argouml.ui.explorer.rules.PerspectiveRule#getRuleName()

+     */

+    public String getRuleName() {

+	return Translator.localize ("misc.project.profileconfiguration");

+    }

+

+    /*

+     * @see org.argouml.ui.explorer.rules.PerspectiveRule#getChildren(java.lang.Object)

+     */

+    public Collection getChildren(Object parent) {

+	if (parent instanceof Project) {

+            Vector l = new Vector();

+            l.add(((Project) parent).getProfileConfiguration());

+	    return l;

+	}

+	return null;

+    }

+

+    /*

+     * @see org.argouml.ui.explorer.rules.PerspectiveRule#getDependencies(java.lang.Object)

+     */

+    public Set getDependencies(Object parent) {

+        // TODO: What?

+	return null;

+    }

+}


Modified: branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/diagram/ui/FigNodeModelElement.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/diagram/ui/FigNodeModelElement.java?view=diff&rev=13066&p1=branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/diagram/ui/FigNodeModelElement.java&p2=branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/diagram/ui/FigNodeModelElement.java&r1=13065&r2=13066
==============================================================================
--- branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/diagram/ui/FigNodeModelElement.java	(original)
+++ branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/diagram/ui/FigNodeModelElement.java	2007-07-13 04:36:24-0700
@@ -1385,7 +1385,8 @@
         return getClass().getName()
             + "[" + getX() + ", " + getY() + ", "
             + getWidth() + ", " + getHeight() + "]"
-            + "pathVisible=" + isPathVisible() + ";";
+            + "pathVisible=" + isPathVisible() + ";"
+            + "stereotypeView=" + getStereotypeView() + ";";
     }
 
     /**

Modified: branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/Profile.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/Profile.java?view=diff&rev=13066&p1=branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/Profile.java&p2=branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/Profile.java&r1=13065&r2=13066
==============================================================================
--- branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/Profile.java	(original)
+++ branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/Profile.java	2007-07-13 04:36:24-0700
@@ -55,4 +55,11 @@
      */
     public abstract FigNodeStrategy   getFigureStrategy();
 
+    /**
+     * @return the display name
+     * @see java.lang.Object#toString()
+     */
+    public String toString() {
+        return getDisplayName();
+    }
 }

Modified: branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/ProfileConfiguration.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/ProfileConfiguration.java?view=diff&rev=13066&p1=branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/ProfileConfiguration.java&p2=branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/ProfileConfiguration.java&r1=13065&r2=13066
==============================================================================
--- branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/ProfileConfiguration.java	(original)
+++ branches/gsoc2007/maurelio1234/src_new/org/argouml/uml/profile/ProfileConfiguration.java	2007-07-13 04:36:24-0700
@@ -209,4 +209,11 @@
 	return "";
     }
 
+    /**
+     * @return the "Profile Configuration" string
+     * @see java.lang.Object#toString()
+     */
+    public String toString() {
+        return "Profile Configuration";
+    }
 }
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.