Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2018-07-13 05:20:31 -0400
committerNicolas FAUVERGUE2018-08-20 04:57:42 -0400
commita84522198f6f3c0a7ed9b40186a3a187a400436c (patch)
tree6c95c3825ee8b0e028c62ddbc2558fa0ad724d7c
parent083a03c55a49e3cc7fae87ee602f43f875fcbe74 (diff)
downloadorg.eclipse.papyrus-a84522198f6f3c0a7ed9b40186a3a187a400436c.tar.gz
org.eclipse.papyrus-a84522198f6f3c0a7ed9b40186a3a187a400436c.tar.xz
org.eclipse.papyrus-a84522198f6f3c0a7ed9b40186a3a187a400436c.zip
Bug 537001: [Sequence Diagram] Incorrect assertion in
SeparatorResizeTracker https://bugs.eclipse.org/bugs/show_bug.cgi?id=537001 Change-Id: I001d062a5838f8edce8fef941026ec48f2108f7d Signed-off-by: Camille Letavernier <cletavernier@eclipsesource.com>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/tools/SeparatorResizeTracker.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/tools/SeparatorResizeTracker.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/tools/SeparatorResizeTracker.java
index bde2f808568..03a532d4710 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/tools/SeparatorResizeTracker.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/tools/SeparatorResizeTracker.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2018 EclipseSource and others.
+ * Copyright (c) 2018 CEA LIST, EclipseSource and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * EclipseSource - Initial API and implementation (Bug 533770)
+ * EclipseSource - Initial API and implementation (Bug 533770, 537001)
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.sequence.tools;
@@ -30,7 +30,6 @@ import org.eclipse.papyrus.uml.diagram.sequence.requests.MoveSeparatorRequest;
public class SeparatorResizeTracker extends ResizeTracker {
private int separatorIndex;
- private List<GraphicalEditPart> ownerChildren;
/**
* Constructor.
@@ -40,7 +39,6 @@ public class SeparatorResizeTracker extends ResizeTracker {
*/
public SeparatorResizeTracker(GraphicalEditPart owner, int direction, int separatorIndex) {
super(owner, direction);
- assert separatorIndex < ownerChildren.size() - 1; // Make sure the separator has at least one element above, and one below
this.separatorIndex = separatorIndex;
}

Back to the top