felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsav...@apache.org
Subject svn commit: r983714 - /felix/trunk/sigil/eclipse/ui/src/org/apache/felix/sigil/eclipse/ui/internal/quickfix/ImportQuickFixProcessor.java
Date Mon, 09 Aug 2010 16:27:27 GMT
Author: dsavage
Date: Mon Aug  9 16:27:27 2010
New Revision: 983714

URL: http://svn.apache.org/viewvc?rev=983714&view=rev
Log:
sync supported fixes with actual fixes and add comment about unhandled case

Modified:
    felix/trunk/sigil/eclipse/ui/src/org/apache/felix/sigil/eclipse/ui/internal/quickfix/ImportQuickFixProcessor.java

Modified: felix/trunk/sigil/eclipse/ui/src/org/apache/felix/sigil/eclipse/ui/internal/quickfix/ImportQuickFixProcessor.java
URL: http://svn.apache.org/viewvc/felix/trunk/sigil/eclipse/ui/src/org/apache/felix/sigil/eclipse/ui/internal/quickfix/ImportQuickFixProcessor.java?rev=983714&r1=983713&r2=983714&view=diff
==============================================================================
--- felix/trunk/sigil/eclipse/ui/src/org/apache/felix/sigil/eclipse/ui/internal/quickfix/ImportQuickFixProcessor.java
(original)
+++ felix/trunk/sigil/eclipse/ui/src/org/apache/felix/sigil/eclipse/ui/internal/quickfix/ImportQuickFixProcessor.java
Mon Aug  9 16:27:27 2010
@@ -57,10 +57,11 @@ public class ImportQuickFixProcessor imp
     {
         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 @@ public class ImportQuickFixProcessor imp
         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;



Mime
View raw message