Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 32cae52981d8374063c51b0b271c4ce9633a6fb4 (plain) (tree)




















                                                                                      
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