Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 961d3c2adc1dec7d394fedb2544496dfc64eda76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
modeltype gmfgen uses "http://www.eclipse.org/gmf/2009/GenModel";
modeltype gmfgenextension uses "http://www.eclipse.org/papyrus/2009/papyrusgmfgenextension";

library EditHelperUtils;

/*
 */
helper getBaseEditHelperFullName(diagram : gmfgen::GenDiagram) : String {
	if (gmfgenextension::AdditionalEditPartCandies.allInstances()->notEmpty()) then {
		return gmfgenextension::AdditionalEditPartCandies.allInstances()
		->asSequence()
		->first().baseEditHelperPackage + '.' + diagram.baseEditHelperClassName;
	} endif;
	
	return diagram.getBaseEditHelperQualifiedClassName();
}

Back to the top