diff options
author | Asma Smaoui | 2018-11-30 14:14:49 +0000 |
---|---|---|
committer | Asma Smaoui | 2018-11-30 14:14:49 +0000 |
commit | b692088b2cd1aa030d1c5c0c9dd84b1068a074d4 (patch) | |
tree | 9666ad8f568a14714ddb6bafcc1fcd2502510be0 | |
parent | f9fd13e8521b75baaa85774ba5b888d542e7f8cd (diff) | |
download | org.eclipse.papyrus-b692088b2cd1aa030d1c5c0c9dd84b1068a074d4.tar.gz org.eclipse.papyrus-b692088b2cd1aa030d1c5c0c9dd84b1068a074d4.tar.xz org.eclipse.papyrus-b692088b2cd1aa030d1c5c0c9dd84b1068a074d4.zip |
Bug 541746 - [Profile] Stereotype base properties should have 0..1
multiplicity
Change-Id: I80ece92da3e4e62778d8a1ee9f00a1e2cc8d8bb0
Signed-off-by: Asma Smaoui <asma.smaoui@cea.fr>
-rw-r--r-- | plugins/uml/org.eclipse.papyrus.uml.service.types.ui/src/org/eclipse/papyrus/uml/service/types/internal/ui/advice/ExtensionEditHelperAdvice.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/src/org/eclipse/papyrus/uml/service/types/internal/ui/advice/ExtensionEditHelperAdvice.java b/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/src/org/eclipse/papyrus/uml/service/types/internal/ui/advice/ExtensionEditHelperAdvice.java index dae70f0159f..dbe78f8bce9 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/src/org/eclipse/papyrus/uml/service/types/internal/ui/advice/ExtensionEditHelperAdvice.java +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types.ui/src/org/eclipse/papyrus/uml/service/types/internal/ui/advice/ExtensionEditHelperAdvice.java @@ -1,3 +1,21 @@ +/******************************************************************************* + * Copyright (c) 2016, 2018 CEA LIST, Christian W. Damus, and others.. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * + * Christian W. Damus - Initial API and implementation + * Asma Smaoui (CEA LIST) asma.smaoui@cea.fr - Bug 541746 + * + *******************************************************************************/ + + + package org.eclipse.papyrus.uml.service.types.internal.ui.advice; import org.eclipse.core.commands.ExecutionException; @@ -67,6 +85,7 @@ public class ExtensionEditHelperAdvice extends AbstractEditHelperAdvice { property.setType(target); property.setAssociation(newExtension); property.setAggregation(AggregationKind.NONE_LITERAL); + property.setLower(0); newExtension.getMemberEnds().add(property); source.getOwnedAttributes().add(property); container.getPackagedElements().add(newExtension); |