diff options
author | Laurent Redor | 2017-07-06 15:13:21 +0000 |
---|---|---|
committer | Laurent Redor | 2017-07-06 15:13:21 +0000 |
commit | 1bcf14e139d8a0673f588cc2fc969a18c2947bdb (patch) | |
tree | 67735e1331ef52130ffcfc44dc76ff5f6535d8ba | |
parent | 45e536e8b039d610de0989bede37349295370031 (diff) | |
download | org.eclipse.ecoretools-1bcf14e139d8a0673f588cc2fc969a18c2947bdb.tar.gz org.eclipse.ecoretools-1bcf14e139d8a0673f588cc2fc969a18c2947bdb.tar.xz org.eclipse.ecoretools-1bcf14e139d8a0673f588cc2fc969a18c2947bdb.zip |
[519327] Use SiriusDefaultSizeNodeFigure instead of
DefaultSizeNodeFigure
This avoids the shift problem described in bug 519305.
Bug: 519327
Change-Id: I888e1c959089c7af7bc44d352b7693cf86f2a4a4
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
-rw-r--r-- | org.eclipse.emf.ecoretools.design.ui/src/org/eclipse/emf/ecoretools/design/ui/parts/DNodeListEditPartWithAlpha.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.emf.ecoretools.design.ui/src/org/eclipse/emf/ecoretools/design/ui/parts/DNodeListEditPartWithAlpha.java b/org.eclipse.emf.ecoretools.design.ui/src/org/eclipse/emf/ecoretools/design/ui/parts/DNodeListEditPartWithAlpha.java index 601a01a..cd0a102 100644 --- a/org.eclipse.emf.ecoretools.design.ui/src/org/eclipse/emf/ecoretools/design/ui/parts/DNodeListEditPartWithAlpha.java +++ b/org.eclipse.emf.ecoretools.design.ui/src/org/eclipse/emf/ecoretools/design/ui/parts/DNodeListEditPartWithAlpha.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2014 Obeo + * Copyright (c) 2014, 2017 Obeo * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -12,12 +12,12 @@ package org.eclipse.emf.ecoretools.design.ui.parts; import org.eclipse.draw2d.Graphics; import org.eclipse.draw2d.IFigure; -import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure; import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; import org.eclipse.gmf.runtime.notation.View; import org.eclipse.sirius.diagram.DDiagramElement; import org.eclipse.sirius.diagram.DNodeList; import org.eclipse.sirius.diagram.ui.internal.edit.parts.DNodeListEditPart; +import org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.SiriusDefaultSizeNodeFigure; /** * An editpart which change the alpha level based on the mapping of the element. @@ -52,7 +52,7 @@ public class DNodeListEditPartWithAlpha extends DNodeListEditPart { .DPtoLP(40)); } - class TransparencyFigure extends DefaultSizeNodeFigure { + class TransparencyFigure extends SiriusDefaultSizeNodeFigure { private int alpha = 255; |