aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnjeza2011-04-14 12:29:44 (EDT)
committerIgor Fedorenko2011-04-18 20:10:38 (EDT)
commit175da5ea95f3be06087c5c4959b9f86f5b880f42 (patch)
tree00fc4bb1d650b7676ce65ad753bbd1b771e001d6
parent1b119201a495593177a5cfd729befaaddcc67085 (diff)
downloadm2e-core-175da5ea95f3be06087c5c4959b9f86f5b880f42.zip
m2e-core-175da5ea95f3be06087c5c4959b9f86f5b880f42.tar.gz
m2e-core-175da5ea95f3be06087c5c4959b9f86f5b880f42.tar.bz2
M2e Performance - Project Refresh Job
Signed-off-by: snjeza <snjezana.peco@redhat.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
index 246b0c7..fce9520 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java
@@ -26,6 +26,7 @@ import org.eclipse.core.resources.IResourceChangeEvent;
import org.eclipse.core.resources.IResourceChangeListener;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.IResourceDeltaVisitor;
+import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
@@ -122,6 +123,10 @@ public class ProjectRegistryRefreshJob extends Job implements IResourceChangeLis
// IResourceChangeListener
public void resourceChanged(IResourceChangeEvent event) {
+ IWorkspace workspace = ResourcesPlugin.getWorkspace();
+ if (workspace != null && workspace.isAutoBuilding()) {
+ return;
+ }
boolean offline = mavenConfiguration.isOffline();
boolean updateSnapshots = false;