ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1538213 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/resolve/IvyResolver.java
Date Sat, 02 Nov 2013 16:29:12 GMT
Author: hibou
Date: Sat Nov  2 16:29:12 2013
New Revision: 1538213

URL: http://svn.apache.org/r1538213
Log:
Spell check

Modified:
    ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/resolve/IvyResolver.java

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/resolve/IvyResolver.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/resolve/IvyResolver.java?rev=1538213&r1=1538212&r2=1538213&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/resolve/IvyResolver.java
(original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/resolve/IvyResolver.java
Sat Nov  2 16:29:12 2013
@@ -47,8 +47,8 @@ import org.apache.ivyde.internal.eclipse
 import org.apache.ivyde.internal.eclipse.IvyPlugin;
 import org.apache.ivyde.internal.eclipse.cpcontainer.IvyClasspathUtil;
 import org.apache.ivyde.internal.eclipse.workspaceresolver.WorkspaceResolver;
-import org.eclipse.core.resources.IFolder;
 import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
 import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
@@ -250,7 +250,7 @@ public class IvyResolver {
         if (report.hasError()) {
             IvyDEMessage.verbose("Resolve ended with errors");
         } else {
-            IvyDEMessage.verbose("Resolve successfull");
+            IvyDEMessage.verbose("Resolve successful");
         }
 
         ResolveResult result = new ResolveResult(report);
@@ -378,8 +378,14 @@ public class IvyResolver {
 
         if (numberOfItemsRetrieved > 0) {
             // Only refresh if we actually retrieved a file.
-            IFolder retrieveFolder = project.getFolder(refreshPath);
-            IvyDEMessage.verbose("Refreshing Eclipse folder " + retrieveFolder);
+            IResource retrieveFolder;
+            if (refreshPath.length() == 0) {
+                retrieveFolder = project;
+                IvyDEMessage.verbose("Refreshing Eclipse project " + project.getName());
+            } else {
+                retrieveFolder = project.getFolder(refreshPath);
+                IvyDEMessage.verbose("Refreshing Eclipse folder " + retrieveFolder);
+            }
             RefreshFolderJob refreshFolderJob = new RefreshFolderJob(retrieveFolder);
             refreshFolderJob.schedule();
         }



Mime
View raw message