Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskovalsky2015-06-09 14:34:24 +0000
committerRemi Schnekenburger2015-06-18 16:46:32 +0000
commit514c7bb4b8b6201387c7eef3742d3233f104b8ac (patch)
tree0156f0cb47966b132e58394e6f6e06a1bc343fa3 /plugins/developer/org.eclipse.papyrus.def
parent6a70cc5e508fc7e3f39073888804ef5115db7995 (diff)
downloadorg.eclipse.papyrus-514c7bb4b8b6201387c7eef3742d3233f104b8ac.tar.gz
org.eclipse.papyrus-514c7bb4b8b6201387c7eef3742d3233f104b8ac.tar.xz
org.eclipse.papyrus-514c7bb4b8b6201387c7eef3742d3233f104b8ac.zip
Remove externally defined elementtypes from plugin.xml generation.
Change-Id: I2cae532ec9047eda2fef59c0418d06f34b2e632e Signed-off-by: skovalsky <kovalsky@montages.com> Reviewed-on: https://git.eclipse.org/r/48088 Tested-by: Hudson CI Reviewed-by: Remi Schnekenburger <remi.schnekenburger@cea.fr>
Diffstat (limited to 'plugins/developer/org.eclipse.papyrus.def')
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend/aspects/xpt/providers/extensions.xtend9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/xpt/providers/extensions.xtend b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/xpt/providers/extensions.xtend
index 5bc8fcd3d9c..e4f07ae0307 100644
--- a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/xpt/providers/extensions.xtend
+++ b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/xpt/providers/extensions.xtend
@@ -107,12 +107,14 @@ import xpt.providers.ShortcutsDecoratorProvider
«tripleSpace(1)»</extension>
«ENDIF»
+ «IF !getLocalDefineTypedElements(it).empty»
«tripleSpace(1)»<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypes" id="element-types">
«tripleSpace(2)»«xmlGeneratedTag»
- «FOR e : getAllTypedElements(it)»
+ «FOR e : getLocalDefineTypedElements(it)»
«elementTypeSafe(e.elementType)»
«ENDFOR»
«tripleSpace(1)»</extension>
+ «ENDIF»
«tripleSpace(1)»<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings" id="element-types-bindings">
«tripleSpace(2)»«xmlGeneratedTag»
@@ -130,7 +132,7 @@ import xpt.providers.ShortcutsDecoratorProvider
<binding context="org.eclipse.papyrus.infra.services.edit.TypeContext">
«ENDIF»
- «FOR e : getAllTypedElements(it)»
+ «FOR e : getLocalDefineTypedElements(it)»
«tripleSpace(3)»<elementType ref="«e.elementType.uniqueIdentifier»"/>
«ENDFOR»
«tripleSpace(3)»<advice ref="org.eclipse.gmf.runtime.diagram.core.advice.notationDepdendents"/>
@@ -138,6 +140,9 @@ import xpt.providers.ShortcutsDecoratorProvider
«tripleSpace(1)»</extension>
'''
+ def getLocalDefineTypedElements(GenDiagram it) {
+ getAllTypedElements(it).filter[et| false == et.elementType.definedExternally]
+ }
// override modelingAssistantProvider(GenDiagram it) '''
//
// <extension point="org.eclipse.gmf.runtime.emf.ui.modelingAssistantProviders" id="modelassist-provider">

Back to the top