PDEX: fix Show Usage window not updating

This commit is contained in:
Jakub Valtar
2016-05-06 19:34:59 +02:00
parent b1eb7bec15
commit 5467d30cf2

View File

@@ -273,8 +273,6 @@ public class PDEX {
// Find binding
IBinding binding = ASTUtils.resolveBinding(name);
this.binding = binding;
if (binding == null) {
editor.statusMessage("Cannot find usages, try to fix errors in your code first",
EditorStatus.ERROR);
@@ -288,6 +286,8 @@ public class PDEX {
// Thread: worker
void findUsageAndUpdateTree(PreprocessedSketch ps, IBinding binding) {
this.binding = binding;
// Get label
String bindingType = "";
switch (binding.getKind()) {