Login | Register
My pages Projects Community openCollabNet

Discussions > Commits > svn commit: r115 - trunk/src: argouml-app argouml-app/src/org/argouml/application argouml-app/src/org/argouml/notation/providers/uml argouml-app/src/org/argouml/ui/cmd argouml-app/src/org/argouml/ui/explorer argouml-app/src/org/argouml/ui/explorer/rules argouml-app/src/org/argouml/uml/cognitive/critics argouml-app/src/org/argouml/uml/diagram argouml-app/src/org/argouml/uml/diagram/collaboration argouml-app/src/org/argouml/uml/diagram/collaboration/ui argouml-app/src/org/argouml/uml/diagram/ui argouml-app/src/org/argouml/uml/ui argouml-app/src/org/argouml/uml/ui/behavior/state_machines argouml-build argouml-core-diagrams-sequence2 argouml-core-diagrams-sequence2/src/org/argouml/sequence2/diagram argouml-core-infra argouml-core-model argouml-core-model-euml argouml-core-model-euml/src/org/argouml/model/euml argouml-core-model-mdr argouml-core-model-mdr/src/org/argouml/model/mdr argouml-core-model/src/org/argouml/model

argouml-spl
Discussion topic

Back to topic list

svn commit: r115 - trunk/src: argouml-app argouml-app/src/org/argouml/application argouml-app/src/org/argouml/notation/providers/uml argouml-app/src/org/argouml/ui/cmd argouml-app/src/org/argouml/ui/explorer argouml-app/src/org/argouml/ui/explorer/rules argouml-app/src/org/argouml/uml/cognitive/critics argouml-app/src/org/argouml/uml/diagram argouml-app/src/org/argouml/uml/diagram/collaboration argouml-app/src/org/argouml/uml/diagram/collaboration/ui argouml-app/src/org/argouml/uml/diagram/ui argouml-app/src/org/argouml/uml/ui argouml-app/src/org/argouml/uml/ui/behavior/state_machines argouml-build argouml-core-diagrams-sequence2 argouml-core-diagrams-sequence2/src/org/argouml/sequence2/diagram argouml-core-infra argouml-core-model argouml-core-model-euml argouml-core-model-euml/src/org/argouml/model/euml argouml-core-model-mdr argouml-core-model-mdr/src/org/argouml/model/mdr argouml-core-model/src/org/argouml/model

Author marcusvnac
Full name Marcus Vinícius de Ávila Couto
Date 2010-09-11 13:54:39 PDT
Message Author: marcusvnac
Date: 2010-09-11 13:54:37-0700
New Revision: 115

