Fix for completion on field names - do not complete 'problem' fields.
authorJan Vrany <jan.vrany@fit.cvut.cz>
Thu, 14 Aug 2014 12:23:54 +0100
changeset 281 200db18cbc2f
parent 280 100db0f8279b
child 282 a3b374e787a3
Fix for completion on field names - do not complete 'problem' fields.
SmallSense__JavaCompletionEngine.st
--- a/SmallSense__JavaCompletionEngine.st	Thu Aug 14 09:28:16 2014 +0100
+++ b/SmallSense__JavaCompletionEngine.st	Thu Aug 14 12:23:54 2014 +0100
@@ -131,7 +131,7 @@
     | binding |
 
     binding := node binding.
-    binding notNil ifTrue:[ 
+    (binding notNil and:[binding problemId ~~ JAVA org eclipse jdt internal compiler lookup ProblemReasons NoError]) ifTrue:[
         binding := binding type.
         binding notNil ifTrue:[ 
             self addMethodsForTypeBinding: binding.
@@ -140,6 +140,7 @@
     ].
 
     "Created: / 13-08-2014 / 21:32:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 14-08-2014 / 11:13:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 completeOnSingleNameReference: node