Debian Codegraph @

plugins/org.eclipse.emf.codegen.ecore/templates/edit/Properties.javajet

raw
1 <%@ jet package="org.eclipse.emf.codegen.ecore.templates.edit" imports="java.util.* org.eclipse.emf.codegen.ecore.genmodel.*" class="Properties"%>
2 <%
3 /**
4 * Copyright (c) 2010 Ed Merks and others.
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v2.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v20.html
9 *
10 * Contributors:
11 * Ed Merks - Initial API and implementation
12 */
13 %>
14 <%GenModel genModel = (GenModel)argument; /* Trick to import java.util.* without warnings */Iterator.class.getName();%>
15 <%@ include file="../Header.javajetinc"%>
16 package <%=genModel.getEditPluginPackageName()%>;
17
18 <%genModel.markImportLocation(stringBuffer);%>
19
20 /**
21 * <!-- begin-user-doc -->
22 * <!-- end-user-doc -->
23 * @generated
24 */
25 public interface <%=genModel.getEditPluginClassName()%>Properties extends <%=genModel.getImportedName("com.google.gwt.i18n.client.Messages")%>
26 {
27 <%if (genModel.isCreationCommands()) {%>
28 /**
29 * <!-- begin-user-doc -->
30 * <!-- end-user-doc -->
31 * @generated
32 */
33 @Key("_UI_CreateChild_text")
34 @DefaultMessage("{0}")
35 String createChildText(Object type);
36
37 /**
38 * <!-- begin-user-doc -->
39 * <!-- end-user-doc -->
40 * @generated
41 */
42 @Key("_UI_CreateChild_text2")
43 @DefaultMessage("{1} <%if (genModel.isCreationSubmenus()) {%>| <%}%>{0}")
44 String createChildText2(Object type, Object feature);
45
46 /**
47 * <!-- begin-user-doc -->
48 * <!-- end-user-doc -->
49 * @generated
50 */
51 @Key("_UI_CreateChild_text3")
52 @DefaultMessage("{0}")
53 String createChildText3(Object feature);
54
55 /**
56 * <!-- begin-user-doc -->
57 * <!-- end-user-doc -->
58 * @generated
59 */
60 @Key("_UI_CreateChild_tooltip")
61 @DefaultMessage("Create New {0} Under {1} Feature")
62 String createChildTooltip(Object type, Object feature);
63
64 /**
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @generated
68 */
69 @Key("_UI_CreateChild_description")
70 @DefaultMessage("Create a new child of type {0} for the {1} feature of the selected {2}.")
71 String createChildDescripition(Object type, Object feature, Object selection);
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 @Key("_UI_CreateSibling_description")
79 @DefaultMessage("Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent.")
80 String createSiblingDescription(Object type, Object feature, Object selection);
81
82 <%}%>
83 /**
84 * <!-- begin-user-doc -->
85 * <!-- end-user-doc -->
86 * @generated
87 */
88 @Key("_UI_PropertyDescriptor_description")
89 @DefaultMessage("The {0} of the {1}")
90 String propertyDescriptorDescription(Object feature, Object type);
91
92 <%for (GenPackage genPackage : genModel.getAllGenAndUsedGenPackagesWithClassifiers()) {%>
93 <%if (genPackage.getGenModel() == genModel || !genPackage.getGenModel().hasEditSupport()) { %>
94 <%for (GenClass genClass : genPackage.getGenClasses()) {%>
95 /**
96 * <!-- begin-user-doc -->
97 * <!-- end-user-doc -->
98 * @generated
99 */
100 @Key("_UI_<%=genClass.getName()%>_type")
101 @DefaultMessage("<%=genClass.getFormattedName()%>")
102 String <%=genClass.getUncapName()%>Type();
103
104 <%}%>
105 <%}%>
106 <%}%>
107 /**
108 * <!-- begin-user-doc -->
109 * <!-- end-user-doc -->
110 * @generated
111 */
112 @Key("_UI_Unknown_type")
113 @DefaultMessage("Object")
114 String unknownType();
115
116 /**
117 * <!-- begin-user-doc -->
118 * <!-- end-user-doc -->
119 * @generated
120 */
121 @Key("_UI_Unknown_datatype")
122 @DefaultMessage("Value")
123 String unknownDatatype();
124
125 <%for (GenFeature genFeature : genModel.getFilteredAllGenFeatures()) { String description = genFeature.getPropertyDescription();%>
126 /**
127 * <!-- begin-user-doc -->
128 * <!-- end-user-doc -->
129 * @generated
130 */
131 @Key("_UI_<%=genFeature.getGenClass().getName()%>_<%=genFeature.getName()%>_feature")
132 @DefaultMessage("<%=genFeature.getFormattedName()%>")
133 String <%=genFeature.getGenClass().getUncapName()%>_<%=genFeature.getCapName()%>Feature();
134
135 <%if (description != null && description.length() > 0) {%>
136 /**
137 * <!-- begin-user-doc -->
138 * <!-- end-user-doc -->
139 * @generated
140 */
141 @Key("_UI_<%=genFeature.getGenClass().getName()%>_<%=genFeature.getName()%>_description")
142 @DefaultMessage("<%=description%>")
143 String <%=genFeature.getGenClass().getUncapName()%>_<%=genFeature.getCapName()%>Description();
144
145 <%}%>
146 <%}%>
147 /**
148 * <!-- begin-user-doc -->
149 * <!-- end-user-doc -->
150 * @generated
151 */
152 @Key("_UI_Unknown_feature")
153 @DefaultMessage("Unspecified")
154 String unknownFeature();
155
156 <%for (GenPackage genPackage : genModel.getAllGenAndUsedGenPackagesWithClassifiers()) {%>
157 <%if (genPackage.getGenModel() == genModel || !genPackage.getGenModel().hasEditSupport()) {%>
158 <%for (GenEnum genEnum : genPackage.getGenEnums()) {%>
159 <%for (GenEnumLiteral genEnumLiteral : genEnum.getGenEnumLiterals()) {%>
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Key("_UI_<%=genEnum.getName()%>_<%=genEnumLiteral.getName()%>_literal")
166 @DefaultMessage("<%=genEnumLiteral.getLiteral()%>")
167 String <%=genEnum.getSafeUncapName()%>_<%=genEnumLiteral.getName()%>Literal();
168
169 <%}%>
170 <%}%>
171 <%}%>
172 <%}%>
173 <%for (String category : genModel.getPropertyCategories()) {%>
174 <%=genModel.getPropertyCategoryKey(category)%> = <%=category%>
175 /**
176 * <!-- begin-user-doc -->
177 * <!-- end-user-doc -->
178 * @generated
179 */
180 @Key("<%=genModel.getPropertyCategoryKey(category)%>")
181 @DefaultMessage("<%=category%>")
182 String <%=genModel.getPropertyCategoryKey(category)%>();
183
184 <%}%>
185 }
186 <%genModel.emitSortedImports();%>