Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/helper/advice/OccurrenceSpecificationHelperAdvice.java')
-rw-r--r--incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/helper/advice/OccurrenceSpecificationHelperAdvice.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/helper/advice/OccurrenceSpecificationHelperAdvice.java b/incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/helper/advice/OccurrenceSpecificationHelperAdvice.java
index 7c4ba3281b6..2ffc4272555 100644
--- a/incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/helper/advice/OccurrenceSpecificationHelperAdvice.java
+++ b/incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/helper/advice/OccurrenceSpecificationHelperAdvice.java
@@ -32,21 +32,21 @@ public class OccurrenceSpecificationHelperAdvice extends AbstractEditHelperAdvic
@Override
protected ICommand getAfterDestroyDependentsCommand(final DestroyDependentsRequest request) {
final EObject destructee = request.getElementToDestroy();
- if (destructee instanceof OccurrenceSpecification) {
- final OccurrenceSpecification occurrenceSpecification = (OccurrenceSpecification) destructee;
+ if(destructee instanceof OccurrenceSpecification) {
+ final OccurrenceSpecification occurrenceSpecification = (OccurrenceSpecification)destructee;
final Collection<EObject> elementsToDestroy = OccurrenceSpecificationUtils.getElementsToDelete(occurrenceSpecification);
- if (!elementsToDestroy.isEmpty()) {
+ if(!elementsToDestroy.isEmpty()) {
final CompositeCommand compositeCommand = new CompositeCommand(Messages.OccurrenceSpecificationHelperAdvice_DestroyOccurrenceSpecification);
// destroy related elements
- for (final EObject eObject : elementsToDestroy) {
+ for(final EObject eObject : elementsToDestroy) {
final DestroyElementRequest destroyElementRequest = new DestroyElementRequest(eObject, false);
final DestroyElementCommand destroyElementCommand = new DestroyElementCommand(destroyElementRequest);
- if (destroyElementCommand.canExecute()) {
+ if(destroyElementCommand.canExecute()) {
compositeCommand.add(destroyElementCommand);
}
}
final IUndoableOperation updateFragmentNamesCommand = LifelineUtils.getUpdateFragmentNamesCommand(occurrenceSpecification);
- if (updateFragmentNamesCommand != null) {
+ if(updateFragmentNamesCommand != null) {
compositeCommand.add(updateFragmentNamesCommand);
}
return compositeCommand;

Back to the top