Commit ed8b57b7 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

migrate gmf templates

parent 7a88bc9c
#Fri Sep 04 16:19:30 CEST 2009
eclipse.preferences.version=1
generate_rcp=false
ignore_gmfgen_validation=false
ignore_mapmodel_validation=false
use_in_transfo_code_gen=true
use_map_mode=true
use_runtime_figures=true
......@@ -31,14 +31,14 @@ public class «getExternalizerClassName()» extends org.eclipse.osgi.util.NLS {
}
«EXPAND Fields»
//TODO: put accessor fields manually
//TODO: put accessor fields manually
«REM»Custom bonita label«ENDREM»
public static String cannotSaveTitle;
public static String cannotSaveMessage;
public static String ConfirmReplaceProcessDesc;
public static String ConfirmReplaceProcessTitle;
public static String saveDidNotChangeFileTitle;
public static String saveDidNotChangeFileDescription;
public static String saveDidNotChangeFileDescription;
}
«ENDDEFINE»
......@@ -63,20 +63,12 @@ public class «getExternalizerClassName()» extends org.eclipse.osgi.util.NLS {
«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
«REM»Custom bonita label«ENDREM»
cannotSaveTitle=Cannot save file
cannotSaveMessage=This probably means that specified name and version are already used by another process
ConfirmReplaceProcessDesc=A file with the same name already exists. Do you want to replace it ?
ConfirmReplaceProcessTitle=Replace selected file?
saveDidNotChangeFileTitle=Save did not change file
saveDidNotChangeFileDescription=Current File was not modified while performing "Save". Please close and re-open your process.
«EXPAND impl::actions::CreateShortcutAction::i18nValues FOR diagram-»
«EXPAND xpt::editor::CreationWizard::i18nValues FOR diagram-»
«EXPAND xpt::editor::CreationWizardPage::i18nValues FOR diagram-»
......@@ -97,7 +89,6 @@ saveDidNotChangeFileDescription=Current File was not modified while performing "
«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»
......
......@@ -53,7 +53,7 @@
super.createDefaultEditPolicies();
installEditPolicy(org.eclipse.gef.EditPolicy.SELECTION_FEEDBACK_ROLE, new «getDiagram().getTextSelectionEditPolicyQualifiedClassName()»());
installEditPolicy(org.eclipse.gef.EditPolicy.DIRECT_EDIT_ROLE, new org.bonitasoft.studio.common.editPolicies.WidgetLabelDirectEditPolicy());
installEditPolicy(org.eclipse.gef.EditPolicy.PRIMARY_DRAG_ROLE, new «getDiagram().getEditPartQualifiedClassName()».NodeLabelDragPolicy());
installEditPolicy(org.eclipse.gef.EditPolicy.PRIMARY_DRAG_ROLE, new «EXPAND nodeLabelDragPolicyQualifiedClassName FOR self.getDiagram()»());
«EXPAND xpt::diagram::editparts::Common::behaviour FOR self-»
«ENDAROUND»
......@@ -112,3 +112,13 @@
super.handleNotificationEvent(event);
«ENDAROUND»
«REM»since 3.1, old generated NodeLabelDragPolicy extracted to GMFT-runtime,
see org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy.
The next 2 DEFINE's are left here as a hook for backward compatibility with possible AROUND's
«ENDREM»
«DEFINE nodeLabelDragPolicyQualifiedClassName FOR gmfgen::GenDiagram»org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy«ENDDEFINE»
«DEFINE nodeLabelDragPolicyClass FOR gmfgen::GenDiagram-»
«REM»not generated by default anymore«ENDREM»«-»
«ENDDEFINE»
\ No newline at end of file
/*
* Copyright (c) 2007, 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:
* Dmitry Stadnik (Borland) - initial API and implementation
* Artem Tikhomirov (Borland) - [235113] alternative parser access
* [244419] custom parsers
*/
«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
«EXTENSION impl::parsers::i18n»
«DEFINE className FOR gmfgen::GenParsers»«defaultAbstractParserClassName()»«ENDDEFINE»
«DEFINE qualifiedClassName FOR gmfgen::GenParsers»«implPackageName».«EXPAND className»«ENDDEFINE»
«DEFINE Main FOR gmfgen::GenParsers-»
«EXPAND xpt::Common::copyright FOR editorGen-»
package «implPackageName»;
«EXPAND xpt::Common::generatedClassComment»
public abstract class «EXPAND className» implements org.eclipse.gmf.runtime.common.ui.services.parser.IParser {
«EXPAND xpt::Common::generatedMemberComment»
protected final org.eclipse.emf.ecore.EAttribute[] features;
«EXPAND xpt::Common::generatedMemberComment»
protected final org.eclipse.emf.ecore.EAttribute[] editableFeatures;
«EXPAND xpt::Common::generatedMemberComment»
private String viewPattern;
«EXPAND xpt::Common::generatedMemberComment»
private String editorPattern;
«EXPAND xpt::Common::generatedMemberComment»
private String editPattern;
«EXPAND xpt::Common::generatedMemberComment»
public «EXPAND className»(org.eclipse.emf.ecore.EAttribute[] features) {
if (features == null || java.util.Arrays.asList(features).contains(null)) {
throw new IllegalArgumentException();
}
this.editableFeatures = this.features = features;
}
«EXPAND xpt::Common::generatedMemberComment»
public «EXPAND className»(org.eclipse.emf.ecore.EAttribute[] features,
org.eclipse.emf.ecore.EAttribute[] editableFeatures) {
if (features == null || java.util.Arrays.asList(features).contains(null)) {
throw new IllegalArgumentException();
}
this.features = features;
if (editableFeatures == null || java.util.Arrays.asList(editableFeatures).contains(null)) {
throw new IllegalArgumentException();
}
this.editableFeatures = editableFeatures;
}
«EXPAND xpt::Common::generatedMemberComment»
public String getViewPattern() {
return viewPattern;
}
«EXPAND xpt::Common::generatedMemberComment»
public void setViewPattern(String viewPattern) {
this.viewPattern = viewPattern;
}
«EXPAND xpt::Common::generatedMemberComment»
public String getEditorPattern() {
return editorPattern;
}
«EXPAND xpt::Common::generatedMemberComment»
public void setEditorPattern(String editorPattern) {
this.editorPattern = editorPattern;
}
«EXPAND xpt::Common::generatedMemberComment»
public String getEditPattern() {
return editPattern;
}
«EXPAND xpt::Common::generatedMemberComment»
public void setEditPattern(String editPattern) {
this.editPattern = editPattern;
}
«EXPAND xpt::Common::generatedMemberComment»
public boolean isAffectingEvent(Object event, int flags) {
if (event instanceof org.eclipse.emf.common.notify.Notification) {
return isAffectingFeature(((org.eclipse.emf.common.notify.Notification) event).getFeature());
}
return false;
}
«EXPAND xpt::Common::generatedMemberComment»
protected boolean isAffectingFeature(Object feature) {
for (int i = 0; i < features.length; i++) {
if (features[i] == feature) {
return true;
}
}
return false;
}
«EXPAND xpt::Common::generatedMemberComment»
public org.eclipse.jface.text.contentassist.IContentAssistProcessor getCompletionProcessor(
org.eclipse.core.runtime.IAdaptable element) {
return null;
}
«EXPAND xpt::Common::generatedMemberComment»
protected Object[] getValues(org.eclipse.emf.ecore.EObject element) {
Object[] values = new Object[features.length];
for (int i = 0; i < features.length; i++) {
values[i] = getValue(element, features[i]);
}
return values;
}
«EXPAND xpt::Common::generatedMemberComment»
protected Object[] getEditableValues(org.eclipse.emf.ecore.EObject element) {
Object[] values = new Object[editableFeatures.length];
for (int i = 0; i < editableFeatures.length; i++) {
values[i] = getValue(element, editableFeatures[i]);
}
return values;
}
«EXPAND xpt::Common::generatedMemberComment»
protected Object getValue(org.eclipse.emf.ecore.EObject element, org.eclipse.emf.ecore.EAttribute feature) {
Object value = element.eGet(feature);
Class iClass = feature.getEAttributeType().getInstanceClass();
if (String.class.equals(iClass)) {
if (value == null) {
value = ""; «EXPAND xpt::Common::nonNLS»
}
}
return value;
}
«EXPAND xpt::Common::generatedMemberComment»
protected org.eclipse.gmf.runtime.common.core.command.ICommand getParseCommand(
org.eclipse.core.runtime.IAdaptable adapter, Object[] values, int flags) {
if (values == null || validateNewValues(values).getCode() !=
org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus.EDITABLE) {
return org.eclipse.gmf.runtime.common.core.command.UnexecutableCommand.INSTANCE;
}
org.eclipse.emf.ecore.EObject element =
(org.eclipse.emf.ecore.EObject) adapter.getAdapter(org.eclipse.emf.ecore.EObject.class);
org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain =
org.eclipse.emf.transaction.util.TransactionUtil.getEditingDomain(element);
if (editingDomain == null) {
return org.eclipse.gmf.runtime.common.core.command.UnexecutableCommand.INSTANCE;
}
org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand command =
new org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand(
editingDomain, "Set Values"); «EXPAND xpt::Common::nonNLS»
for (int i = 0; i < values.length; i++) {
command.compose(getModificationCommand(element, editableFeatures[i], values[i]));
}
if(element instanceof org.bonitasoft.studio.model.expression.Expression){
command.compose(getModificationCommand(element, org.bonitasoft.studio.model.expression.ExpressionPackage.eINSTANCE.getExpression_Name(), values[0]));
}
return command;
}
«EXPAND xpt::Common::generatedMemberComment»
protected org.eclipse.gmf.runtime.common.core.command.ICommand getModificationCommand(
org.eclipse.emf.ecore.EObject element, org.eclipse.emf.ecore.EAttribute feature, Object value) {
value = getValidNewValue(feature, value);
if (value instanceof InvalidValue) {
return org.eclipse.gmf.runtime.common.core.command.UnexecutableCommand.INSTANCE;
}
org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest request =
new org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest(element, feature, value);
return new org.eclipse.gmf.runtime.emf.type.core.commands.SetValueCommand(request);
}
«EXPAND xpt::Common::generatedMemberComment»
protected org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus validateNewValues(Object[] values) {
if (values.length != editableFeatures.length) {
return org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus.UNEDITABLE_STATUS;
}
for (int i = 0; i < values.length; i++) {
Object value = getValidNewValue(editableFeatures[i], values[i]);
if (value instanceof InvalidValue) {
return new org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus(
«editorGen.plugin.getActivatorQualifiedClassName()».ID,
org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus.UNEDITABLE,
value.toString());
}
}
return org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus.EDITABLE_STATUS;
}
«EXPAND xpt::Common::generatedMemberComment»
protected Object getValidNewValue(org.eclipse.emf.ecore.EAttribute feature, Object value) {
org.eclipse.emf.ecore.EClassifier type = feature.getEType();
if (type instanceof org.eclipse.emf.ecore.EDataType) {
Class iClass = type.getInstanceClass();
if (Boolean.TYPE.equals(iClass)) {
if (value instanceof Boolean) {
// ok
} else if (value instanceof String) {
value = Boolean.valueOf((String) value);
} else {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserUnexpectedValueTypeMessage()) FOR editorGen», iClass.getName()));
}
} else if (Character.TYPE.equals(iClass)) {
if (value instanceof Character) {
// ok
} else if (value instanceof String) {
String s = (String) value;
if (s.length() == 0) {
value = null;
} else {
value = new Character(s.charAt(0));
}
} else {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserUnexpectedValueTypeMessage()) FOR editorGen», iClass.getName()));
}
} else if (Byte.TYPE.equals(iClass)) {
if (value instanceof Byte) {
// ok
} else if (value instanceof Number) {
value = new Byte(((Number) value).byteValue());
} else if (value instanceof String) {
String s = (String) value;
if (s.length() == 0) {
value = null;
} else {
try {
value = Byte.valueOf(s);
} catch (NumberFormatException nfe) {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserWrongStringConversionMessage()) FOR editorGen», iClass.getName()));
}
}
} else {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserUnexpectedValueTypeMessage()) FOR editorGen», iClass.getName()));
}
} else if (Short.TYPE.equals(iClass)) {
if (value instanceof Short) {
// ok
} else if (value instanceof Number) {
value = new Short(((Number) value).shortValue());
} else if (value instanceof String) {
String s = (String) value;
if (s.length() == 0) {
value = null;
} else {
try {
value = Short.valueOf(s);
} catch (NumberFormatException nfe) {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserWrongStringConversionMessage()) FOR editorGen», iClass.getName()));
}
}
} else {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserUnexpectedValueTypeMessage()) FOR editorGen», iClass.getName()));
}
} else if (Integer.TYPE.equals(iClass)) {
if (value instanceof Integer) {
// ok
} else if (value instanceof Number) {
value = new Integer(((Number) value).intValue());
} else if (value instanceof String) {
String s = (String) value;
if (s.length() == 0) {
value = null;
} else {
try {
value = Integer.valueOf(s);
} catch (NumberFormatException nfe) {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserWrongStringConversionMessage()) FOR editorGen», iClass.getName()));
}
}
} else {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserUnexpectedValueTypeMessage()) FOR editorGen», iClass.getName()));
}
} else if (Long.TYPE.equals(iClass)) {
if (value instanceof Long) {
// ok
} else if (value instanceof Number) {
value = new Long(((Number) value).longValue());
} else if (value instanceof String) {
String s = (String) value;
if (s.length() == 0) {
value = null;
} else {
try {
value = Long.valueOf(s);
} catch (NumberFormatException nfe) {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserWrongStringConversionMessage()) FOR editorGen», iClass.getName()));
}
}
} else {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserUnexpectedValueTypeMessage()) FOR editorGen», iClass.getName()));
}
} else if (Float.TYPE.equals(iClass)) {
if (value instanceof Float) {
// ok
} else if (value instanceof Number) {
value = new Float(((Number) value).floatValue());
} else if (value instanceof String) {
String s = (String) value;
if (s.length() == 0) {
value = null;
} else {
try {
value = Float.valueOf(s);
} catch (NumberFormatException nfe) {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserWrongStringConversionMessage()) FOR editorGen», iClass.getName()));
}
}
} else {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserUnexpectedValueTypeMessage()) FOR editorGen», iClass.getName()));
}
} else if (Double.TYPE.equals(iClass)) {
if (value instanceof Double) {
// ok
} else if (value instanceof Number) {
value = new Double(((Number) value).doubleValue());
} else if (value instanceof String) {
String s = (String) value;
if (s.length() == 0) {
value = null;
} else {
try {
value = Double.valueOf(s);
} catch (NumberFormatException nfe) {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserWrongStringConversionMessage()) FOR editorGen», iClass.getName()));
}
}
} else {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserUnexpectedValueTypeMessage()) FOR editorGen», iClass.getName()));
}
} else if (type instanceof org.eclipse.emf.ecore.EEnum) {
if (value instanceof String) {
org.eclipse.emf.ecore.EEnumLiteral literal =
((org.eclipse.emf.ecore.EEnum) type).getEEnumLiteralByLiteral((String) value);
if (literal == null) {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserUnknownLiteralMessage()) FOR editorGen», value));
} else {
value = literal.getInstance();
}
} else {
value = new InvalidValue(org.eclipse.osgi.util.NLS.bind(«EXPAND xpt::Externalizer::accessorCall(i18nKeyForAbstractParserUnexpectedValueTypeMessage()) FOR editorGen», String.class.getName()));
}
}
}
return value;
}
«EXPAND xpt::Common::generatedMemberComment»
protected class InvalidValue {
«EXPAND xpt::Common::generatedMemberComment»
private String description;
«EXPAND xpt::Common::generatedMemberComment»
public InvalidValue(String description) {
this.description = description;
}
«EXPAND xpt::Common::generatedMemberComment»
public String toString() {
return description;
}
}
«EXPAND additions-»
}
«ENDDEFINE»
«DEFINE additions FOR gmfgen::GenParsers»«ENDDEFINE»
«DEFINE i18nValues FOR gmfgen::GenParsers-»
«IF (implementations)[gmfgen::PredefinedParser]->size() > 0-»
«EXPAND xpt::Externalizer::messageEntry(i18nKeyForAbstractParserUnexpectedValueTypeMessage(), 'Value of type {0} is expected')-»
«EXPAND xpt::Externalizer::messageEntry(i18nKeyForAbstractParserWrongStringConversionMessage(), 'String value does not convert to {0} value')-»
«EXPAND xpt::Externalizer::messageEntry(i18nKeyForAbstractParserUnknownLiteralMessage(), 'Unknown literal: {0}')-»
«ENDIF-»
«ENDDEFINE»
«DEFINE i18nAccessors FOR gmfgen::GenParsers-»
«IF (implementations)[gmfgen::PredefinedParser]->size() > 0-»
«EXPAND xpt::Externalizer::accessorField(i18nKeyForAbstractParserUnexpectedValueTypeMessage())-»
«EXPAND xpt::Externalizer::accessorField(i18nKeyForAbstractParserWrongStringConversionMessage())-»
«EXPAND xpt::Externalizer::accessorField(i18nKeyForAbstractParserUnknownLiteralMessage())-»
«ENDIF-»
«ENDDEFINE»
/*
/*
* Copyright (c) 2007, 2010 Borland Software Corporation and others
*
* All rights reserved. This program and the accompanying materials
......@@ -14,8 +14,10 @@
*/
«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/GenModel'»
«EXTENSION xpt::providers::ParserUtils»
«EXTENSION impl::parsers::expression»
«EXTENSION xpt::expressions::OclTracker»
«DEFINE accessorMethod_delegate2providers FOR gmfgen::GenParsers-»
«EXPAND xpt::Common::generatedMemberComment('Utility method that consults ParserService')»
......@@ -154,17 +156,28 @@ org.eclipse.gmf.runtime.common.ui.services.parser.ParserService.getInstance().ge
«DEFINE _getParser(modelFacet : gmfgen::LabelModelFacet, element : gmfgen::GenCommonBase) FOR gmfgen::ExternalParser»«REM»NOTHING TO DO«ENDREM»«ENDDEFINE»
«DEFINE _getParser(modelFacet : gmfgen::LabelModelFacet, element : gmfgen::GenCommonBase) FOR gmfgen::PredefinedParser-»
«EXPAND xpt::Common::caseVisualID FOR element» return «parserAccessorName(element)»();
«EXPAND _doGetParser(element)-»
«ENDDEFINE»
«DEFINE _getParser(modelFacet : gmfgen::LabelModelFacet, element : gmfgen::GenCommonBase) FOR gmfgen::PredefinedEnumParser»
«EXPAND _doGetParser(element)-»
«ENDDEFINE»
«DEFINE _getParser(modelFacet : gmfgen::LabelModelFacet, element : gmfgen::GenCommonBase) FOR gmfgen::OclChoiceParser»
«EXPAND _doGetParser(element)-»
«ENDDEFINE»
«DEFINE _getParser(modelFacet : gmfgen::LabelModelFacet, element : gmfgen::GenCommonBase) FOR gmfgen::CustomParser-»
«EXPAND xpt::Common::caseVisualID FOR element» return «parserAccessorName(element)»();
«EXPAND _doGetParser(element)-»
«ENDDEFINE»
«DEFINE _getParser(modelFacet : gmfgen::LabelModelFacet, element : gmfgen::GenCommonBase) FOR gmfgen::ExpressionLabelParser-»
«EXPAND xpt::Common::caseVisualID FOR element» return «parserAccessorName(element)»();
«EXPAND _doGetParser(element)-»
«ENDDEFINE»
«DEFINE _doGetParser(element : gmfgen::GenCommonBase) FOR gmfgen::GenParserImplementation-»
«EXPAND xpt::Common::caseVisualID FOR element» return «parserAccessorName(element)»();
«ENDDEFINE»
«DEFINE parsers FOR gmfgen::GenNode»«EXPAND _parser FOREACH labels»«ENDDEFINE»
«DEFINE parsers FOR gmfgen::GenLink»«EXPAND _parser FOREACH labels»«ENDDEFINE»
......@@ -185,20 +198,44 @@ org.eclipse.gmf.runtime.common.ui.services.parser.ParserService.getInstance().ge
«parserFieldName(element)» = new «qualifiedName»();
}
return «parserFieldName(element)»;
}
}
«ENDDEFINE»
«DEFINE _parser(modelFacet : gmfgen::LabelModelFacet, element : gmfgen::GenCommonBase) FOR gmfgen::ExternalParser-»
«REM»NO-OP«ENDREM-»
«REM»NO-OP«ENDREM»«
«ENDDEFINE»
«DEFINE _parser(modelFacet : gmfgen::FeatureLabelModelFacet, element : gmfgen::GenCommonBase) FOR gmfgen::PredefinedParser»
«EXPAND _predefinedParser(modelFacet, element)»
«ENDDEFINE»
«DEFINE _parser(modelFacet : gmfgen::FeatureLabelModelFacet, element : gmfgen::GenCommonBase) FOR gmfgen::PredefinedEnumParser»
«EXPAND _predefinedParser(modelFacet, element)»