Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tessier2016-09-28 08:38:00 +0000
committerPatrick Tessier2016-09-30 08:59:28 +0000
commit15d51d5d50e6fa566ec99bcbec9ae61eec15d995 (patch)
tree087705f86bd9ba2b79efcd64ac739e34c90063b9
parent62ff5b7ce50daf940e0183e675819c8936fc3c91 (diff)
downloadorg.eclipse.papyrus-15d51d5d50e6fa566ec99bcbec9ae61eec15d995.tar.gz
org.eclipse.papyrus-15d51d5d50e6fa566ec99bcbec9ae61eec15d995.tar.xz
org.eclipse.papyrus-15d51d5d50e6fa566ec99bcbec9ae61eec15d995.zip
Bug 498468: [Sequence Diagram] State Invariant unselectable if size is
too small https://bugs.eclipse.org/bugs/show_bug.cgi?id=498468 Change-Id: I592de812c1ebe48e72b436d8f062326f82b9c9c9 Signed-off-by: Patrick Tessier <Patrick.Tessier@cea.fr>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/edit/parts/CustomLifelineEditPart.java25
1 files changed, 3 insertions, 22 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/edit/parts/CustomLifelineEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/edit/parts/CustomLifelineEditPart.java
index 1fdc5abf61a..771cc43d301 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/edit/parts/CustomLifelineEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/edit/parts/CustomLifelineEditPart.java
@@ -24,8 +24,10 @@ import java.util.Map;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Connection;
import org.eclipse.draw2d.ConnectionAnchor;
+import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.PositionConstants;
import org.eclipse.draw2d.TreeSearch;
@@ -120,6 +122,7 @@ import org.eclipse.papyrus.uml.diagram.sequence.util.LifelineModelChildrenHelper
import org.eclipse.papyrus.uml.diagram.sequence.util.LifelineResizeHelper;
import org.eclipse.papyrus.uml.diagram.sequence.util.NotificationHelper;
import org.eclipse.papyrus.uml.diagram.sequence.util.OperandBoundsComputeHelper;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Display;
import org.eclipse.uml2.common.util.CacheAdapter;
@@ -592,28 +595,6 @@ public class CustomLifelineEditPart extends LifelineEditPart {
return super.containsPoint(x, y);
}
- /**
- * Reverse the find order from super, otherwise the child executions would hard to select.
- */
- @Override
- public IFigure findFigureAt(int x, int y, TreeSearch search) {
- if (search.prune(this)) {
- return null;
- }
- IFigure mainFigure = getMainFigure().findFigureAt(x, y, search);
- if (mainFigure != null) {
- return mainFigure;
- }
- return getBorderItemContainer().findFigureAt(x, y, search);
- }
-
- @Override
- public void setBackgroundColor(Color bg) {
- // if (getPrimaryShape() != null) {
- // NodeFigure dashLineRectangle = getPrimaryShape().getFigureLifelineDotLineFigure().getDashLineRectangle();
- // dashLineRectangle.setBackgroundColor(bg);
- // }
- }
@Override
public void setOpaque(boolean opaque) {

Back to the top