diff options
| author | Zoltan Ujhelyi | 2017-10-13 13:45:35 +0000 |
|---|---|---|
| committer | Zoltan Ujhelyi | 2017-10-17 12:17:33 +0000 |
| commit | 30ed49561558874080fbc1e632ca0987804eb7db (patch) | |
| tree | b74f4c49d4babacc6848ba80e2d972aa341c414a | |
| parent | 05d2412f513cf55d624e35b2d30bc2861ca759f3 (diff) | |
| download | org.eclipse.viatra-30ed49561558874080fbc1e632ca0987804eb7db.tar.gz org.eclipse.viatra-30ed49561558874080fbc1e632ca0987804eb7db.tar.xz org.eclipse.viatra-30ed49561558874080fbc1e632ca0987804eb7db.zip | |
[469149] Allow inverse navigation over EAttributes
Change-Id: Iadc505755eb781f25aa277e1a4d131874599f482
Signed-off-by: Zoltan Ujhelyi <ujhelyiz@incquerylabs.com>
| -rw-r--r-- | query/plugins/org.eclipse.viatra.query.runtime.localsearch/src/org/eclipse/viatra/query/runtime/localsearch/planner/PConstraintInfoInferrer.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/query/plugins/org.eclipse.viatra.query.runtime.localsearch/src/org/eclipse/viatra/query/runtime/localsearch/planner/PConstraintInfoInferrer.java b/query/plugins/org.eclipse.viatra.query.runtime.localsearch/src/org/eclipse/viatra/query/runtime/localsearch/planner/PConstraintInfoInferrer.java index a48ee64d4..bb62ee8f5 100644 --- a/query/plugins/org.eclipse.viatra.query.runtime.localsearch/src/org/eclipse/viatra/query/runtime/localsearch/planner/PConstraintInfoInferrer.java +++ b/query/plugins/org.eclipse.viatra.query.runtime.localsearch/src/org/eclipse/viatra/query/runtime/localsearch/planner/PConstraintInfoInferrer.java @@ -269,9 +269,8 @@ class PConstraintInfoInferrer { hasEOpposite(feature) || (feature instanceof EReference) && ((EReference)feature).isContainment() - || ( // Or indexing is enabled, and the feature can be indexed (it's not a non-well-behaving - // derived feature) and it's a reference TODO this constraint might not be needed. It shall be possible to find elements by an attribute value using the base indexer - useIndex && modelComprehension.representable(feature) && (feature instanceof EReference) + || ( // Indexing is enabled, and the feature can be indexed (not a non-well-behaving derived feature). + useIndex && modelComprehension.representable(feature) )); } |
