Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2013-10-30 14:17:35 -0400
committerptessier2013-10-30 14:17:35 -0400
commit85a38f064689273472b9b52abbc8683a8b536df6 (patch)
treed56c85bd4ba49eab56573ab2ccdacb1d077f4975 /plugins
parentf4517dd8c6b3e39ffd6750d18eb50ad258f569ae (diff)
downloadorg.eclipse.papyrus-85a38f064689273472b9b52abbc8683a8b536df6.tar.gz
org.eclipse.papyrus-85a38f064689273472b9b52abbc8683a8b536df6.tar.xz
org.eclipse.papyrus-85a38f064689273472b9b52abbc8683a8b536df6.zip
420595: [All diagrams] when a element is displayed as symbol, links must
follow symbol https://bugs.eclipse.org/bugs/show_bug.cgi?id=420595
Diffstat (limited to 'plugins')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/NodeEditPart.java2
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/SVGNodePlateFigure.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/NodeEditPart.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/NodeEditPart.java
index 5e3f62a93b7..01ed696dd85 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/NodeEditPart.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/NodeEditPart.java
@@ -246,7 +246,7 @@ public abstract class NodeEditPart extends AbstractBorderedShapeEditPart impleme
*/
protected NodeFigure createSVGNodePlate() {
- svgNodePlate= new SVGNodePlateFigure(200, 100);
+ svgNodePlate= new SVGNodePlateFigure(-1, -1);
svgNodePlate.setDefaultNodePlate(createNodePlate());
return svgNodePlate;
}
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/SVGNodePlateFigure.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/SVGNodePlateFigure.java
index aac08394216..ac9fa7590b9 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/SVGNodePlateFigure.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/SVGNodePlateFigure.java
@@ -69,6 +69,7 @@ public class SVGNodePlateFigure extends DefaultSizeNodeFigure {
public void setDefaultNodePlate(IFigure defaultNodePlate){
if( defaultNodePlate instanceof DefaultSizeNodeFigure){
this.defaultNodePlate=(DefaultSizeNodeFigure)defaultNodePlate;
+ this.setDefaultSize(((DefaultSizeNodeFigure)defaultNodePlate).getDefaultSize());
}
if( defaultNodePlate instanceof ICustomNodePlate){
((ICustomNodePlate)this.defaultNodePlate).setSVGNodePlateContainer(this);

Back to the top