Java Code Examples for org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest#REORIENT_TARGET
The following examples show how to use
org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest#REORIENT_TARGET .
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: TaskOutputReorientCommand.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ public boolean canExecute() { if (false == referenceOwner instanceof Task) { return false; } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return canReorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return canReorientTarget(); } return false; }
Example 2
Source File: TaskOutputReorientCommand.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { if (!canExecute()) { throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$ } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return reorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return reorientTarget(); } throw new IllegalStateException(); }
Example 3
Source File: TypeExtendingReorientCommand.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ public boolean canExecute() { if (false == referenceOwner instanceof Type) { return false; } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return canReorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return canReorientTarget(); } return false; }
Example 4
Source File: TypeExtendingReorientCommand.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { if (!canExecute()) { throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$ } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return reorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return reorientTarget(); } throw new IllegalStateException(); }
Example 5
Source File: StreamTypeReorientCommand.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ public boolean canExecute() { if (false == referenceOwner instanceof Stream) { return false; } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return canReorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return canReorientTarget(); } return false; }
Example 6
Source File: StreamTypeReorientCommand.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { if (!canExecute()) { throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$ } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return reorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return reorientTarget(); } throw new IllegalStateException(); }
Example 7
Source File: StreamInputOfReorientCommand.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ public boolean canExecute() { if (false == referenceOwner instanceof Stream) { return false; } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return canReorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return canReorientTarget(); } return false; }
Example 8
Source File: StreamInputOfReorientCommand.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { if (!canExecute()) { throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$ } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return reorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return reorientTarget(); } throw new IllegalStateException(); }
Example 9
Source File: TransitionEditHelper.java From statecharts with Eclipse Public License 1.0 | 5 votes |
@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 10
Source File: MessageFlowReorientCommand.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ public boolean canExecute() { if (false == getElementToEdit() instanceof MessageFlow) { return false; } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return canReorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return canReorientTarget(); } return false; }
Example 11
Source File: MessageFlowReorientCommand.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { if (!canExecute()) { throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$ } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return reorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return reorientTarget(); } throw new IllegalStateException(); }
Example 12
Source File: TextAnnotationAttachmentReorientCommand.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ public boolean canExecute() { if (false == getElementToEdit() instanceof TextAnnotationAttachment) { return false; } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return canReorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return canReorientTarget(); } return false; }
Example 13
Source File: TextAnnotationAttachmentReorientCommand.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { if (!canExecute()) { throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$ } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return reorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return reorientTarget(); } throw new IllegalStateException(); }
Example 14
Source File: SequenceFlowReorientCommand.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ public boolean canExecute() { if (false == getElementToEdit() instanceof SequenceFlow) { return false; } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return canReorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return canReorientTarget(); } return false; }
Example 15
Source File: SequenceFlowReorientCommand.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { if (!canExecute()) { throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$ } if (reorientDirection == ReorientRelationshipRequest.REORIENT_SOURCE) { return reorientSource(); } if (reorientDirection == ReorientRelationshipRequest.REORIENT_TARGET) { return reorientTarget(); } throw new IllegalStateException(); }