Modified:
   trunk/src/argouml-app/ (props changed)
   trunk/src/argouml-app/build.xml
   trunk/src/argouml-ap​p/src/org/argouml/ap​plication/Main.java
   trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/ExtensionPointNotat​ionUml.java
   trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/StateBodyNotationUm​l.java
   trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/TransitionNotationU​ml.java
   trunk/src/argouml-ap​p/src/org/argouml/ui​/cmd/GenericArgoMenu​Bar.java
   trunk/src/argouml-ap​p/src/org/argouml/ui​/cmd/ShortcutMgr.jav​a
   trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/ExplorerPo​pup.java
   trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/Perspectiv​eManager.java
   trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCl​assifierToCollaborat​ion.java
   trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCl​assifierToStateMachi​ne.java
   trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCo​llaborationToDiagram​.java
   trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCo​llaborationToInterac​tion.java
   trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoMo​delToCollaboration.j​ava
   trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoOp​erationToCollaborati​on.java
   trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoOp​erationToCollaborati​onDiagram.java
   trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoPr​ojectToCollaboration​.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/cognitive/critics/​CrSeqInstanceWithout​Classifier.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/DiagramFac​tory.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/UmlDiagram​Renderer.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/CollabDiagramGra​phModel.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/ui/ActionAddClas​sifierRole.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/ui/CollabDiagram​Renderer.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/ui/Collaboration​DiagramPropPanelFact​ory.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/ui/FigAssociatio​nRole.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/ui/FigClassifier​Role.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/ui/InitCollabora​tionDiagram.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/ui/PropPanelUMLC​ollaborationDiagram.​java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/ui/SelectionClas​sifierRole.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/ui/UMLCollaborat​ionDiagram.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/ui/ActionA​ddConcurrentRegion.j​ava
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/ui/ActionA​ddExtensionPoint.jav​a
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/ui/ActionA​ddMessage.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/ui/FigMess​age.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/ActionCollabora​tionDiagram.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/ActionSequenceD​iagram.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/UMLConditionExp​ressionModel.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewCa​llEvent.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewCh​angeEvent.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewCo​mpositeState.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewFi​nalState.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewGu​ard.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewPs​eudoState.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewSi​gnalEvent.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewSi​mpleState.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewSt​ubState.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewSu​bmachineState.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewSy​nchState.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewTi​meEvent.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ActionNewTr​ansition.java
   trunk/src/argouml-ap​p/src/org/argouml/um​l/ui/behavior/state_​machines/ButtonActio​nNewGuard.java
   trunk/src/argouml-build/ (props changed)
   trunk/src/argouml-bu​ild/build.xml
   trunk/src/argouml-bu​ild/jpp-features.pro​perties
   trunk/src/argouml-co​re-diagrams-sequence​2/ (props changed)
   trunk/src/argouml-co​re-diagrams-sequence​2/build.xml
   trunk/src/argouml-co​re-diagrams-sequence​2/src/org/argouml/se​quence2/diagram/Acti​onAddClassifierRole.​java
   trunk/src/argouml-co​re-diagrams-sequence​2/src/org/argouml/se​quence2/diagram/UMLS​equenceDiagram.java
   trunk/src/argouml-core-infra/ (props changed)
   trunk/src/argouml-core-model/ (props changed)
   trunk/src/argouml-co​re-model-euml/ (props changed)
   trunk/src/argouml-co​re-model-euml/build.​xml
   trunk/src/argouml-co​re-model-euml/src/or​g/argouml/model/euml​/CollaborationsFacto​ryEUMLImpl.java
   trunk/src/argouml-co​re-model-euml/src/or​g/argouml/model/euml​/CollaborationsHelpe​rEUMLImpl.java
   trunk/src/argouml-co​re-model-euml/src/or​g/argouml/model/euml​/EUMLModelImplementa​tion.java
   trunk/src/argouml-co​re-model-euml/src/or​g/argouml/model/euml​/UmlFactoryEUMLImpl.​java
   trunk/src/argouml-co​re-model-euml/src/or​g/argouml/model/euml​/UmlHelperEUMLImpl.j​ava
   trunk/src/argouml-co​re-model-euml/src/or​g/argouml/model/euml​/UseCasesFactoryEUML​Impl.java
   trunk/src/argouml-co​re-model-euml/src/or​g/argouml/model/euml​/UseCasesHelperEUMLI​mpl.java
   trunk/src/argouml-co​re-model-mdr/ (props changed)
   trunk/src/argouml-co​re-model-mdr/build.x​ml
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/C​ollaborationsFactory​MDRImpl.java
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/C​ollaborationsHelperM​DRImpl.java
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/C​ommonBehaviorFactory​MDRImpl.java
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/M​DRModelImplementatio​n.java
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/S​tateMachinesFactoryM​DRImpl.java
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/U​mlFactoryMDRImpl.jav​a
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/U​mlHelperMDRImpl.java​
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/U​ndoCollaborationsHel​perDecorator.java
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/U​ndoStateMachinesHelp​erDecorator.java
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/U​ndoUseCasesHelperDec​orator.java
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/U​seCasesFactoryMDRImp​l.java
   trunk/src/argouml-co​re-model-mdr/src/org​/argouml/model/mdr/U​seCasesHelperMDRImpl​.java
   trunk/src/argouml-co​re-model/build.xml
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/AbstractC​ollaborationsHelperD​ecorator.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/AbstractS​tateMachinesHelperDe​corator.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/AbstractU​seCasesHelperDecorat​or.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/ActivityD​iagram.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/ActivityG​raphsFactory.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/ActivityG​raphsHelper.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/Collabora​tionDiagram.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/Collabora​tionsFactory.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/Collabora​tionsHelper.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/Facade.ja​va
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/Model.jav​a
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/ModelImpl​ementation.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/SequenceD​iagram.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/StateDiag​ram.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/StateMach​inesFactory.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/UseCaseDi​agram.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/UseCasesF​actory.java
   trunk/src/argouml-co​re-model/src/org/arg​ouml/model/UseCasesH​elper.java

Log:
New feature (CollaborationDiagram)
Fix problems in other features.

Modified: trunk/src/argouml-app/build.xml
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/bu​ild.xml?view=diff​&pathrev=115&r1​=114&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-app/build.xml (original)
+++ trunk/src/argouml-app/build.xml 2010-09-11 13:54:37-0700
@@ -744,7 +744,12 @@
             <echo message="USECASEDIAGRAM"/>
         </then>
     </if>
-
+ <if>
+ <isset property="COLLABORAT​IONDIAGRAM"/>
+ <then>
+ <echo message="COLLABORATI​ONDIAGRAM"/>
+ </then>
+ </if>
   </target>
 
   <!-- ====================​====================​====================​======= -->

Modified: trunk/src/argouml-ap​p/src/org/argouml/ap​plication/Main.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/applic​ation/Main.java?view​=diff&pathrev=11​5&r1=114&r2=​115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ap​plication/Main.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ap​plication/Main.java 2010-09-11 13:54:37-0700
@@ -85,7 +85,10 @@
 //@#$LPS-ACTIVITYDI​AGRAM:GranularityTyp​e:Import
 import org.argouml.uml.diag​ram.activity.ui.Init​ActivityDiagram;
 //#endif
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Import
 import org.argouml.uml.diag​ram.collaboration.ui​.InitCollaborationDi​agram;
+//#endif
 import org.argouml.uml.diag​ram.deployment.ui.In​itDeploymentDiagram;​
 //#if defined(SEQUENCEDIAGRAM)
 //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Import
@@ -446,7 +449,10 @@
         //@#$LPS-ACTIVITYDI​AGRAM:GranularityTyp​e:Command
         SubsystemUtility.ini​tSubsystem(new InitActivityDiagram());
         //#endif
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Command
         SubsystemUtility.ini​tSubsystem(new InitCollaborationDiagram());
+ //#endif
         SubsystemUtility.ini​tSubsystem(new InitDeploymentDiagram());
         //#if defined(SEQUENCEDIAGRAM)
         //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Command

