Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwecai2014-06-13 02:36:48 -0400
committerIgor Fedorenko2014-06-18 22:30:36 -0400
commit7a57822498156259850cd35b3413597245364bd2 (patch)
tree7a847bd97a6e50bac60cb49c5a87e01633401b0b
parent4bc225a66ac0c9402f662734c4e6a5d929b83d58 (diff)
downloadm2e-core-7a57822498156259850cd35b3413597245364bd2.tar.gz
m2e-core-7a57822498156259850cd35b3413597245364bd2.tar.xz
m2e-core-7a57822498156259850cd35b3413597245364bd2.zip
[436679]: ProjectRegistryRefreshJob double work for imported projects
Remove unnecessary refresh request from MavenClaspathContainerInitializer Change-Id: I814d080565d6c61ea6f0a1ceee62650f2900884e Signed-off-by: wecai <wecai@ebay.com>
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerInitializer.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerInitializer.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerInitializer.java
index ab0362ab..f0f5db79 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerInitializer.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/MavenClasspathContainerInitializer.java
@@ -27,10 +27,8 @@ import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.embedder.IMavenConfiguration;
import org.eclipse.m2e.core.internal.IMavenConstants;
import org.eclipse.m2e.core.project.IMavenProjectRegistry;
-import org.eclipse.m2e.core.project.MavenUpdateRequest;
import org.eclipse.m2e.jdt.MavenJdtPlugin;
@@ -54,11 +52,6 @@ public class MavenClasspathContainerInitializer extends ClasspathContainerInitia
} catch(CoreException ex) {
log.error("Exception initializing classpath container " + containerPath.toString(), ex);
}
-
- // force refresh if can't read persisted state
- IMavenConfiguration configuration = MavenPlugin.getMavenConfiguration();
- MavenUpdateRequest request = new MavenUpdateRequest(project.getProject(), configuration.isOffline(), false);
- getMavenProjectManager().refresh(request);
}
}

Back to the top