Author: mvw Date: 2014-09-14 09:05:34-0700 New Revision: 19952 Modified: trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerPopup.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-app/src/org/argouml/ui/explorer/ExplorerPopup.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerPopup.java?view=diff&pathrev=19952&r1=19951&r2=19952 ============================================================================== --- trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerPopup.java (original) +++ trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerPopup.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 */ ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=3088418 To unsubscribe from this discussion, e-mail: [[email protected]].