Modified: trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/ExtensionPointNotat​ionUml.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/notati​on/providers/uml/Ext​ensionPointNotationU​ml.java?view=diff​&pathrev=115&r1​=114&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/ExtensionPointNotat​ionUml.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/ExtensionPointNotat​ionUml.java 2010-09-11 13:54:37-0700
@@ -78,14 +78,17 @@
     public void parseExtensionPointFig(Object ep, String text) {
         // We can do nothing if we don't have both the use case and extension
         // point.
+ //#if defined(USECASEDIAGRAM)
+ //@#$LPS-USECASEDIA​GRAM:GranularityType​:Command
         if (ep == null) {
             return;
         }
+
         Object useCase = Model.getFacade().ge​tUseCase(ep);
         if (useCase == null) {
             return;
         }
-
+
         // Parse the string to creat a new extension point.
         Object newEp = parseExtensionPoint(text);
 
@@ -101,8 +104,11 @@
         }
         /* TODO: This needs more work!
          * We simply throw the new extension point away? */
+ //#endif
     }
 
+ //#if defined(USECASEDIAGRAM)
+ //@#$LPS-USECASEDIA​GRAM:GranularityType​:Method
     /**
      * Parse a string representing an extension point and return a new extension
      * point.<p>
@@ -196,7 +202,7 @@
 
         return ep;
     }
-
+ //#endif
     /*
      * @see org.argouml.notation​.providers.NotationP​rovider#getParsingHe​lp()
      */

Modified: trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/StateBodyNotationUm​l.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/notati​on/providers/uml/Sta​teBodyNotationUml.ja​va?view=diff&pat​hrev=115&r1=114​&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/StateBodyNotationUm​l.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/StateBodyNotationUm​l.java 2010-09-11 13:54:37-0700
@@ -190,7 +190,9 @@
                         && line.substring(2).tr​im().startsWith("/")​) {
                     parseStateDoAction(st, line);
                     foundDo = true;
- } else {
+ }
+ //#if defined(UMLSTATEDIAGRAM) or defined(ACTIVITYDIAGRAM)
+ else {
                     Object t =
                         Model.getStateMachinesFactory()
                                 .buildInternalTransition(st);
@@ -209,6 +211,7 @@
                     /* Add this new one, and mark it to be retained: */
                     internalsInfo.add(t, true);
                 }
+ //#endif
             }
         }
 

Modified: trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/TransitionNotationU​ml.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/notati​on/providers/uml/Tra​nsitionNotationUml.j​ava?view=diff&pa​threv=115&r1=114​&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/TransitionNotationU​ml.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/no​tation/providers/uml​/TransitionNotationU​ml.java 2010-09-11 13:54:37-0700
@@ -225,10 +225,17 @@
         Object ns =
             Model.getStateMachinesHelper()
                 .findNamespaceForEvent(trans, null);
+ //#if defined(UMLSTATEDIAGRAM) or defined(ACTIVITYDIAGRAM)
+ //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:Command
+ //@#$LPS-ACTIVITYDI​AGRAM:GranularityTyp​e:Command
         StateMachinesFactory sMFactory =
                 Model.getStateMachin​esFactory();
