blob: b8090cc338975a7d2c9c2f4052097c1f475944d2 [file] [log] [blame]
/**
* Copyright (c)2020 CEA LIST, Committer Name, 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:
* CEA LIST - Initial API and implementation
* Gabriel Pedroza (CEA LIST) gabriel.pedroza@cea.fr
*
*/
package org.eclipse.papyrus.pdp4eng.designer.controller.internal;
import org.eclipse.emf.transaction.RecordingCommand;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.papyrus.uml.properties.profile.ui.dialogs.ChooseSetStereotypeDialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.uml2.uml.Activity;
public class InstantiateGDPRConsentPatternCommand extends RecordingCommand {
protected Activity Process;
public InstantiateGDPRConsentPatternCommand(TransactionalEditingDomain domain, Activity Process) {
super(domain, "Instantiate a Consent Pattern based upon the information provided by the engineer");
this.Process = Process;
}
@Override
protected void doExecute() {
ChooseSetStereotypeDialog dialog = new ChooseSetStereotypeDialog(Display.getCurrent().getActiveShell(), Process);
dialog.open();
System.out.printf("==>>"+Process.toString());
}
}