carbidecpp22devenv/plugins/org.eclipse.gmf.templates.legacy_1.0.0.v20090614-0839/codegen.templates/xpt/ExternalizerUtils.ext
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 Borland Software Corporation |
|
3 * |
|
4 * All rights reserved. This program and the accompanying materials |
|
5 * are made available under the terms of the Eclipse Public License v1.0 |
|
6 * which accompanies this distribution, and is available at |
|
7 * http://www.eclipse.org/legal/epl-v10.html |
|
8 * |
|
9 * Contributors: |
|
10 * Anna Karjakina (Borland) - initial API and implementation |
|
11 */ |
|
12 |
|
13 import "http://www.eclipse.org/gmf/2008/GenModel"; |
|
14 import "http://www.eclipse.org/emf/2002/Ecore"; |
|
15 |
|
16 String getExternalizerPackageName(gmfgen::GenEditorGenerator generator) : |
|
17 generator.editor.packageName |
|
18 ; |
|
19 |
|
20 String getExternalizerClassName() : "Messages" ; |
|
21 |
|
22 String escapeIllegalKeySymbols(String key) : |
|
23 key.replaceAll("[=&\"]", "").replaceAll("[ .]", "_") |
|
24 ; |
|
25 |
|
26 String escapeIllegalMessageSymbols(String message) : |
|
27 message.replaceAll("!", "\\\\!") |
|
28 ; |