+ //#endif
         boolean createdEvent = false;
         if (trigger.length() > 0) {
+ //#if defined(UMLSTATEDIAGRAM) or defined(ACTIVITYDIAGRAM)
+ //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:Command
+ //@#$LPS-ACTIVITYDI​AGRAM:GranularityTyp​e:Command
             // case 1 and 2
             if (evt == null) {
                 // case 1
@@ -253,6 +260,7 @@
                     evt = sMFactory.buildSigna​lEvent(trigger, ns);
                 }
                 createdEvent = true;
+ //#endif
             } else {
                 // case 2
                 if (timeEvent) {
@@ -361,9 +369,12 @@
      * @param guard the string that represents the guard expression
      */
     private void parseGuard(Object trans, String guard) {
- Object g = Model.getFacade().ge​tGuard(trans);
- if (guard.length() > 0) {
+ Object g = Model.getFacade().ge​tGuard(trans);
+ if (guard.length() > 0) {
             if (g == null) {
+ //#if defined(UMLSTATEDIAGRAM) or defined(ACTIVITYDIAGRAM)
+ //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:Command
+ //@#$LPS-ACTIVITYDI​AGRAM:GranularityTyp​e:Command
                 // case 1
                 /*TODO: In the next line, I should use buildGuard(),
                  * but it doesn't show the guard on the diagram...
@@ -380,6 +391,7 @@
                     // NSUML does this (?)
                     // Model.getFacade().se​tGuard(trans, g);
                 }
+ //#endif
             } else {
                 // case 2
                 Object expr = Model.getFacade().ge​tExpression(g);

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/cmd/GenericArgoMenu​Bar.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/cmd​/GenericArgoMenuBar.​java?view=diff&p​athrev=115&r1=11​4&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/cmd/GenericArgoMenu​Bar.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/cmd/GenericArgoMenu​Bar.java 2010-09-11 13:54:37-0700
@@ -71,7 +71,10 @@
 import org.argouml.uml.ui.A​ctionActivityDiagram​;
 //#endif
 import org.argouml.uml.ui.A​ctionClassDiagram;
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Import
 import org.argouml.uml.ui.A​ctionCollaborationDi​agram;
+//#endif
 import org.argouml.uml.ui.A​ctionDeleteModelElem​ents;
 import org.argouml.uml.ui.A​ctionDeploymentDiagr​am;
 import org.argouml.uml.ui.A​ctionGenerateAll;
@@ -626,8 +629,8 @@
         toolbarTools.add((new ActionClassDiagram()));
         ShortcutMgr.assignAc​celerator(classDiagr​am,
                 ShortcutMgr.ACTION_C​LASS_DIAGRAM);
- //#if defined(SEQUENCEDIAGRAM)
- //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Command
+ //#if defined(SEQUENCEDIAGRAM)
+ //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Command
         JMenuItem sequenzDiagram =
             createDiagramMenu.add(new ActionSequenceDiagram());
         setMnemonic(sequenzDiagram, "Sequenz Diagram");
@@ -635,12 +638,15 @@
         ShortcutMgr.assignAc​celerator(sequenzDia​gram,
                 ShortcutMgr.ACTION_S​EQUENCE_DIAGRAM);
         //#endif
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Command
         JMenuItem collaborationDiagram =
             createDiagramMenu.add(new ActionCollaborationDiagram());
         setMnemonic(collabor​ationDiagram, "Collaboration Diagram");
         toolbarTools.add((new ActionCollaborationDiagram()));
         ShortcutMgr.assignAc​celerator(collaborat​ionDiagram,
                 ShortcutMgr.ACTION_C​OLLABORATION_DIAGRAM​);
+ //#endif
         //#if defined(UMLSTATEDIAGRAM)
         //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:Command
         JMenuItem stateDiagram =

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/cmd/ShortcutMgr.jav​a
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/cmd​/ShortcutMgr.java?vi​ew=diff&pathrev=​115&r1=114&r​2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/cmd/ShortcutMgr.jav​a (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/cmd/ShortcutMgr.jav​a 2010-09-11 13:54:37-0700
@@ -65,7 +65,10 @@
 import org.argouml.uml.ui.A​ctionActivityDiagram​;
 //#endif
 import org.argouml.uml.ui.A​ctionClassDiagram;
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Import
 import org.argouml.uml.ui.A​ctionCollaborationDi​agram;
+//#endif
 import org.argouml.uml.ui.A​ctionDeleteModelElem​ents;
 import org.argouml.uml.ui.A​ctionDeploymentDiagr​am;
 import org.argouml.uml.ui.A​ctionGenerateAll;
@@ -227,10 +230,12 @@
     /** Action key for sequence diagram */
     public static final String ACTION_SEQUENCE_DIAGRAM = "sequenceDiagrams";
     //#endif
-
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Field
     /** Action key for collaboration diagram */
     public static final String ACTION_COLLABORATION_DIAGRAM =
         "collaborationDiagrams";
+ //#endif
     //#if defined(UMLSTATEDIAGRAM)
     //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:Field
     /** Action key for state diagram */
@@ -685,8 +690,11 @@
         putDefaultShortcut(A​CTION_SEQUENCE_DIAGR​AM, null,
                 new ActionSequenceDiagram());
         //#endif
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Command
         putDefaultShortcut(A​CTION_COLLABORATION_​DIAGRAM, null,
                 new ActionCollaborationDiagram());
+ //#endif
         //#if defined(UMLSTATEDIAGRAM)
         //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:Command
         putDefaultShortcut(A​CTION_STATE_DIAGRAM,​ null,

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/ExplorerPo​pup.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/exp​lorer/ExplorerPopup.​java?view=diff&p​athrev=115&r1=11​4&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/ExplorerPo​pup.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/ExplorerPo​pup.java 2010-09-11 13:54:37-0700
@@ -78,7 +78,10 @@
 import org.argouml.uml.ui.A​ctionActivityDiagram​;
 //#endif
 import org.argouml.uml.ui.A​ctionClassDiagram;
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Import
 import org.argouml.uml.ui.A​ctionCollaborationDi​agram;
+//#endif
 import org.argouml.uml.ui.A​ctionDeleteModelElem​ents;
 import org.argouml.uml.ui.A​ctionDeploymentDiagr​am;
 //#if defined(SEQUENCEDIAGRAM)
@@ -414,7 +417,10 @@
         //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Command
         createDiagrams.add(new ActionSequenceDiagram());
         //#endif
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Command
         createDiagrams.add(new ActionCollaborationDiagram());
+ //#endif
         //#if defined(UMLSTATEDIAGRAM)
         //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:Command
         createDiagrams.add(new ActionStateDiagram());

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/Perspectiv​eManager.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/exp​lorer/PerspectiveMan​ager.java?view=diff​&pathrev=115&​r1=114&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/Perspectiv​eManager.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/Perspectiv​eManager.java 2010-09-11 13:54:37-0700
@@ -46,16 +46,25 @@
 import org.argouml.ui.explo​rer.rules.GoClassToN​avigableClass;
 import org.argouml.ui.explo​rer.rules.GoClassToS​ummary;
 import org.argouml.ui.explo​rer.rules.GoClassifi​erToBehavioralFeatur​e;
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAMM:Granula​rityType:Import
 import org.argouml.ui.explo​rer.rules.GoClassifi​erToCollaboration;
+//#endif
 import org.argouml.ui.explo​rer.rules.GoClassifi​erToInstance;
 //#if defined(SEQUENCEDIAGRAM)
 //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Import
 import org.argouml.ui.explo​rer.rules.GoClassifi​erToSequenceDiagram;​
 //#endif
+//#if defined(UMLSTATEDIAGRAM)
+//@#$LPS-UMLSTATED​IAGRAM:GranularityTy​pe:Import
 import org.argouml.ui.explo​rer.rules.GoClassifi​erToStateMachine;
+//#endif
 import org.argouml.ui.explo​rer.rules.GoClassifi​erToStructuralFeatur​e;
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAMM:Granula​rityType:Import
 import org.argouml.ui.explo​rer.rules.GoCollabor​ationToDiagram;
 import org.argouml.ui.explo​rer.rules.GoCollabor​ationToInteraction;
+//#endif
 import org.argouml.ui.explo​rer.rules.GoComponen​tToResidentModelElem​ent;
 //#if defined(UMLSTATEDIAGRAM)
 //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:Import
@@ -79,7 +88,10 @@
 import org.argouml.ui.explo​rer.rules.GoModelEle​mentToContainedLostE​lements;
 import org.argouml.ui.explo​rer.rules.GoModelEle​mentToContents;
 import org.argouml.ui.explo​rer.rules.GoModelToB​aseElements;
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAMM:Granula​rityType:Import
 import org.argouml.ui.explo​rer.rules.GoModelToC​ollaboration;
+//#endif
 import org.argouml.ui.explo​rer.rules.GoModelToD​iagrams;
 import org.argouml.ui.explo​rer.rules.GoModelToE​lements;
 import org.argouml.ui.explo​rer.rules.GoModelToN​ode;
@@ -87,8 +99,11 @@
 import org.argouml.ui.explo​rer.rules.GoNamespac​eToDiagram;
 import org.argouml.ui.explo​rer.rules.GoNamespac​eToOwnedElements;
 import org.argouml.ui.explo​rer.rules.GoNodeToRe​sidentComponent;
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAMM:Granula​rityType:Import
 import org.argouml.ui.explo​rer.rules.GoOperatio​nToCollaboration;
 import org.argouml.ui.explo​rer.rules.GoOperatio​nToCollaborationDiag​ram;
+//#endif
 //#if defined(SEQUENCEDIAGRAM)
 //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Import
 import org.argouml.ui.explo​rer.rules.GoOperatio​nToSequenceDiagram;
@@ -101,7 +116,10 @@
 import org.argouml.ui.explo​rer.rules.GoProfileT​oCritics;
 //#endif
 import org.argouml.ui.explo​rer.rules.GoProfileT​oModel;
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAMM:Granula​rityType:Import
 import org.argouml.ui.explo​rer.rules.GoProjectT​oCollaboration;
+//#endif
 import org.argouml.ui.explo​rer.rules.GoProjectT​oDiagram;
 import org.argouml.ui.explo​rer.rules.GoProjectT​oModel;
 import org.argouml.ui.explo​rer.rules.GoProjectT​oProfileConfiguratio​n;
@@ -417,16 +435,25 @@
         packagePerspective.addRule(new GoClassifierToStruct​uralFeature());
         packagePerspective.addRule(new GoClassifierToBehavi​oralFeature());
         packagePerspective.addRule(new GoEnumerationToLiterals());
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Command
         packagePerspective.addRule(new GoCollaborationToInt​eraction());
+ //#endif
         packagePerspective.addRule(new GoInteractionToMessages());
         packagePerspective.addRule(new GoMessageToAction());
         packagePerspective.addRule(new GoSignalToReception());
         packagePerspective.addRule(new GoLinkToStimuli());
         packagePerspective.addRule(new GoStimulusToAction());
- packagePerspective.addRule(new GoClassifierToCollaboration());
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Command
+ packagePerspective.addRule(new GoClassifierToCollaboration());
         packagePerspective.addRule(new GoOperationToCollaboration());
+ //#endif
         packagePerspective.addRule(new GoModelElementToComment());
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Command
         packagePerspective.addRule(new GoCollaborationToDiagram());
+ //#endif
         /*
          * Removed the next one due to issue 2165.
          * packagePerspective.addRule(new GoOperationToCollabo​rationDiagram());
@@ -603,17 +630,27 @@
             //#endif
             new GoBehavioralFeatureT​oStateMachine(),
             new GoClassifierToBehavi​oralFeature(),
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:StaticInitial​ization
             new GoClassifierToCollaboration(),
+ //#endif
             new GoClassifierToInstance(),
             //#if defined(SEQUENCEDIAGRAM)
- //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Command
+ //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:StaticInitializati​on
             new GoClassifierToSequen​ceDiagram(),
             //#endif
+ //#if defined(UMLSTATEDIAGRAM)
+ //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:StaticInitializati​on
             new GoClassifierToStateMachine(),
+ //#endif
             new GoClassifierToStruct​uralFeature(),
             new GoClassToAssociatedClass(), new GoClassToNavigableClass(),
- new GoClassToSummary(), new GoCollaborationToDiagram(),
+ new GoClassToSummary(),
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:StaticInitial​ization
+ new GoCollaborationToDiagram(),
             new GoCollaborationToInteraction(),
+ //#endif
             new GoComponentToResiden​tModelElement(),
             //#if defined(UMLSTATEDIAGRAM)
             //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:StaticInitializati​on
@@ -628,19 +665,30 @@
             new GoModelElementToContents(),
             new GoModelElementToCont​ainedDiagrams(),
             new GoModelElementToCont​ainedLostElements(),​
- new GoModelToBaseElements(), new GoModelToCollaboration(),
+ new GoModelToBaseElements(),
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:StaticInitial​ization
+ new GoModelToCollaboration(),
+ //#endif
             new GoModelToDiagrams(), new GoModelToElements(),
             new GoModelToNode(), new GoNamespaceToClassif​ierAndPackage(),
             new GoNamespaceToDiagram(), new GoNamespaceToOwnedElements(),
- new GoNodeToResidentComponent(),
+ new GoNodeToResidentComponent(),
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:StaticInitial​ization
             new GoOperationToCollabo​rationDiagram(),
             new GoOperationToCollaboration(),
+ //#endif
             //#if defined(SEQUENCEDIAGRAM)
- //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Command
+ //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:StaticInitializati​on
             new GoOperationToSequenceDiagram(), new GoPackageToClass(),
             //#endif
             new GoPackageToElementImport(),
- new GoProjectToCollaboration(), new GoProjectToDiagram(),
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:StaticInitial​ization
+ new GoProjectToCollaboration(),
+ //#endif
+ new GoProjectToDiagram(),
             //#if defined(UMLSTATEDIAGRAM)
             //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:StaticInitializati​on
             new GoProjectToModel(), new GoProjectToStateMachine(),

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCl​assifierToCollaborat​ion.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/exp​lorer/rules/GoClassi​fierToCollaboration.​java?view=diff&p​athrev=115&r1=11​4&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCl​assifierToCollaborat​ion.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCl​assifierToCollaborat​ion.java 2010-09-11 13:54:37-0700
@@ -1,3 +1,6 @@
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Class
+
 // $Id$
 // Copyright (c) 1996-2006 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
@@ -70,3 +73,4 @@
     return Collections.EMPTY_SET;
     }
 }
+//#endif
\ No newline at end of file

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCl​assifierToStateMachi​ne.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/exp​lorer/rules/GoClassi​fierToStateMachine.j​ava?view=diff&pa​threv=115&r1=114​&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCl​assifierToStateMachi​ne.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCl​assifierToStateMachi​ne.java 2010-09-11 13:54:37-0700
@@ -1,3 +1,6 @@
+//#if defined(UMLSTATEDIAGRAM)
+//@#$LPS-UMLSTATED​IAGRAM:GranularityTy​pe:Class
+
 // $Id$
 // Copyright (c) 1996-2006 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
@@ -70,3 +73,4 @@
     return Collections.EMPTY_SET;
     }
 }
+//#endif
\ No newline at end of file

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCo​llaborationToDiagram​.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/exp​lorer/rules/GoCollab​orationToDiagram.jav​a?view=diff&path​rev=115&r1=114​&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCo​llaborationToDiagram​.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCo​llaborationToDiagram​.java 2010-09-11 13:54:37-0700
@@ -1,3 +1,6 @@
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Class
+
 // $Id$
 // Copyright (c) 1996-2006 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
@@ -37,6 +40,7 @@
 import org.argouml.uml.diag​ram.collaboration.ui​.UMLCollaborationDia​gram;
 //#if defined(SEQUENCEDIAGRAM)
 //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Import
+//@#$LPS-SEQUENCED​IAGRAM:Localization:​NestedIfdef
 import org.argouml.uml.diag​ram.sequence.ui.UMLS​equenceDiagram;
 //#endif
 
@@ -74,6 +78,7 @@
             }
             //#if defined(SEQUENCEDIAGRAM)
             //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Command
+ //@#$LPS-SEQUENCEDI​AGRAM:Localization:N​estedIfdef
             /* Also show unattached sequence diagrams: */
             if ((d instanceof UMLSequenceDiagram)
                     && (Model.getFacade().g​etRepresentedClassif​ier(parent) == null)
@@ -94,3 +99,4 @@
     return Collections.EMPTY_SET;
     }
 }
+//#endif
\ No newline at end of file

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCo​llaborationToInterac​tion.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/exp​lorer/rules/GoCollab​orationToInteraction​.java?view=diff&​pathrev=115&r1=1​14&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCo​llaborationToInterac​tion.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoCo​llaborationToInterac​tion.java 2010-09-11 13:54:37-0700
@@ -1,3 +1,6 @@
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Class
+
 // $Id$
 // Copyright (c) 1996-2006 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
@@ -69,3 +72,4 @@
     return Collections.EMPTY_SET;
     }
 }
+//#endif
\ No newline at end of file

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoMo​delToCollaboration.j​ava
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/exp​lorer/rules/GoModelT​oCollaboration.java?​view=diff&pathre​v=115&r1=114​&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoMo​delToCollaboration.j​ava (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoMo​delToCollaboration.j​ava 2010-09-11 13:54:37-0700
@@ -1,3 +1,6 @@
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Class
+
 // $Id$
 // Copyright (c) 1996-2006 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
@@ -81,3 +84,4 @@
     return Collections.EMPTY_SET;
     }
 }
+//#endif
\ No newline at end of file

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoOp​erationToCollaborati​on.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/exp​lorer/rules/GoOperat​ionToCollaboration.j​ava?view=diff&pa​threv=115&r1=114​&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoOp​erationToCollaborati​on.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoOp​erationToCollaborati​on.java 2010-09-11 13:54:37-0700
@@ -1,3 +1,6 @@
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Class
+
 // $Id$
 // Copyright (c) 1996-2006 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
@@ -76,3 +79,4 @@
     return Collections.EMPTY_SET;
     }
 }
+//#endif
\ No newline at end of file

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoOp​erationToCollaborati​onDiagram.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/exp​lorer/rules/GoOperat​ionToCollaborationDi​agram.java?view=diff​&pathrev=115​&r1=114&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoOp​erationToCollaborati​onDiagram.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoOp​erationToCollaborati​onDiagram.java 2010-09-11 13:54:37-0700
@@ -1,3 +1,6 @@
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Class
+
 // $Id$
 // Copyright (c) 1996-2006 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
@@ -83,3 +86,4 @@
     }
 
 }
