Java Code Examples for org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest#getDirection()

The following examples show how to use org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest#getDirection() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TransitionEditHelper.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected ICommand getReorientRelationshipCommand(
		ReorientRelationshipRequest req) {
	switch (req.getDirection()) {
	case ReorientRelationshipRequest.REORIENT_SOURCE:
		return new SetValueCommand(new SetRequest(req.getRelationship(),
				SGraphPackage.Literals.TRANSITION__SOURCE,
				req.getNewRelationshipEnd()));
	case ReorientRelationshipRequest.REORIENT_TARGET:
		return new SetValueCommand(new SetRequest(req.getRelationship(),
				SGraphPackage.Literals.TRANSITION__TARGET,
				req.getNewRelationshipEnd()));
	}
	return super.getReorientRelationshipCommand(req);
}
 
Example 2
Source File: MessageFlowReorientCommand.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public MessageFlowReorientCommand(ReorientRelationshipRequest request) {
	super(request.getLabel(), request.getRelationship(), request);
	reorientDirection = request.getDirection();
	oldEnd = request.getOldRelationshipEnd();
	newEnd = request.getNewRelationshipEnd();
}
 
Example 3
Source File: TextAnnotationAttachmentReorientCommand.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public TextAnnotationAttachmentReorientCommand(ReorientRelationshipRequest request) {
	super(request.getLabel(), request.getRelationship(), request);
	reorientDirection = request.getDirection();
	oldEnd = request.getOldRelationshipEnd();
	newEnd = request.getNewRelationshipEnd();
}
 
Example 4
Source File: SequenceFlowReorientCommand.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public SequenceFlowReorientCommand(ReorientRelationshipRequest request) {
	super(request.getLabel(), request.getRelationship(), request);
	reorientDirection = request.getDirection();
	oldEnd = request.getOldRelationshipEnd();
	newEnd = request.getNewRelationshipEnd();
}