commit | f29b23f5d865e5d3f79c12276c0dfa69a0de80fd | [log] [tgz] |
---|---|---|
author | David Morgan Spencer Savage <dsavage@apache.org> | Mon Aug 09 16:27:27 2010 +0000 |
committer | David Morgan Spencer Savage <dsavage@apache.org> | Mon Aug 09 16:27:27 2010 +0000 |
tree | a05134e12917d5cc0f4e4616cf18c239edf97c17 | |
parent | b89eb00672fa5b5cc62b7a7b702b4091b0eab156 [diff] |
sync supported fixes with actual fixes and add comment about unhandled case git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@983714 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/eclipse/ui/src/org/apache/felix/sigil/eclipse/ui/internal/quickfix/ImportQuickFixProcessor.java b/sigil/eclipse/ui/src/org/apache/felix/sigil/eclipse/ui/internal/quickfix/ImportQuickFixProcessor.java index c2b0aa1..dee8516 100644 --- a/sigil/eclipse/ui/src/org/apache/felix/sigil/eclipse/ui/internal/quickfix/ImportQuickFixProcessor.java +++ b/sigil/eclipse/ui/src/org/apache/felix/sigil/eclipse/ui/internal/quickfix/ImportQuickFixProcessor.java
@@ -57,10 +57,11 @@ { switch (problemId) { - case IProblem.ImportNotFound: case IProblem.ForbiddenReference: - case IProblem.NotVisibleType: + case IProblem.ImportNotFound: + case IProblem.IsClassPathCorrect: case IProblem.UndefinedType: + case IProblem.UndefinedName: return true; default: return false; @@ -166,6 +167,8 @@ if (selectedNode == null) return; + // check QualifiedName for search results as well - + // happens if import package is already added but exported package has been removed if (selectedNode instanceof ClassInstanceCreation) { ClassInstanceCreation c = (ClassInstanceCreation) selectedNode;