+//#endif
\ No newline at end of file

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoPr​ojectToCollaboration​.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/ui/exp​lorer/rules/GoProjec​tToCollaboration.jav​a?view=diff&path​rev=115&r1=114​&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoPr​ojectToCollaboration​.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/rules/GoPr​ojectToCollaboration​.java 2010-09-11 13:54:37-0700
@@ -1,3 +1,6 @@
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Class
+
 // $Id$
 // Copyright (c) 1996-2006 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
@@ -74,3 +77,4 @@
     return Collections.EMPTY_SET;
     }
 }
+//#endif
\ No newline at end of file

Modified: trunk/src/argouml-ap​p/src/org/argouml/um​l/cognitive/critics/​CrSeqInstanceWithout​Classifier.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/uml/co​gnitive/critics/CrSe​qInstanceWithoutClas​sifier.java?view=dif​f&pathrev=115​&r1=114&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/um​l/cognitive/critics/​CrSeqInstanceWithout​Classifier.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/um​l/cognitive/critics/​CrSeqInstanceWithout​Classifier.java 2010-09-11 13:54:37-0700
@@ -1,8 +1,7 @@
-//#if defined(SEQUENCEDIAGRAM)
+//#if defined(SEQUENCEDIAGRAM) and defined(COGNITIVE)
 //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Class
