Lines 15-20
Link Here
|
15 |
import java.util.Collection; |
15 |
import java.util.Collection; |
16 |
import java.util.Iterator; |
16 |
import java.util.Iterator; |
17 |
|
17 |
|
|
|
18 |
import org.eclipse.draw2d.geometry.Dimension; |
18 |
import org.eclipse.draw2d.geometry.Insets; |
19 |
import org.eclipse.draw2d.geometry.Insets; |
19 |
import org.eclipse.emf.common.notify.Notification; |
20 |
import org.eclipse.emf.common.notify.Notification; |
20 |
import org.eclipse.emf.ecore.EObject; |
21 |
import org.eclipse.emf.ecore.EObject; |
Lines 70-76
Link Here
|
70 |
*/ |
71 |
*/ |
71 |
protected NodeFigure createNodeFigure() { |
72 |
protected NodeFigure createNodeFigure() { |
72 |
IMapMode mm = getMapMode(); |
73 |
IMapMode mm = getMapMode(); |
73 |
Insets insets = new Insets(mm.DPtoLP(5), mm.DPtoLP(5), mm.DPtoLP(5), mm.DPtoLP(14)); |
74 |
Insets insets = new Insets(mm.DPtoLP(5), mm.DPtoLP(5), mm.DPtoLP(5), mm.DPtoLP(5)); |
74 |
NoteFigure noteFigure = new NoteFigure(mm.DPtoLP(100), mm.DPtoLP(56), insets); |
75 |
NoteFigure noteFigure = new NoteFigure(mm.DPtoLP(100), mm.DPtoLP(56), insets); |
75 |
Object model = getModel(); |
76 |
Object model = getModel(); |
76 |
if (model!=null && model instanceof View){ |
77 |
if (model!=null && model instanceof View){ |
Lines 79-86
Link Here
|
79 |
(notationView.getEAnnotation(Properties.DIAGRAMLINK_ANNOTATION)!=null || |
80 |
(notationView.getEAnnotation(Properties.DIAGRAMLINK_ANNOTATION)!=null || |
80 |
notationView.getType() == null || |
81 |
notationView.getType() == null || |
81 |
notationView.getType().length() == 0)){ |
82 |
notationView.getType().length() == 0)){ |
82 |
diagramLinkMode = true; |
83 |
diagramLinkMode = true; |
83 |
noteFigure.setDiagramLinkMode(true); |
84 |
noteFigure.setDiagramLinkMode(true); |
|
|
85 |
|
86 |
// The default size is the minimum. |
87 |
noteFigure.setDefaultSize(-1, -1); |
84 |
} |
88 |
} |
85 |
} |
89 |
} |
86 |
return noteFigure; |
90 |
return noteFigure; |