Login | Register
My pages Projects Community openCollabNet

Discussions > Commit Messages > svn commit: r19952 - trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerPopup.java

argouml
Discussion topic

Back to topic list

svn commit: r19952 - trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerPopup.java

Author mvw
Full name Michiel van der Wulp
Date 2014-09-14 09:05:39 PDT
Message Author: mvw
Date: 2014-09-14 09:05:34-0700
New Revision: 19952

Modified:
   trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/ExplorerPo​pup.java

Log:
Fix for issue 5237: Allow creation of association class via explorer
Thanks for the patch, Bob!
I added a limit to creating an association class between 2 classes at maximum.

Modified: trunk/src/argouml-ap​p/src/org/argouml/ui​/explorer/ExplorerPo​pup.java
Url: http://argouml.tigri​s.org/source/browse/​argouml/trunk/src/ar​gouml-app/src/org/ar​gouml/ui/explorer/Ex​plorerPopup.java?vie​w=diff&pathrev=1​9952&r1=19951​&r2=19952
====================​====================​====================​==================
--- 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 2014-09-14 09:05:34-0700
@@ -1,6 +1,6 @@
 /* $Id$
  ********************​********************​********************​*****************
- * Copyright (c) 2009-2012 Contributors - see below
+ * Copyright (c) 2009-2014 Contributors - see below
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -409,6 +409,10 @@
                             new ActionCreateAssociation(
                                     Model.getMetaTypes()​.getAssociation(),
                                     targets)));
+ if (targets.size() == 2) menuItems.add(new OrderedMenuItem(
+ new ActionCreateAssociation(
+ Model.getMetaTypes()​.getAssociationClass​(),
+ targets)));
                 }
             }
         }
@@ -779,7 +783,7 @@
 
 
     /**
- * An action to create an association between 2 or more model elements.
+ * An action to create an associationRole between 2 or more model elements.
      *
      * @author Bob Tarling
      */

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

Messages

Show all messages in topic

svn commit: r19952 - trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerPopup.java mvw Michiel van der Wulp 2014-09-14 09:05:39 PDT
Messages per page: