Author: mvw
Date: 2008-05-01 12:20:21-0700
New Revision: 14564
Added:
trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/ActivityDiagramPropPanelFactory.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/InitActivityDiagram.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/PropPanelUMLActivityDiagram.java
- copied, changed from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLActivityDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/CollaborationDiagramPropPanelFactory.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/InitCollaborationDiagram.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/PropPanelUMLCollaborationDiagram.java
- copied, changed from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLCollaborationDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/DeploymentDiagramPropPanelFactory.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/InitDeploymentDiagram.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/PropPanelUMLDeploymentDiagram.java
- copied, changed from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLDeploymentDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/InitSequenceDiagram.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/PropPanelUMLSequenceDiagram.java
- copied, changed from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLSequenceDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/SequenceDiagramPropPanelFactory.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/InitStateDiagram.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/PropPanelUMLStateDiagram.java
- copied, changed from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLStateDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/StateDiagramPropPanelFactory.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/ClassDiagramPropPanelFactory.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/InitClassDiagram.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/PropPanelUMLClassDiagram.java
- copied, changed from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLClassDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/InitUseCaseDiagram.java (contents, props changed)
trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/PropPanelUMLUseCaseDiagram.java
- copied, changed from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLUseCaseDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/UseCaseDiagramPropPanelFactory.java (contents, props changed)
Removed:
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/DiagramPropPanelFactory.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLActivityDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLClassDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLCollaborationDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLDeploymentDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLSequenceDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLStateDiagram.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLUseCaseDiagram.java
Modified:
trunk/src/argouml-app/src/org/argouml/application/Main.java
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/InitDiagramAppearanceUI.java
trunk/src/argouml-app/src/org/argouml/uml/ui/PropPanelFactory.java
trunk/src/argouml-app/tests/org/argouml/kernel/TestProject.java
trunk/src/argouml-app/tests/org/argouml/persistence/TestZargoFilePersister.java
trunk/src/argouml-app/tests/org/argouml/ui/TestDetailsPane.java
trunk/src/argouml-app/tests/org/argouml/ui/TestPropertyPanels.java
Log:
Split up the DiagramPropPanelFactory per diagram.
Modified: trunk/src/argouml-app/src/org/argouml/application/Main.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/application/Main.java?view=diff&rev=14564&p1=trunk/src/argouml-app/src/org/argouml/application/Main.java&p2=trunk/src/argouml-app/src/org/argouml/application/Main.java&r1=14563&r2=14564
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/application/Main.java (original)
+++ trunk/src/argouml-app/src/org/argouml/application/Main.java 2008-05-01 12:20:21-0700
@@ -77,7 +77,14 @@
import org.argouml.ui.cmd.ActionExit;
import org.argouml.ui.cmd.InitUiCmdSubsystem;
import org.argouml.ui.cmd.PrintManager;
+import org.argouml.uml.diagram.activity.ui.InitActivityDiagram;
+import org.argouml.uml.diagram.collaboration.ui.InitCollaborationDiagram;
+import org.argouml.uml.diagram.deployment.ui.InitDeploymentDiagram;
+import org.argouml.uml.diagram.sequence.ui.InitSequenceDiagram;
+import org.argouml.uml.diagram.state.ui.InitStateDiagram;
+import org.argouml.uml.diagram.static_structure.ui.InitClassDiagram;
import org.argouml.uml.diagram.ui.InitDiagramAppearanceUI;
+import org.argouml.uml.diagram.use_case.ui.InitUseCaseDiagram;
import org.argouml.uml.reveng.java.JavaImport;
import org.argouml.uml.ui.InitUmlUI;
import org.argouml.util.ArgoFrame;
@@ -400,6 +407,13 @@
SubsystemUtility.initSubsystem(new InitNotationUml());
SubsystemUtility.initSubsystem(new InitNotationJava());
SubsystemUtility.initSubsystem(new InitDiagramAppearanceUI());
+ SubsystemUtility.initSubsystem(new InitActivityDiagram());
+ SubsystemUtility.initSubsystem(new InitCollaborationDiagram());
+ SubsystemUtility.initSubsystem(new InitDeploymentDiagram());
+ SubsystemUtility.initSubsystem(new InitSequenceDiagram());
+ SubsystemUtility.initSubsystem(new InitStateDiagram());
+ SubsystemUtility.initSubsystem(new InitClassDiagram());
+ SubsystemUtility.initSubsystem(new InitUseCaseDiagram());
SubsystemUtility.initSubsystem(new InitUmlUI());
SubsystemUtility.initSubsystem(new InitCheckListUI());
SubsystemUtility.initSubsystem(new InitCognitiveUI());
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/ActivityDiagramPropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/ActivityDiagramPropPanelFactory.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/ActivityDiagramPropPanelFactory.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,44 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.activity.ui;
+
+import org.argouml.uml.ui.PropPanel;
+import org.argouml.uml.ui.PropPanelFactory;
+
+/**
+ * This factory creates the right PropPanelDiagram for a given Activity diagram.
+ *
+ * @author Michiel
+ */
+public class ActivityDiagramPropPanelFactory implements PropPanelFactory {
+
+ public PropPanel createPropPanel(Object object) {
+ if (object instanceof UMLActivityDiagram) {
+ return new PropPanelUMLActivityDiagram();
+ }
+ return null;
+ }
+
+}
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/InitActivityDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/InitActivityDiagram.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/InitActivityDiagram.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,61 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.activity.ui;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.argouml.application.api.AbstractArgoJPanel;
+import org.argouml.application.api.GUISettingsTabInterface;
+import org.argouml.application.api.InitSubsystem;
+import org.argouml.uml.ui.PropPanelFactory;
+import org.argouml.uml.ui.PropPanelFactoryManager;
+
+/**
+ * Initialise this subsystem.
+ *
+ * @author Michiel
+ */
+public class InitActivityDiagram implements InitSubsystem {
+
+ public List<AbstractArgoJPanel> getDetailsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getProjectSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public void init() {
+ /* Set up the property panels for activity diagrams: */
+ PropPanelFactory diagramFactory = new ActivityDiagramPropPanelFactory();
+ PropPanelFactoryManager.addPropPanelFactory(diagramFactory);
+ }
+
+}
Copied: trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/PropPanelUMLActivityDiagram.java (from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLActivityDiagram.java)
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/PropPanelUMLActivityDiagram.java?view=diff&rev=14564&p1=/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLActivityDiagram.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/PropPanelUMLActivityDiagram.java&r1=14557&r2=14564
==============================================================================
--- /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLActivityDiagram.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/activity/ui/PropPanelUMLActivityDiagram.java 2008-05-01 12:20:21-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2006 The Regents of the University of California. All
+// Copyright (c) 1996-2008 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
@@ -22,16 +22,18 @@
// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-package org.argouml.uml.diagram.ui;
+package org.argouml.uml.diagram.activity.ui;
import org.argouml.i18n.Translator;
+import org.argouml.uml.diagram.ui.PropPanelDiagram;
/**
+ * The properties panel for an Activity Diagram.
*
* @author [email protected]
* @since Jan 3, 2003
*/
-public class PropPanelUMLActivityDiagram extends PropPanelDiagram {
+class PropPanelUMLActivityDiagram extends PropPanelDiagram {
/**
* Constructor for PropPanelUMLActivityDiagram.
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/CollaborationDiagramPropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/CollaborationDiagramPropPanelFactory.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/CollaborationDiagramPropPanelFactory.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,45 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.collaboration.ui;
+
+import org.argouml.uml.ui.PropPanel;
+import org.argouml.uml.ui.PropPanelFactory;
+
+/**
+ * This factory creates the right PropPanelDiagram for a given
+ * Collaboration diagram.
+ *
+ * @author Michiel
+ */
+public class CollaborationDiagramPropPanelFactory implements PropPanelFactory {
+
+ public PropPanel createPropPanel(Object object) {
+ if (object instanceof UMLCollaborationDiagram) {
+ return new PropPanelUMLCollaborationDiagram();
+ }
+ return null;
+ }
+
+}
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/InitCollaborationDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/InitCollaborationDiagram.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/InitCollaborationDiagram.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,62 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.collaboration.ui;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.argouml.application.api.AbstractArgoJPanel;
+import org.argouml.application.api.GUISettingsTabInterface;
+import org.argouml.application.api.InitSubsystem;
+import org.argouml.uml.ui.PropPanelFactory;
+import org.argouml.uml.ui.PropPanelFactoryManager;
+
+/**
+ * Initialise this subsystem.
+ *
+ * @author Michiel
+ */
+public class InitCollaborationDiagram implements InitSubsystem {
+
+ public List<AbstractArgoJPanel> getDetailsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getProjectSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public void init() {
+ /* Set up the property panels for collaboration diagrams: */
+ PropPanelFactory diagramFactory =
+ new CollaborationDiagramPropPanelFactory();
+ PropPanelFactoryManager.addPropPanelFactory(diagramFactory);
+ }
+
+}
Copied: trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/PropPanelUMLCollaborationDiagram.java (from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLCollaborationDiagram.java)
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/PropPanelUMLCollaborationDiagram.java?view=diff&rev=14564&p1=/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLCollaborationDiagram.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/PropPanelUMLCollaborationDiagram.java&r1=14557&r2=14564
==============================================================================
--- /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLCollaborationDiagram.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/collaboration/ui/PropPanelUMLCollaborationDiagram.java 2008-05-01 12:20:21-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2006 The Regents of the University of California. All
+// Copyright (c) 1996-2008 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
@@ -22,16 +22,17 @@
// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-package org.argouml.uml.diagram.ui;
+package org.argouml.uml.diagram.collaboration.ui;
import org.argouml.i18n.Translator;
+import org.argouml.uml.diagram.ui.PropPanelDiagram;
/**
*
* @author [email protected]
* @since Jan 3, 2003
*/
-public class PropPanelUMLCollaborationDiagram extends PropPanelDiagram {
+class PropPanelUMLCollaborationDiagram extends PropPanelDiagram {
/**
* Constructor for PropPanelUMLCollaborationDiagram.
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/DeploymentDiagramPropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/DeploymentDiagramPropPanelFactory.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/DeploymentDiagramPropPanelFactory.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,45 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.deployment.ui;
+
+import org.argouml.uml.ui.PropPanel;
+import org.argouml.uml.ui.PropPanelFactory;
+
+/**
+ * This factory creates the right PropPanelDiagram for
+ * a given Deployment diagram.
+ *
+ * @author Michiel
+ */
+public class DeploymentDiagramPropPanelFactory implements PropPanelFactory {
+
+ public PropPanel createPropPanel(Object object) {
+ if (object instanceof UMLDeploymentDiagram) {
+ return new PropPanelUMLDeploymentDiagram();
+ }
+ return null;
+ }
+
+}
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/InitDeploymentDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/InitDeploymentDiagram.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/InitDeploymentDiagram.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,62 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.deployment.ui;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.argouml.application.api.AbstractArgoJPanel;
+import org.argouml.application.api.GUISettingsTabInterface;
+import org.argouml.application.api.InitSubsystem;
+import org.argouml.uml.ui.PropPanelFactory;
+import org.argouml.uml.ui.PropPanelFactoryManager;
+
+/**
+ * Initialise this subsystem.
+ *
+ * @author Michiel
+ */
+public class InitDeploymentDiagram implements InitSubsystem {
+
+ public List<AbstractArgoJPanel> getDetailsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getProjectSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public void init() {
+ /* Set up the property panels for deployment diagrams: */
+ PropPanelFactory diagramFactory =
+ new DeploymentDiagramPropPanelFactory();
+ PropPanelFactoryManager.addPropPanelFactory(diagramFactory);
+ }
+
+}
Copied: trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/PropPanelUMLDeploymentDiagram.java (from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLDeploymentDiagram.java)
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/PropPanelUMLDeploymentDiagram.java?view=diff&rev=14564&p1=/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLDeploymentDiagram.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/PropPanelUMLDeploymentDiagram.java&r1=14557&r2=14564
==============================================================================
--- /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLDeploymentDiagram.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/deployment/ui/PropPanelUMLDeploymentDiagram.java 2008-05-01 12:20:21-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2006 The Regents of the University of California. All
+// Copyright (c) 1996-2008 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
@@ -22,16 +22,18 @@
// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-package org.argouml.uml.diagram.ui;
+package org.argouml.uml.diagram.deployment.ui;
import org.argouml.i18n.Translator;
+import org.argouml.uml.diagram.ui.PropPanelDiagram;
/**
+ * The properties panel for a deployment diagram.
*
* @author [email protected]
* @since Jan 3, 2003
*/
-public class PropPanelUMLDeploymentDiagram extends PropPanelDiagram {
+class PropPanelUMLDeploymentDiagram extends PropPanelDiagram {
/**
* Constructor for PropPanelUMLDeploymentDiagram.
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/InitSequenceDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/InitSequenceDiagram.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/InitSequenceDiagram.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,62 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.sequence.ui;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.argouml.application.api.AbstractArgoJPanel;
+import org.argouml.application.api.GUISettingsTabInterface;
+import org.argouml.application.api.InitSubsystem;
+import org.argouml.uml.ui.PropPanelFactory;
+import org.argouml.uml.ui.PropPanelFactoryManager;
+
+/**
+ * Initialise this subsystem.
+ *
+ * @author Michiel
+ */
+public class InitSequenceDiagram implements InitSubsystem {
+
+ public List<AbstractArgoJPanel> getDetailsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getProjectSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public void init() {
+ /* Set up the property panels for sequence diagrams: */
+ PropPanelFactory diagramFactory =
+ new SequenceDiagramPropPanelFactory();
+ PropPanelFactoryManager.addPropPanelFactory(diagramFactory);
+ }
+
+}
Copied: trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/PropPanelUMLSequenceDiagram.java (from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLSequenceDiagram.java)
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/PropPanelUMLSequenceDiagram.java?view=diff&rev=14564&p1=/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLSequenceDiagram.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/PropPanelUMLSequenceDiagram.java&r1=14557&r2=14564
==============================================================================
--- /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLSequenceDiagram.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/PropPanelUMLSequenceDiagram.java 2008-05-01 12:20:21-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2006 The Regents of the University of California. All
+// Copyright (c) 1996-2008 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
@@ -22,16 +22,18 @@
// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-package org.argouml.uml.diagram.ui;
+package org.argouml.uml.diagram.sequence.ui;
import org.argouml.i18n.Translator;
+import org.argouml.uml.diagram.ui.PropPanelDiagram;
/**
+ * The properties panel for a sequence diagram.
*
* @author [email protected]
* @since Jan 3, 2003
*/
-public class PropPanelUMLSequenceDiagram extends PropPanelDiagram {
+class PropPanelUMLSequenceDiagram extends PropPanelDiagram {
/**
* Constructor for PropPanelUMLSequenceDiagram.
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/SequenceDiagramPropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/SequenceDiagramPropPanelFactory.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/sequence/ui/SequenceDiagramPropPanelFactory.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,44 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.sequence.ui;
+
+import org.argouml.uml.ui.PropPanel;
+import org.argouml.uml.ui.PropPanelFactory;
+
+/**
+ * This factory creates the right PropPanelDiagram for a given Sequence diagram.
+ *
+ * @author Michiel
+ */
+public class SequenceDiagramPropPanelFactory implements PropPanelFactory {
+
+ public PropPanel createPropPanel(Object object) {
+ if (object instanceof UMLSequenceDiagram) {
+ return new PropPanelUMLSequenceDiagram();
+ }
+ return null;
+ }
+
+}
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/InitStateDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/InitStateDiagram.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/InitStateDiagram.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,61 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.state.ui;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.argouml.application.api.AbstractArgoJPanel;
+import org.argouml.application.api.GUISettingsTabInterface;
+import org.argouml.application.api.InitSubsystem;
+import org.argouml.uml.ui.PropPanelFactory;
+import org.argouml.uml.ui.PropPanelFactoryManager;
+
+/**
+ * Initialise this subsystem.
+ *
+ * @author Michiel
+ */
+public class InitStateDiagram implements InitSubsystem {
+
+ public List<AbstractArgoJPanel> getDetailsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getProjectSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public void init() {
+ /* Set up the property panels for statechart diagrams: */
+ PropPanelFactory diagramFactory = new StateDiagramPropPanelFactory();
+ PropPanelFactoryManager.addPropPanelFactory(diagramFactory);
+ }
+
+}
Copied: trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/PropPanelUMLStateDiagram.java (from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLStateDiagram.java)
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/PropPanelUMLStateDiagram.java?view=diff&rev=14564&p1=/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLStateDiagram.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/PropPanelUMLStateDiagram.java&r1=14557&r2=14564
==============================================================================
--- /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLStateDiagram.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/PropPanelUMLStateDiagram.java 2008-05-01 12:20:21-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2006 The Regents of the University of California. All
+// Copyright (c) 1996-2008 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
@@ -22,15 +22,16 @@
// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-package org.argouml.uml.diagram.ui;
+package org.argouml.uml.diagram.state.ui;
import org.argouml.i18n.Translator;
+import org.argouml.uml.diagram.ui.PropPanelDiagram;
/**
* The properties panel for a Statechart diagram.
*
*/
-public class PropPanelUMLStateDiagram extends PropPanelDiagram {
+class PropPanelUMLStateDiagram extends PropPanelDiagram {
/**
* The constructor.
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/StateDiagramPropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/StateDiagramPropPanelFactory.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/StateDiagramPropPanelFactory.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,45 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.state.ui;
+
+import org.argouml.uml.ui.PropPanel;
+import org.argouml.uml.ui.PropPanelFactory;
+
+/**
+ * This factory creates the right PropPanelDiagram for a given
+ * statechart diagram.
+ *
+ * @author Michiel
+ */
+public class StateDiagramPropPanelFactory implements PropPanelFactory {
+
+ public PropPanel createPropPanel(Object object) {
+ if (object instanceof UMLStateDiagram) {
+ return new PropPanelUMLStateDiagram();
+ }
+ return null;
+ }
+
+}
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/ClassDiagramPropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/ClassDiagramPropPanelFactory.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/ClassDiagramPropPanelFactory.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,44 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.static_structure.ui;
+
+import org.argouml.uml.ui.PropPanel;
+import org.argouml.uml.ui.PropPanelFactory;
+
+/**
+ * This factory creates the right PropPanelDiagram for a given Class diagram.
+ *
+ * @author Michiel
+ */
+public class ClassDiagramPropPanelFactory implements PropPanelFactory {
+
+ public PropPanel createPropPanel(Object object) {
+ if (object instanceof UMLClassDiagram) {
+ return new PropPanelUMLClassDiagram();
+ }
+ return null;
+ }
+
+}
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/InitClassDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/InitClassDiagram.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/InitClassDiagram.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,61 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.static_structure.ui;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.argouml.application.api.AbstractArgoJPanel;
+import org.argouml.application.api.GUISettingsTabInterface;
+import org.argouml.application.api.InitSubsystem;
+import org.argouml.uml.ui.PropPanelFactory;
+import org.argouml.uml.ui.PropPanelFactoryManager;
+
+/**
+ * Initialise this subsystem.
+ *
+ * @author Michiel
+ */
+public class InitClassDiagram implements InitSubsystem {
+
+ public List<AbstractArgoJPanel> getDetailsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getProjectSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public void init() {
+ /* Set up the property panels for class diagrams: */
+ PropPanelFactory diagramFactory = new ClassDiagramPropPanelFactory();
+ PropPanelFactoryManager.addPropPanelFactory(diagramFactory);
+ }
+
+}
Copied: trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/PropPanelUMLClassDiagram.java (from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLClassDiagram.java)
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/PropPanelUMLClassDiagram.java?view=diff&rev=14564&p1=/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLClassDiagram.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/PropPanelUMLClassDiagram.java&r1=14557&r2=14564
==============================================================================
--- /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLClassDiagram.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/PropPanelUMLClassDiagram.java 2008-05-01 12:20:21-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2006 The Regents of the University of California. All
+// Copyright (c) 1996-2008 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
@@ -22,15 +22,16 @@
// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-package org.argouml.uml.diagram.ui;
+package org.argouml.uml.diagram.static_structure.ui;
import org.argouml.i18n.Translator;
+import org.argouml.uml.diagram.ui.PropPanelDiagram;
/**
* @author [email protected]
* @since Jan 3, 2003
*/
-public class PropPanelUMLClassDiagram extends PropPanelDiagram {
+class PropPanelUMLClassDiagram extends PropPanelDiagram {
/**
* Constructor for PropPanelUMLClassDiagram.
Removed: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/DiagramPropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/DiagramPropPanelFactory.java?view=auto&rev=14563
Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/InitDiagramAppearanceUI.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/InitDiagramAppearanceUI.java?view=diff&rev=14564&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/InitDiagramAppearanceUI.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/InitDiagramAppearanceUI.java&r1=14563&r2=14564
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/InitDiagramAppearanceUI.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/InitDiagramAppearanceUI.java 2008-05-01 12:20:21-0700
@@ -32,8 +32,6 @@
import org.argouml.application.api.Argo;
import org.argouml.application.api.GUISettingsTabInterface;
import org.argouml.application.api.InitSubsystem;
-import org.argouml.uml.ui.PropPanelFactory;
-import org.argouml.uml.ui.PropPanelFactoryManager;
/**
* Initialise this subsystem.
@@ -43,9 +41,7 @@
public class InitDiagramAppearanceUI implements InitSubsystem {
public void init() {
- /* Set up the property panels for diagrams: */
- PropPanelFactory diagramFactory = new DiagramPropPanelFactory();
- PropPanelFactoryManager.addPropPanelFactory(diagramFactory);
+ // Do nothing.
}
public List<GUISettingsTabInterface> getProjectSettingsTabs() {
Removed: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLActivityDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLActivityDiagram.java?view=auto&rev=14563
Removed: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLClassDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLClassDiagram.java?view=auto&rev=14563
Removed: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLCollaborationDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLCollaborationDiagram.java?view=auto&rev=14563
Removed: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLDeploymentDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLDeploymentDiagram.java?view=auto&rev=14563
Removed: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLSequenceDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLSequenceDiagram.java?view=auto&rev=14563
Removed: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLStateDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLStateDiagram.java?view=auto&rev=14563
Removed: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLUseCaseDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLUseCaseDiagram.java?view=auto&rev=14563
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/InitUseCaseDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/InitUseCaseDiagram.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/InitUseCaseDiagram.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,61 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.use_case.ui;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.argouml.application.api.AbstractArgoJPanel;
+import org.argouml.application.api.GUISettingsTabInterface;
+import org.argouml.application.api.InitSubsystem;
+import org.argouml.uml.ui.PropPanelFactory;
+import org.argouml.uml.ui.PropPanelFactoryManager;
+
+/**
+ * Initialise this subsystem.
+ *
+ * @author Michiel
+ */
+public class InitUseCaseDiagram implements InitSubsystem {
+
+ public List<AbstractArgoJPanel> getDetailsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getProjectSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public List<GUISettingsTabInterface> getSettingsTabs() {
+ return Collections.emptyList();
+ }
+
+ public void init() {
+ /* Set up the property panels for use case diagrams: */
+ PropPanelFactory diagramFactory = new UseCaseDiagramPropPanelFactory();
+ PropPanelFactoryManager.addPropPanelFactory(diagramFactory);
+ }
+
+}
Copied: trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/PropPanelUMLUseCaseDiagram.java (from r14557, /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLUseCaseDiagram.java)
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/PropPanelUMLUseCaseDiagram.java?view=diff&rev=14564&p1=/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLUseCaseDiagram.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/PropPanelUMLUseCaseDiagram.java&r1=14557&r2=14564
==============================================================================
--- /trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PropPanelUMLUseCaseDiagram.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/PropPanelUMLUseCaseDiagram.java 2008-05-01 12:20:21-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2006 The Regents of the University of California. All
+// Copyright (c) 1996-2008 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
@@ -22,15 +22,16 @@
// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-package org.argouml.uml.diagram.ui;
+package org.argouml.uml.diagram.use_case.ui;
import org.argouml.i18n.Translator;
+import org.argouml.uml.diagram.ui.PropPanelDiagram;
/**
* @author [email protected]
* @since Jan 3, 2003
*/
-public class PropPanelUMLUseCaseDiagram extends PropPanelDiagram {
+class PropPanelUMLUseCaseDiagram extends PropPanelDiagram {
/**
* Constructor for PropPanelUMLUseCaseDiagram.
Added: trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/UseCaseDiagramPropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/UseCaseDiagramPropPanelFactory.java?view=auto&rev=14564
==============================================================================
--- (empty file)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/use_case/ui/UseCaseDiagramPropPanelFactory.java 2008-05-01 12:20:21-0700
@@ -0,0 +1,44 @@
+// $Id$
+// Copyright (c) 2008 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.uml.diagram.use_case.ui;
+
+import org.argouml.uml.ui.PropPanel;
+import org.argouml.uml.ui.PropPanelFactory;
+
+/**
+ * This factory creates the right PropPanelDiagram for a given UseCase diagram.
+ *
+ * @author Michiel
+ */
+public class UseCaseDiagramPropPanelFactory implements PropPanelFactory {
+
+ public PropPanel createPropPanel(Object object) {
+ if (object instanceof UMLUseCaseDiagram) {
+ return new PropPanelUMLUseCaseDiagram();
+ }
+ return null;
+ }
+
+}
Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/PropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/PropPanelFactory.java?view=diff&rev=14564&p1=trunk/src/argouml-app/src/org/argouml/uml/ui/PropPanelFactory.java&p2=trunk/src/argouml-app/src/org/argouml/uml/ui/PropPanelFactory.java&r1=14563&r2=14564
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/PropPanelFactory.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/PropPanelFactory.java 2008-05-01 12:20:21-0700
@@ -46,8 +46,8 @@
* the object is invalid/unknown. However,
* be careful not to break the possibility to extend ArgoUML.
*
- * @param obj the object to create a new PropPanel for
+ * @param object the object to create a new PropPanel for
* @return the new proppanel or null
*/
- PropPanel createPropPanel(Object obj);
+ PropPanel createPropPanel(Object object);
}
Modified: trunk/src/argouml-app/tests/org/argouml/kernel/TestProject.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/kernel/TestProject.java?view=diff&rev=14564&p1=trunk/src/argouml-app/tests/org/argouml/kernel/TestProject.java&p2=trunk/src/argouml-app/tests/org/argouml/kernel/TestProject.java&r1=14563&r2=14564
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/kernel/TestProject.java (original)
+++ trunk/src/argouml-app/tests/org/argouml/kernel/TestProject.java 2008-05-01 12:20:21-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2007 The Regents of the University of California. All
+// Copyright (c) 1996-2008 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
@@ -29,9 +29,9 @@
import java.util.Collection;
import junit.framework.TestCase;
-import org.argouml.model.InitializeModel;
import org.argouml.i18n.Translator;
+import org.argouml.model.InitializeModel;
import org.argouml.model.Model;
import org.argouml.notation.InitNotation;
import org.argouml.notation.providers.java.InitNotationJava;
@@ -41,10 +41,17 @@
import org.argouml.persistence.PersistenceManager;
import org.argouml.profile.init.InitProfileSubsystem;
import org.argouml.ui.targetmanager.TargetManager;
+import org.argouml.uml.diagram.activity.ui.InitActivityDiagram;
import org.argouml.uml.diagram.activity.ui.UMLActivityDiagram;
+import org.argouml.uml.diagram.collaboration.ui.InitCollaborationDiagram;
+import org.argouml.uml.diagram.deployment.ui.InitDeploymentDiagram;
+import org.argouml.uml.diagram.sequence.ui.InitSequenceDiagram;
+import org.argouml.uml.diagram.state.ui.InitStateDiagram;
import org.argouml.uml.diagram.state.ui.UMLStateDiagram;
+import org.argouml.uml.diagram.static_structure.ui.InitClassDiagram;
import org.argouml.uml.diagram.static_structure.ui.UMLClassDiagram;
import org.argouml.uml.diagram.ui.InitDiagramAppearanceUI;
+import org.argouml.uml.diagram.use_case.ui.InitUseCaseDiagram;
/**
@@ -519,6 +526,13 @@
(new InitNotationUml()).init();
(new InitNotationJava()).init();
(new InitDiagramAppearanceUI()).init();
+ (new InitActivityDiagram()).init();
+ (new InitCollaborationDiagram()).init();
+ (new InitDeploymentDiagram()).init();
+ (new InitSequenceDiagram()).init();
+ (new InitStateDiagram()).init();
+ (new InitClassDiagram()).init();
+ (new InitUseCaseDiagram()).init();
(new InitProfileSubsystem()).init();
}
}
Modified: trunk/src/argouml-app/tests/org/argouml/persistence/TestZargoFilePersister.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/persistence/TestZargoFilePersister.java?view=diff&rev=14564&p1=trunk/src/argouml-app/tests/org/argouml/persistence/TestZargoFilePersister.java&p2=trunk/src/argouml-app/tests/org/argouml/persistence/TestZargoFilePersister.java&r1=14563&r2=14564
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/persistence/TestZargoFilePersister.java (original)
+++ trunk/src/argouml-app/tests/org/argouml/persistence/TestZargoFilePersister.java 2008-05-01 12:20:21-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2007 The Regents of the University of California. All
+// Copyright (c) 1996-2008 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
@@ -40,7 +40,14 @@
import org.argouml.notation.providers.java.InitNotationJava;
import org.argouml.notation.providers.uml.InitNotationUml;
import org.argouml.profile.init.InitProfileSubsystem;
+import org.argouml.uml.diagram.activity.ui.InitActivityDiagram;
+import org.argouml.uml.diagram.collaboration.ui.InitCollaborationDiagram;
+import org.argouml.uml.diagram.deployment.ui.InitDeploymentDiagram;
+import org.argouml.uml.diagram.sequence.ui.InitSequenceDiagram;
+import org.argouml.uml.diagram.state.ui.InitStateDiagram;
+import org.argouml.uml.diagram.static_structure.ui.InitClassDiagram;
import org.argouml.uml.diagram.ui.InitDiagramAppearanceUI;
+import org.argouml.uml.diagram.use_case.ui.InitUseCaseDiagram;
/**
* Testcase to load projects without exception.
@@ -54,6 +61,13 @@
(new InitNotationUml()).init();
(new InitNotationJava()).init();
(new InitDiagramAppearanceUI()).init();
+ (new InitActivityDiagram()).init();
+ (new InitCollaborationDiagram()).init();
+ (new InitDeploymentDiagram()).init();
+ (new InitSequenceDiagram()).init();
+ (new InitStateDiagram()).init();
+ (new InitClassDiagram()).init();
+ (new InitUseCaseDiagram()).init();
(new InitProfileSubsystem()).init();
}
Modified: trunk/src/argouml-app/tests/org/argouml/ui/TestDetailsPane.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/ui/TestDetailsPane.java?view=diff&rev=14564&p1=trunk/src/argouml-app/tests/org/argouml/ui/TestDetailsPane.java&p2=trunk/src/argouml-app/tests/org/argouml/ui/TestDetailsPane.java&r1=14563&r2=14564
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/ui/TestDetailsPane.java (original)
+++ trunk/src/argouml-app/tests/org/argouml/ui/TestDetailsPane.java 2008-05-01 12:20:21-0700
@@ -37,8 +37,15 @@
import org.argouml.profile.init.InitProfileSubsystem;
import org.argouml.ui.targetmanager.TargetEvent;
import org.argouml.ui.targetmanager.TargetManager;
+import org.argouml.uml.diagram.activity.ui.InitActivityDiagram;
+import org.argouml.uml.diagram.collaboration.ui.InitCollaborationDiagram;
+import org.argouml.uml.diagram.deployment.ui.InitDeploymentDiagram;
+import org.argouml.uml.diagram.sequence.ui.InitSequenceDiagram;
+import org.argouml.uml.diagram.state.ui.InitStateDiagram;
+import org.argouml.uml.diagram.static_structure.ui.InitClassDiagram;
import org.argouml.uml.diagram.static_structure.ui.UMLClassDiagram;
import org.argouml.uml.diagram.ui.InitDiagramAppearanceUI;
+import org.argouml.uml.diagram.use_case.ui.InitUseCaseDiagram;
import org.argouml.uml.ui.InitUmlUI;
import org.argouml.uml.ui.TabProps;
import org.tigris.swidgets.Horizontal;
@@ -67,6 +74,13 @@
new InitCheckListUI().init();
new InitCognitiveUI().init();
new InitDiagramAppearanceUI().init();
+ (new InitActivityDiagram()).init();
+ (new InitCollaborationDiagram()).init();
+ (new InitDeploymentDiagram()).init();
+ (new InitSequenceDiagram()).init();
+ (new InitStateDiagram()).init();
+ (new InitClassDiagram()).init();
+ (new InitUseCaseDiagram()).init();
}
/**
Modified: trunk/src/argouml-app/tests/org/argouml/ui/TestPropertyPanels.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/ui/TestPropertyPanels.java?view=diff&rev=14564&p1=trunk/src/argouml-app/tests/org/argouml/ui/TestPropertyPanels.java&p2=trunk/src/argouml-app/tests/org/argouml/ui/TestPropertyPanels.java&r1=14563&r2=14564
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/ui/TestPropertyPanels.java (original)
+++ trunk/src/argouml-app/tests/org/argouml/ui/TestPropertyPanels.java 2008-05-01 12:20:21-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 1996-2007 The Regents of the University of California. All
+// Copyright (c) 1996-2008 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
@@ -48,7 +48,14 @@
import org.argouml.persistence.PersistenceManager;
import org.argouml.profile.init.InitProfileSubsystem;
import org.argouml.ui.targetmanager.TargetEvent;
+import org.argouml.uml.diagram.activity.ui.InitActivityDiagram;
+import org.argouml.uml.diagram.collaboration.ui.InitCollaborationDiagram;
+import org.argouml.uml.diagram.deployment.ui.InitDeploymentDiagram;
+import org.argouml.uml.diagram.sequence.ui.InitSequenceDiagram;
+import org.argouml.uml.diagram.state.ui.InitStateDiagram;
+import org.argouml.uml.diagram.static_structure.ui.InitClassDiagram;
import org.argouml.uml.diagram.ui.InitDiagramAppearanceUI;
+import org.argouml.uml.diagram.use_case.ui.InitUseCaseDiagram;
import org.argouml.uml.ui.InitUmlUI;
import org.argouml.uml.ui.TabProps;
import org.tigris.swidgets.Horizontal;
@@ -107,6 +114,13 @@
(new InitNotationUml()).init();
(new InitNotationJava()).init();
(new InitDiagramAppearanceUI()).init();
+ (new InitActivityDiagram()).init();
+ (new InitCollaborationDiagram()).init();
+ (new InitDeploymentDiagram()).init();
+ (new InitSequenceDiagram()).init();
+ (new InitStateDiagram()).init();
+ (new InitClassDiagram()).init();
+ (new InitUseCaseDiagram()).init();
if (theDetailsPane == null) {
theDetailsPane =
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.