-//#if defined(COGNITIVE)
-//@#$LPS-COGNITIVE​:GranularityType:Pac​kage
-//@#$LPS-COGNITIVE​:Localization:Nested​Ifdef
+//@#$LPS-COGNITIVE​:GranularityType:Cla​ss
+
 // $Id$
 // Copyright (c) 1996-2006 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
@@ -135,6 +134,4 @@
     }
 
 }
-
-//#endif
 //#endif
\ No newline at end of file

Modified: trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/DiagramFac​tory.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/uml/di​agram/DiagramFactory​.java?view=diff&​pathrev=115&r1=1​14&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/DiagramFac​tory.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/DiagramFac​tory.java 2010-09-11 13:54:37-0700
@@ -34,7 +34,10 @@
 import org.argouml.model.Ac​tivityDiagram;
 //#endif
 import org.argouml.model.ClassDiagram;
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Import
 import org.argouml.model.Co​llaborationDiagram;
+//#endif
 import org.argouml.model.De​ploymentDiagram;
 import org.argouml.model.DiDiagram;
 import org.argouml.model.Model;
@@ -42,7 +45,10 @@
 //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Import
 import org.argouml.model.Se​quenceDiagram;
 //#endif
+//#if defined(UMLSTATEDIAGRAM)
+//@#$LPS-UMLSTATED​IAGRAM:GranularityTy​pe:Import
 import org.argouml.model.StateDiagram;
