From 5e61a5490724d2ddf52caf45af21744482e8ada8 Mon Sep 17 00:00:00 2001 From: Nicolas FAUVERGUE Date: Mon, 12 Nov 2018 10:41:28 +0100 Subject: Bug 447665: [Profiles] Removing profiles definitions causing a profile definition https://bugs.eclipse.org/bugs/show_bug.cgi?id=447665 - Disconnect save listner on Profile Diagram - Make functionnal Profile Definition view Change-Id: Ibcf8cc9ddd90a5e31ca287db1b3788221981d145 Signed-off-by: Gabriel Pascual --- .../custom/commands/tests/DefineProfileCommandTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/custom/commands/tests/DefineProfileCommandTest.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/custom/commands/tests/DefineProfileCommandTest.java index 9ad1ac9836b..3313d712dc8 100644 --- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/custom/commands/tests/DefineProfileCommandTest.java +++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/custom/commands/tests/DefineProfileCommandTest.java @@ -1,6 +1,6 @@ /***************************************************************************** * Copyright (c) 2014 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 @@ -10,7 +10,7 @@ * * Contributors: * Christian W. Damus - Initial API and implementation - * + * *****************************************************************************/ package org.eclipse.papyrus.uml.diagram.profile.custom.commands.tests; @@ -22,13 +22,13 @@ import static org.hamcrest.MatcherAssert.assertThat; import org.eclipse.emf.ecore.EAnnotation; import org.eclipse.emf.ecore.ENamedElement; -import org.eclipse.papyrus.infra.emf.gmf.command.GMFtoEMFCommandWrapper; import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; import org.eclipse.papyrus.junit.utils.rules.ModelSetFixture; import org.eclipse.papyrus.junit.utils.rules.PluginResource; -import org.eclipse.papyrus.uml.diagram.profile.custom.commands.DefineProfileCommand; +import org.eclipse.papyrus.uml.tools.commands.DefineProfileCommand; import org.eclipse.papyrus.uml.tools.profile.definition.PapyrusDefinitionAnnotation; import org.eclipse.papyrus.uml.tools.profile.definition.Version; +import org.eclipse.papyrus.uml.tools.util.PapyrusProfileDefinition; import org.eclipse.uml2.uml.Profile; import org.junit.Rule; import org.junit.Test; @@ -80,8 +80,8 @@ public class DefineProfileCommandTest extends AbstractPapyrusTest { void executeDefineCommand(Profile profile, String version) { PapyrusDefinitionAnnotation annotation = new PapyrusDefinitionAnnotation(Version.parseVersion(version), "", "", "", ""); - DefineProfileCommand command = new DefineProfileCommand(modelSet.getEditingDomain(), annotation, profile, true); - modelSet.getEditingDomain().getCommandStack().execute(GMFtoEMFCommandWrapper.wrap(command)); + DefineProfileCommand command = new DefineProfileCommand(modelSet.getEditingDomain(), new PapyrusProfileDefinition(annotation, true), profile); + modelSet.getEditingDomain().getCommandStack().execute(command); } static EAnnotation getUMLAnnotation(ENamedElement namedElement) { -- cgit v1.2.3