summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorghillairet2012-05-21 10:04:36 (EDT)
committer mgolubev2012-05-21 10:04:36 (EDT)
commitb866ae53b64b42cb7ed0bb59e76baab7f8990fd9 (patch)
tree6ec1701b215beccd6637da04e07daf5496da0b8e
parenta1a6d493daeec629abc654fb2a65222b886927b3 (diff)
downloadorg.eclipse.gmf-tooling-b866ae53b64b42cb7ed0bb59e76baab7f8990fd9.zip
org.eclipse.gmf-tooling-b866ae53b64b42cb7ed0bb59e76baab7f8990fd9.tar.gz
org.eclipse.gmf-tooling-b866ae53b64b42cb7ed0bb59e76baab7f8990fd9.tar.bz2
removed unnecessary filter
-rw-r--r--plugins/org.eclipse.gmf.bridge/transforms/Palette.qvto7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/org.eclipse.gmf.bridge/transforms/Palette.qvto b/plugins/org.eclipse.gmf.bridge/transforms/Palette.qvto
index a54c0ab..7c5364d 100644
--- a/plugins/org.eclipse.gmf.bridge/transforms/Palette.qvto
+++ b/plugins/org.eclipse.gmf.bridge/transforms/Palette.qvto
@@ -22,12 +22,9 @@ modeltype GMFGEN uses gmfgen('http://www.eclipse.org/gmf/2009/GenModel');
-- Palette
--
-mapping GMFMAP::CanvasMapping::palette() : GMFGEN::Palette
-when {
- not self.palette.oclIsUndefined();
-}
+mapping GMFMAP::CanvasMapping::palette() : GMFGEN::Palette
{
- var paletteItems : Sequence(GMFGEN::ToolGroupItem) := self.palette.tools.map paletteEntry();
+ var paletteItems := self.palette.tools.map paletteEntry();
var topLevelTools := paletteItems->reject(e | e.oclIsKindOf(GMFGEN::ToolGroup));
if topLevelTools->notEmpty() then {