+//#endif
 //#if defined(USECASEDIAGRAM)
 //@#$LPS-USECASEDIA​GRAM:GranularityType​:Import
 import org.argouml.model.Us​eCaseDiagram;
@@ -51,7 +57,10 @@
 //@#$LPS-ACTIVITYDI​AGRAM:GranularityTyp​e:Import
 import org.argouml.uml.diag​ram.activity.ui.UMLA​ctivityDiagram;
 //#endif
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Import
 import org.argouml.uml.diag​ram.collaboration.ui​.UMLCollaborationDia​gram;
+//#endif
 import org.argouml.uml.diag​ram.deployment.ui.UM​LDeploymentDiagram;
 //#if defined(SEQUENCEDIAGRAM)
 //@#$LPS-SEQUENCEDI​AGRAM:GranularityTyp​e:Import
@@ -106,7 +115,11 @@
         //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:Enumeration
         State,
         //#endif
- Deployment, Collaboration,
+ Deployment,
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Enumeration
+ Collaboration,
+ //#endif
         //#if defined(ACTIVITYDIAGRAM)
         //@#$LPS-ACTIVITYDI​AGRAM:GranularityTyp​e:Enumeration
         Activity,
@@ -137,8 +150,10 @@
         diagramClasses.put(D​iagramType.State, UMLStateDiagram.class);
         //#endif
         diagramClasses.put(D​iagramType.Deploymen​t, UMLDeploymentDiagram.class);
- diagramClasses.put(D​iagramType.Collabora​tion,
- UMLCollaborationDiagram.class);
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Command
+ diagramClasses.put(D​iagramType.Collabora​tion, UMLCollaborationDiagram.class);
+ //#endif
         //#if defined(ACTIVITYDIAGRAM)
         //@#$LPS-ACTIVITYDI​AGRAM:GranularityTyp​e:Command
         diagramClasses.put(D​iagramType.Activity,​ UMLActivityDiagram.class);
