summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2016-02-02 16:20:39 -0500
committerKarsten Thoms2016-02-02 16:20:39 -0500
commit150b45aeb4a32f2a1a648f23203d0b5cd49aab79 (patch)
treef53ff7e2e4fa7d327ccfd2e2a3c4d91d930da41c
parentc9519b7ce570dd1213b9b3e15fa31174e10f398a (diff)
downloadorg.eclipse.xpand-150b45aeb4a32f2a1a648f23203d0b5cd49aab79.zip
org.eclipse.xpand-150b45aeb4a32f2a1a648f23203d0b5cd49aab79.tar.gz
org.eclipse.xpand-150b45aeb4a32f2a1a648f23203d0b5cd49aab79.tar.xz
[480631] Adding filtering of call stack elements to ElementAdapter
Change-Id: I5ee788951d83a615e4418a485fb94fe901cb7801 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
-rw-r--r--plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/expression/debug/ExpressionElementAdapter.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/expression/debug/ExpressionElementAdapter.java b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/expression/debug/ExpressionElementAdapter.java
index eee72a9..d0866cb 100644
--- a/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/expression/debug/ExpressionElementAdapter.java
+++ b/plugins/org.eclipse.xtend/src/org/eclipse/internal/xtend/expression/debug/ExpressionElementAdapter.java
@@ -113,6 +113,16 @@ public class ExpressionElementAdapter implements ElementAdapter {
return result;
}
+
+ /**
+ * @since 2.2
+ */
+
+ public boolean shallAddToCallStack(Object element) {
+ if( element instanceof FeatureCall ) return false;
+
+ return true;
+ }
public SyntaxElement createElement(final Object element) {
final SyntaxElement to = pres.getStartPresentation((ISyntaxElement) element, context);
@@ -308,11 +318,4 @@ public class ExpressionElementAdapter implements ElementAdapter {
}
}
- /**
- * @since 2.2
- */
- public boolean shallAddToCallStack(Object element) {
- return true;
- }
-
}