diff options
| author | Mélanie Bats | 2016-09-29 09:54:33 +0000 |
|---|---|---|
| committer | Mélanie Bats | 2016-09-30 09:31:16 +0000 |
| commit | b692409db20a08a99a4577c2727d00b2a7c631d6 (patch) | |
| tree | 515329c9a1a0ed08a40894c9b78abd777770e470 | |
| parent | f441572d2a498294b0beff852917f4e3225490de (diff) | |
| download | org.eclipse.eef-b692409db20a08a99a4577c2727d00b2a7c631d6.tar.gz org.eclipse.eef-b692409db20a08a99a4577c2727d00b2a7c631d6.tar.xz org.eclipse.eef-b692409db20a08a99a4577c2727d00b2a7c631d6.zip | |
[496058] Add the all semantic elements to the default rules
Handle semantic candidates on group.
Bug: 496058
Change-Id: I9cf3fb06f453b9674427ca30a09483e2fcfc55c0
Signed-off-by: Mélanie Bats <melanie.bats@obeo.fr>
| -rw-r--r-- | plugins/org.eclipse.eef.core/src/org/eclipse/eef/core/internal/EEFViewImpl.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.eef.core/src/org/eclipse/eef/core/internal/EEFViewImpl.java b/plugins/org.eclipse.eef.core/src/org/eclipse/eef/core/internal/EEFViewImpl.java index 66c381dbe..dd4c45431 100644 --- a/plugins/org.eclipse.eef.core/src/org/eclipse/eef/core/internal/EEFViewImpl.java +++ b/plugins/org.eclipse.eef.core/src/org/eclipse/eef/core/internal/EEFViewImpl.java @@ -208,7 +208,11 @@ public class EEFViewImpl implements EEFView { IConsumer<Object> groupConsumer = new IConsumer<Object>() { @Override public void apply(Object value) { - eefGroup.getVariableManager().put(EEFExpressionUtils.SELF, value); + // FIXME We need only one semantic candidate, so we just take the last one available as self + // as we did for the pages just before + for (Object groupSemanticCandidate : Util.asIterable(value, Object.class)) { + eefGroup.getVariableManager().put(EEFExpressionUtils.SELF, groupSemanticCandidate); + } } }; |
