Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-04-25 14:53:31 -0400
committerMatthew Piggott2011-04-25 14:53:31 -0400
commitaf734e816b772a32101fc77bc730ad9b15d4adef (patch)
treeadfe66d850e26699ad1faad1f240f94ecc4623b5
parent23159d13ea2403c8e8434903f5df4ada7e125e25 (diff)
downloadm2e-core-af734e816b772a32101fc77bc730ad9b15d4adef.tar.gz
m2e-core-af734e816b772a32101fc77bc730ad9b15d4adef.tar.xz
m2e-core-af734e816b772a32101fc77bc730ad9b15d4adef.zip
Bug 343764 - Project registry maintains deleted projects
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/ProjectRegistryRefreshJob.java8
1 files changed, 4 insertions, 4 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 775e425a..d8c6a6ec 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
@@ -120,10 +120,6 @@ 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 forceDependencyUpdate = false;
@@ -132,6 +128,10 @@ public class ProjectRegistryRefreshJob extends Job implements IResourceChangeLis
if(IResourceChangeEvent.PRE_CLOSE == type || IResourceChangeEvent.PRE_DELETE == type) {
queue(new MavenUpdateRequest((IProject) event.getResource(), offline, forceDependencyUpdate));
} else {
+ IWorkspace workspace = ResourcesPlugin.getWorkspace();
+ if(workspace != null && workspace.isAutoBuilding()) {
+ return;
+ }
// if (IResourceChangeEvent.POST_CHANGE == type)
IResourceDelta delta = event.getDelta(); // workspace delta
IResourceDelta[] projectDeltas = delta.getAffectedChildren();

Back to the top