Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 32cae52981d8374063c51b0b271c4ce9633a6fb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import xpt.StringOperations;

modeltype genModel uses "http://www.eclipse.org/gmf/2008/GenModel";

library ExternalizerUtils;

helper getExternalizerPackageName(generator : genModel::GenEditorGenerator) : String {
	return generator.editor.packageName
}

helper getExternalizerClassName() : String {
	return 'Messages'
}

helper escapeIllegalKeySymbols(key : String) : String {
	return key.xpandReplaceAll('[=&"]', '').xpandReplaceAll('[ .]', '_')
}

helper escapeIllegalMessageSymbols(message : String) : String {
	return message.xpandReplaceAll('!', '\\!')
}

Back to the top