/** | |
* <copyright> | |
* | |
* Copyright (c) 2013 itemis and others. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v2.0 | |
* which accompanies this distribution, and is available at | |
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html | |
* | |
* Contributors: | |
* itemis - Initial API and implementation | |
* | |
* </copyright> | |
*/ | |
package org.eclipse.sphinx.examples.hummingbird20.diagram.gmf.edit.policies; | |
import org.eclipse.gef.commands.Command; | |
import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand; | |
import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; | |
import org.eclipse.sphinx.examples.hummingbird20.diagram.gmf.providers.Hummingbird20ElementTypes; | |
/** | |
* @generated | |
*/ | |
public class ConnectionItemSemanticEditPolicy extends Hummingbird20BaseItemSemanticEditPolicy { | |
/** | |
* @generated | |
*/ | |
public ConnectionItemSemanticEditPolicy() { | |
super(Hummingbird20ElementTypes.Connection_4001); | |
} | |
/** | |
* @generated | |
*/ | |
@Override | |
protected Command getDestroyElementCommand(DestroyElementRequest req) { | |
return getGEFWrapper(new DestroyElementCommand(req)); | |
} | |
} |