blob: 960b88a1f6b9a9749a010a2df9ffd12405e79054 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2013 CEA LIST.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* RĂ©gis CHEVREL: chevrel.regis <at> gmail.com
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.sysml.diagram.parametric.edit.policy;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.commands.UnexecutableCommand;
import org.eclipse.gef.requests.ReconnectRequest;
// Start of user code custom imports
// End of user code
import org.eclipse.papyrus.sysml.diagram.parametric.policies.CustomDefaultSemanticEditPolicy;
public class DiagramSemanticEditPolicy extends CustomDefaultSemanticEditPolicy {
/**
* {@inheritDoc}
*/
@Override
protected Command getReorientRelationshipSourceCommand(ReconnectRequest request) {
return UnexecutableCommand.INSTANCE;
}
/**
* {@inheritDoc}
*/
@Override
protected Command getReorientRelationshipTargetCommand(ReconnectRequest request) {
return UnexecutableCommand.INSTANCE;
}
/**
* {@inheritDoc}
*/
@Override
protected Command getReorientRefRelationshipSourceCommand(ReconnectRequest request) {
return UnexecutableCommand.INSTANCE;
}
/**
* {@inheritDoc}
*/
@Override
protected Command getReorientRefRelationshipTargetCommand(ReconnectRequest request) {
return UnexecutableCommand.INSTANCE;
}
}