Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'incoming/org.eclipse.papyrus.uml.diagram.timing/src/org/eclipse/papyrus/uml/diagram/timing/edit/policies/MessageLostItemSemanticEditPolicy.java')
-rw-r--r--incoming/org.eclipse.papyrus.uml.diagram.timing/src/org/eclipse/papyrus/uml/diagram/timing/edit/policies/MessageLostItemSemanticEditPolicy.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/incoming/org.eclipse.papyrus.uml.diagram.timing/src/org/eclipse/papyrus/uml/diagram/timing/edit/policies/MessageLostItemSemanticEditPolicy.java b/incoming/org.eclipse.papyrus.uml.diagram.timing/src/org/eclipse/papyrus/uml/diagram/timing/edit/policies/MessageLostItemSemanticEditPolicy.java
index 51ae5a91af1..2db6c1a129c 100644
--- a/incoming/org.eclipse.papyrus.uml.diagram.timing/src/org/eclipse/papyrus/uml/diagram/timing/edit/policies/MessageLostItemSemanticEditPolicy.java
+++ b/incoming/org.eclipse.papyrus.uml.diagram.timing/src/org/eclipse/papyrus/uml/diagram/timing/edit/policies/MessageLostItemSemanticEditPolicy.java
@@ -50,11 +50,11 @@ public class MessageLostItemSemanticEditPolicy extends UMLBaseItemSemanticEditPo
protected Command getDestroyElementCommand(final DestroyElementRequest req) {
final EObject selectedEObject = req.getElementToDestroy();
final IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
+ if(provider != null) {
// Retrieve delete command from the Element Edit service
final ICommand deleteCommand = provider.getEditCommand(req);
- if (deleteCommand != null) {
+ if(deleteCommand != null) {
return new ICommandProxy(deleteCommand);
}
}
@@ -75,28 +75,28 @@ public class MessageLostItemSemanticEditPolicy extends UMLBaseItemSemanticEditPo
*/
protected Command getStartCreateRelationshipCommand(final CreateRelationshipRequest req) {
final IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
+ if(requestElementType == null) {
return null;
}
IElementType baseElementType = requestElementType;
boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
+ if(requestElementType instanceof IExtendedHintedElementType) {
baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
+ if(baseElementType != null) {
isExtendedType = true;
} else {
// no reference element type ID. using the closest super element type to give more opportunities, but
// can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
+ baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType)requestElementType);
isExtendedType = true;
}
}
- if (UMLElementTypes.Message_50 == baseElementType) {
+ if(UMLElementTypes.Message_50 == baseElementType) {
return null;
}
- if (UMLElementTypes.Message_53 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
+ if(UMLElementTypes.Message_53 == baseElementType) {
+ if(isExtendedType) {
+ return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType)requestElementType);
}
return getGEFWrapper(new MessageFoundCreateCommand(req, req.getSource(), req.getTarget()));
}
@@ -108,29 +108,29 @@ public class MessageLostItemSemanticEditPolicy extends UMLBaseItemSemanticEditPo
*/
protected Command getCompleteCreateRelationshipCommand(final CreateRelationshipRequest req) {
final IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
+ if(requestElementType == null) {
return null;
}
IElementType baseElementType = requestElementType;
boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
+ if(requestElementType instanceof IExtendedHintedElementType) {
baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
+ if(baseElementType != null) {
isExtendedType = true;
} else {
// no reference element type ID. using the closest super element type to give more opportunities, but
// can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
+ baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType)requestElementType);
isExtendedType = true;
}
}
- if (UMLElementTypes.Message_50 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
+ if(UMLElementTypes.Message_50 == baseElementType) {
+ if(isExtendedType) {
+ return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType)requestElementType);
}
return getGEFWrapper(new MessageLostCreateCommand(req, req.getSource(), req.getTarget()));
}
- if (UMLElementTypes.Message_53 == baseElementType) {
+ if(UMLElementTypes.Message_53 == baseElementType) {
return null;
}
return null;
@@ -144,7 +144,7 @@ public class MessageLostItemSemanticEditPolicy extends UMLBaseItemSemanticEditPo
*/
@Override
protected Command getReorientRelationshipCommand(final ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
+ switch(getVisualID(req)) {
case MessageLostEditPart.VISUAL_ID:
return getGEFWrapper(new MessageLostReorientCommand(req));
case MessageFoundEditPart.VISUAL_ID:

Back to the top