Author: fbricon
Date: 2011-10-05 17:56:11 -0400 (Wed, 05 Oct 2011)
New Revision: 35400
Modified:
trunk/common/plugins/org.jboss.tools.common.jdt/src/org/jboss/tools/common/jdt/core/buildpath/MaterializeLibraryJob.java
Log:
JBIDE-8972 : refresh the correct project once the jars are copied
Modified:
trunk/common/plugins/org.jboss.tools.common.jdt/src/org/jboss/tools/common/jdt/core/buildpath/MaterializeLibraryJob.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.jdt/src/org/jboss/tools/common/jdt/core/buildpath/MaterializeLibraryJob.java 2011-10-05
21:44:57 UTC (rev 35399)
+++
trunk/common/plugins/org.jboss.tools.common.jdt/src/org/jboss/tools/common/jdt/core/buildpath/MaterializeLibraryJob.java 2011-10-05
21:56:11 UTC (rev 35400)
@@ -83,7 +83,12 @@
processor.execute(javaProject, containerToRemovePath);
}
- javaProject.getProject().refreshLocal(IResource.DEPTH_INFINITE, monitor);
+ //Refresh project
+ IResource resourceToRefresh = libFolder.getProject();
+ if (resourceToRefresh ==null) {
+ resourceToRefresh = ResourcesPlugin.getWorkspace().getRoot();
+ }
+ resourceToRefresh.refreshLocal(IResource.DEPTH_INFINITE, monitor);
return Status.OK_STATUS;
}