aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorghillairet2012-05-21 10:05:49 (EDT)
committermgolubev2012-05-21 10:05:49 (EDT)
commit2d3453b000184d1748cef438f96b5ce8bf230a53 (patch)
tree4fdd6d76d0fd9570318d585f4e1e807f2d60c6ad
parentb866ae53b64b42cb7ed0bb59e76baab7f8990fd9 (diff)
downloadorg.eclipse.gmf-tooling-2d3453b000184d1748cef438f96b5ce8bf230a53.zip
org.eclipse.gmf-tooling-2d3453b000184d1748cef438f96b5ce8bf230a53.tar.gz
org.eclipse.gmf-tooling-2d3453b000184d1748cef438f96b5ce8bf230a53.tar.bz2
Collect orphans palette entries at the end of transformation, see PaletteTest#referenceToolFromWrongPalette
-rw-r--r--plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto b/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto
index 3c1cb95..b91c9cb 100644
--- a/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto
+++ b/plugins/org.eclipse.gmf.bridge/transforms/Map2Gen.qvto
@@ -66,6 +66,12 @@ main() {
new Actions(mapModel, gmfgenModel).transform();
if rcp then new RichClientPlatformApp(mapModel, gmfgenModel).transform() endif;
+
+ -- collect orphan palette items and add them to the Default group.
+ var toolGroup := GMFGEN::ToolGroup.allInstances()->any(title = 'Default');
+ GMFGEN::ToolGroupItem.allInstances()->select(e | e.container().oclIsUndefined())->forEach(element) {
+ toolGroup.entries += element;
+ }
}
--