blob: 46e999f3bd5c88cc75da5478a3ae21991bf0ceea [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2015 CEA LIST.
*
* 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:
* Sebastien REVOL
*
*****************************************************************************/
package org.eclipse.papyrus.moka.simex.advices;
import org.eclipse.gmf.runtime.common.core.command.ICommand;
import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice;
import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
import org.eclipse.papyrus.moka.simex.advices.commands.PinUpdateICommandFactory;
public class ActivityNodePinUpdateEditHelperAdvice extends AbstractEditHelperAdvice {
/**
* @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getAfterSetCommand(org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest)
*
* @param request
* @return
*/
@Override
protected ICommand getAfterSetCommand(SetRequest request) {
PinUpdateICommandFactory cmdFactory = new PinUpdateICommandFactory();
return cmdFactory.getCommand(request);
}
}