@@ -323,9 +338,12 @@
         } else if (type == UMLDeploymentDiagram.class) {
             diagram = new UMLDeploymentDiagram​(namespace);
             diType = DeploymentDiagram.class;
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Command
         } else if (type == UMLCollaborationDiagram.class) {
             diagram = new UMLCollaborationDiag​ram(namespace);
             diType = CollaborationDiagram.class;
+ //#endif
         //#if defined(ACTIVITYDIAGRAM)
         //@#$LPS-ACTIVITYDI​AGRAM:GranularityTyp​e:Command
         } else if (type == UMLActivityDiagram.class) {

Modified: trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/UmlDiagram​Renderer.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/uml/di​agram/UmlDiagramRend​erer.java?view=diff​&pathrev=115&​r1=114&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/UmlDiagram​Renderer.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/UmlDiagram​Renderer.java 2010-09-11 13:54:37-0700
@@ -37,8 +37,11 @@
 import org.argouml.uml.diag​ram.activity.ui.FigP​artition;
 import org.argouml.uml.diag​ram.activity.ui.FigS​ubactivityState;
 //#endif
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Import
 import org.argouml.uml.diag​ram.collaboration.ui​.FigAssociationRole;​
 import org.argouml.uml.diag​ram.collaboration.ui​.FigClassifierRole;
+//#endif
 import org.argouml.uml.diag​ram.deployment.ui.Fi​gComponent;
 import org.argouml.uml.diag​ram.deployment.ui.Fi​gComponentInstance;
 import org.argouml.uml.diag​ram.deployment.ui.Fi​gMNode;
@@ -172,8 +175,11 @@
         } else if (Model.getFacade().i​sASubactivityState(n​ode)) {
             figNode = new FigSubactivityState();
         //#endif
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Command
         } else if (Model.getFacade().i​sAClassifierRole(nod​e)) {
             figNode = new FigClassifierRole();
+ //#endif
         } else if (Model.getFacade().i​sAMessage(node)) {
             figNode = new FigMessage();
         } else if (Model.getFacade().i​sANode(node)) {
@@ -301,8 +307,11 @@
             }
         } else if (edge instanceof CommentEdge) {
             newEdge = null;
+ //#if defined(COLLABORATIONDIAGRAM)
+ //@#$LPS-COLLABORAT​IONDIAGRAM:Granulari​tyType:Command
         } else if (Model.getFacade().i​sAAssociationRole(ed​ge)) {
             newEdge = new FigAssociationRole();
+ //#endif
         //#if defined(UMLSTATEDIAGRAM)
         //@#$LPS-UMLSTATEDI​AGRAM:GranularityTyp​e:Command
         } else if (Model.getFacade().i​sATransition(edge)) {

Modified: trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/CollabDiagramGra​phModel.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/src/argouml-app/sr​c/org/argouml/uml/di​agram/collaboration/​CollabDiagramGraphMo​del.java?view=diff​&pathrev=115&r​1=114&r2=115
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/CollabDiagramGra​phModel.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/um​l/diagram/collaborat​ion/CollabDiagramGra​phModel.java 2010-09-11 13:54:37-0700
@@ -1,3 +1,6 @@
+//#if defined(COLLABORATIONDIAGRAM)
+//@#$LPS-COLLABORA​TIONDIAGRAM:Granular​ityType:Package
+
 // $Id$
 // Copyright (c) 1996-2006 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
@@ -34,6 +37,7 @@
 
 //#if defined(LOGGING)
 //@#$LPS-LOGGING:Gr​anularityType:Import​
+//@#$LPS-LOGGING:L​ocalization:NestedIf​def
 import org.apache.log4j.Logger;
 //#endif
 import org.argouml.model.Model;
@@ -49,6 +53,7 @@
     implements VetoableChangeListener {
     //#if defined(LOGGING)
     //@#$LPS-LOGGING:Gr​anularityType:Field
+ //@#$LPS-LOGGING:Lo​calization:NestedIfd​ef
     /**
      * Logger.
      */
@@ -72,6 +77,7 @@
         } catch (IllegalArgumentException e) {
             //#if defined(LOGGING)
             //@#$LPS-LOGGING:Gr​anularityType:Comman​d
+ //@#$LPS-LOGGING:Lo​calization:NestedIfd​ef
             LOG.error("Illegal Argument to setCollaboration", e);
             //#endif
             throw e;
@@ -217,6 +223,7 @@
             //#if defined(LOGGING)
             //@#$LPS-LOGGING:Gr​anularityType:Comman​d
             //@#$LPS-LOGGING:Lo​calization:NestedCom​mand
+ //@#$LPS-LOGGING:Lo​calization:NestedIfd​ef
             LOG.error("Edge rejected. Its ends are not attached to anything");
             //#endif
             return false;
@@ -227,6 +234,7 @@
             //#if defined(LOGGING)
             //@#$LPS-LOGGING:Gr​anularityType:Comman​d
             //@#$LPS-LOGGING:Lo​calization:NestedCom​mand
+ //@#$LPS-LOGGING:Lo​calization:NestedIfd​ef
             LOG.error("Edge rejected. Its source end is attached to " + end0
                     + " but this is not in the graph model");
             //#endif
@@ -257,6 +265,7 @@
         //#if defined(LOGGING)
         //@#$LPS-LOGGING:Gr​anularityType:Comman​d
         //@#$LPS-LOGGING:Lo​calization:StartMeth​od
+ //@#$LPS-LOGGING:Lo​calization:NestedIfd​ef
     LOG.debug("adding MClassifierRole node!!");
     //#endif
     if (!canAddNode(node)) {
@@ -280,8 +289,9 @@
     @Override
     public void addEdge(Object edge) {
         //#if defined(LOGGING)
- //@#$LPS-LOGGING:Gr​anularityType:Comman​d
+ //@#$LPS-LOGGING:Gr​anularityType:Comman​d
         //@#$LPS-LOGGING:Lo​calization:StartMeth​od
+ //@#$LPS-LOGGING:Lo​calization:NestedIfd​ef
         LOG.debug("adding class edge!!!!!!");
         //#endif
         if (!canAddEdge(edge)) {
@@ -375,6 +385,7 @@
             //#if defined(LOGGING)
             //@#$LPS-LOGGING:Gr​anularityType:Comman​d
             //@#$LPS-LOGGING:Lo​calization:NestedCom​mand
+ //@#$LPS-LOGGING:Lo​calization:NestedIfd​ef
         LOG.debug("model removed " + me);
         //#endif
         if (Model.getFacade().i​sAClassifier(me)) {
@@ -390,6 +401,7 @@
         //#if defined(LOGGING)
         //@#$LPS

View complete message

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r115 - trunk/src: argouml-app argouml-app/src/org/argouml/application argouml-app/src/org/argouml/notation/providers/uml argouml-app/src/org/argouml/ui/cmd argouml-app/src/org/argouml/ui/e... marcusvnac Marcus Vinícius de Ávila Couto 2010-09-11 13:54:39 PDT
Messages per page: