Bug 449969 - [DiaGen] Use Modeled Viewmaps
Summary: [DiaGen] Use Modeled Viewmaps
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Michael Golubev CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 449899
  Show dependency tree
 
Reported: 2014-11-04 10:20 EST by Michael Golubev CLA
Modified: 2017-08-07 11:35 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Golubev CLA 2014-11-04 10:20:19 EST
Extracted from Bug 449930

ActivityD still stores the code snippets for figure classes in the gmfgen: 
E.g.: 

classBody="
/**
 * @generated
 */
public class Lin
kAndCornerBentWithTextFigure extends org.eclipse.papyrus.uml.diagram.common.figure.node.CornerBentFi
gure {


	/**
	 * @generated
	 */

	private org.eclipse.papyrus.uml.diagram.activity.figures.WrappedLabel fCornerBentContent; 

	/**
	 * @generated
	 */
	private org.eclipse.draw2d
.PolylineShape fLinkToBehaviorProperty; 


	/**
	 * @gen
erated
	 */
	public LinkAndCornerBentWithTextFigure() {
	&#x9
;		

	this.setBackgroundColor(THIS_BACK
);
	&#x9
;createContents();
	}
	/**
	 * @generated
	 */&#
xD;
	private void createContents(){


fCornerBentContent = new or
g.eclipse.papyrus.uml.diagram.activity.figures.WrappedLabel();



&#x
A;this.add(fCornerBentContent);



fLinkToBehaviorProperty = new
org.eclipse.draw2d.PolylineShape();
fLinkToBehaviorProperty.setLineStyle(org.eclipse.draw2
d.Graphics.LINE_DASH);

this.add(fLinkToBehaviorProperty);

&#xD
;
	}





	/**
	 * @g
enerated
	 */
	public org.eclipse.papyrus.uml.diagram.activity.figures.Wra
ppedLabel getCornerBentContent() {
		return fCornerBentContent;
	}&#xD
;
	/**
	 * @generated
	 */
	public org.eclipse.draw2d
.PolylineShape getLinkToBehaviorProperty() {
		return fLinkToBehaviorProperty;

	}


}

/**
 * @generated
 *
/
static final org.eclipse.swt.graphics.Color THIS_BACK = new org.eclipse.swt.graphics.Colo
r(null, 248, 249, 214);

"/>

These snippets are outdated, because presumably the gmfmap->gmfgen transformation that only can produce these snippets had not been executed for years now. 

Since GMFT 3.0 there is a better solution of using ModeledViewmap's that references gmfgraph notions directly from view map and defers the generation to the template execution phase. 

=> 

While switching to Xtend templates, activityD will also remove the outdated snippets and will switch to the new modern way of producing draw2d code directly from input artifacts.