Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 028c593715016ae4af8e610f0d33d0d79cbf01e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
 * Copyright (c) 2006, 2009 Borland Software Corporation
 * 
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Anna Karjakina (Borland) - initial API and implementation
 */

«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»

«EXTENSION xpt::ExternalizerUtils»

«DEFINE Access FOR gmfgen::GenEditorGenerator-»
«EXPAND xpt::Common::copyright-»
package «getExternalizerPackageName(self)»;

«EXPAND xpt::Common::generatedClassComment»
public class «getExternalizerClassName()» extends org.eclipse.osgi.util.NLS {

	«EXPAND xpt::Common::generatedMemberComment»
	static {
		org.eclipse.osgi.util.NLS.initializeMessages("«getExternalizerClassName().toLower()»", «getExternalizerClassName()».class); «EXPAND xpt::Common::nonNLS»
	}

	«EXPAND xpt::Common::generatedMemberComment»
	private «getExternalizerClassName()»() {
	}

	«EXPAND Fields»
    //TODO: put accessor fields manually	
}
«ENDDEFINE»

«DEFINE Fields FOR gmfgen::GenEditorGenerator»
	«EXPAND impl::actions::CreateShortcutAction::i18nAccessors FOR diagram-»
	«EXPAND xpt::editor::CreationWizard::i18nAccessors FOR diagram-»
	«EXPAND xpt::editor::CreationWizardPage::i18nAccessors FOR diagram-»
    «EXPAND xpt::editor::DiagramEditorUtil::i18nAccessors FOR diagram-»
	«EXPAND xpt::editor::DocumentProvider::i18nAccessors FOR diagram-»
	«EXPAND xpt::editor::InitDiagramFileAction::i18nAccessors FOR diagram-»
	«EXPAND xpt::editor::NewDiagramFileWizard::i18nAccessors FOR diagram-»
	«EXPAND xpt::editor::Editor::i18nAccessors FOR editor-»
	«EXPAND xpt::editor::ElementChooser::i18nAccessors FOR diagram-»
	«EXPAND xpt::editor::ShortcutCreationWizard::i18nAccessors FOR diagram-»
	«EXPAND xpt::editor::ModelElementSelectionPage::i18nAccessors FOR diagram-»
	«EXPAND xpt::editor::ValidateAction::i18nAccessors FOR diagram-»
	«EXPAND xpt::editor::palette::PaletteFactory::i18nAccessors FOR diagram.palette-»
	«EXPAND xpt::application::ActionBarAdvisor::i18nAccessors FOR application-»
    «EXPAND xpt::application::WorkbenchWindowAdvisor::i18nAccessors FOR application-»
    «EXPAND xpt::application::WizardNewFileCreationPage::i18nAccessors FOR application-»
    «EXPAND impl::diagram::editparts::CompartmentEditPart::i18nAccessors FOR diagram-»
    «EXPAND xpt::diagram::editpolicies::OpenDiagram::i18nAccessors FOR diagram-»
    «EXPAND xpt::navigator::NavigatorContentProvider::i18nAccessors FOR navigator-»
    «EXPAND xpt::navigator::NavigatorActionProvider::i18nAccessors FOR navigator-»
    «EXPAND impl::parsers::AbstractParser::i18nAccessors FOR labelParsers-»
	«EXPAND parsers::PredefinedParser::i18nAccessors FOR labelParsers-»
	«EXPAND xpt::providers::ModelingAssistantProvider::i18nAccessors FOR diagram-»
«ENDDEFINE»

«DEFINE Values FOR gmfgen::GenEditorGenerator»
# TODO: manually put keys and values
«EXPAND impl::actions::CreateShortcutAction::i18nValues FOR diagram-»
«EXPAND xpt::editor::CreationWizard::i18nValues FOR diagram-»
«EXPAND xpt::editor::CreationWizardPage::i18nValues FOR diagram-»
«EXPAND xpt::editor::DiagramEditorUtil::i18nValues FOR diagram-»
«EXPAND xpt::editor::DocumentProvider::i18nValues FOR diagram-»
«EXPAND xpt::editor::InitDiagramFileAction::i18nValues FOR diagram-»
«EXPAND xpt::editor::NewDiagramFileWizard::i18nValues FOR diagram-»
«EXPAND xpt::editor::Editor::i18nValues FOR editor-»
«EXPAND xpt::editor::ElementChooser::i18nValues FOR diagram-»
«EXPAND xpt::editor::ShortcutCreationWizard::i18nValues FOR diagram-»
«EXPAND xpt::editor::ModelElementSelectionPage::i18nValues FOR diagram-»
«EXPAND xpt::editor::ValidateAction::i18nValues FOR diagram-»
«EXPAND xpt::editor::palette::PaletteFactory::i18nValues FOR diagram.palette-»
«EXPAND xpt::application::ActionBarAdvisor::i18nValues FOR application-»
«EXPAND xpt::application::WorkbenchWindowAdvisor::i18nValues FOR application-»
«EXPAND xpt::application::WizardNewFileCreationPage::i18nValues FOR application-»
«EXPAND impl::diagram::editparts::CompartmentEditPart::i18nValues FOR diagram-»
«EXPAND xpt::diagram::editpolicies::OpenDiagram::i18nValues FOR diagram-»
«EXPAND xpt::navigator::NavigatorContentProvider::i18nValues FOR navigator-»
«EXPAND xpt::navigator::NavigatorActionProvider::i18nValues FOR navigator-»
«EXPAND impl::parsers::AbstractParser::i18nValues FOR labelParsers-»
«EXPAND parsers::PredefinedParser::i18nValues FOR labelParsers-»
«EXPAND xpt::providers::ModelingAssistantProvider::i18nValues FOR diagram-»
«ENDDEFINE»

«DEFINE accessorField(key : String) FOR OclAny»
	«EXPAND xpt::Common::generatedMemberComment»
    public static String «escapeIllegalKeySymbols(key)»;
«ENDDEFINE»

«DEFINE messageEntry(key : String, message : String) FOR OclAny-»
«escapeIllegalKeySymbols(key)»=«escapeIllegalMessageSymbols(message)»
«ENDDEFINE»

«DEFINE accessorCall(key : String) FOR gmfgen::GenEditorGenerator-»
«getExternalizerPackageName(self)».«getExternalizerClassName()».«escapeIllegalKeySymbols(key)»«ENDDEFINE»

Back to the top