commit | 99e1136dcb722398289683f43d3f46a7f7ceabbb | [log] [tgz] |
---|---|---|
author | mspector <mspector> | Mon Oct 06 09:10:27 2008 +0000 |
committer | mspector <mspector> | Mon Oct 06 09:10:27 2008 +0000 |
tree | d6e0128ec89f56d79f2122714d8f322478b57620 | |
parent | 023e6cef11c7cab1854a831ca99c4aab9c119339 [diff] |
fix field search
diff --git a/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/core/search/matching/MatchLocator.java b/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/core/search/matching/MatchLocator.java index 30c4a22..2fd303a 100644 --- a/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/core/search/matching/MatchLocator.java +++ b/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/core/search/matching/MatchLocator.java
@@ -523,9 +523,9 @@ protected IField createFieldHandle(String simpleTypeName) { Openable openable = this.currentPossibleMatch.openable; IField field; - if (openable instanceof SourceModule) + if (openable instanceof SourceModule) { field = ((SourceModule) openable).getField(simpleTypeName); - if (openable instanceof ExternalSourceModule) { + } else if (openable instanceof ExternalSourceModule) { field = ((ExternalSourceModule) openable).getField(simpleTypeName); } else { field = null;