aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2013-06-19 05:00:21 (EDT)
committerDani Megert2013-06-19 05:00:21 (EDT)
commit09ce502a2f46ebc3c3cab6ad538bc431c19eb3db (patch)
treefcf62d3fe583fd470e908643db593442c98cb0cc
parent1f3c74e27e8d2ba7890dd92382c786246462944d (diff)
downloadeclipse.platform.releng-09ce502a2f46ebc3c3cab6ad538bc431c19eb3db.zip
eclipse.platform.releng-09ce502a2f46ebc3c3cab6ad538bc431c19eb3db.tar.gz
eclipse.platform.releng-09ce502a2f46ebc3c3cab6ad538bc431c19eb3db.tar.bz2
Fixed bug 410640: ResourceException from POM checker during copy / paste project
-rw-r--r--bundles/org.eclipse.releng.tools/src/org/eclipse/releng/internal/tools/pomversion/PomVersionErrorReporter.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.releng.tools/src/org/eclipse/releng/internal/tools/pomversion/PomVersionErrorReporter.java b/bundles/org.eclipse.releng.tools/src/org/eclipse/releng/internal/tools/pomversion/PomVersionErrorReporter.java
index 00ec79f..11a354b 100644
--- a/bundles/org.eclipse.releng.tools/src/org/eclipse/releng/internal/tools/pomversion/PomVersionErrorReporter.java
+++ b/bundles/org.eclipse.releng.tools/src/org/eclipse/releng/internal/tools/pomversion/PomVersionErrorReporter.java
@@ -73,10 +73,13 @@ public class PomVersionErrorReporter implements IResourceChangeListener, IEclips
IResource resource = delta.getResource();
switch(resource.getType()) {
case IResource.PROJECT: {
+ if(delta.getKind() == IResourceDelta.REMOVED) {
+ return false;
+ }
//Should we not care about non-plugin projects?
IProject project = (IProject) resource;
try {
- if(project.getDescription().hasNature("org.eclipse.pde.PluginNature")) { //$NON-NLS-1$
+ if(project.isAccessible() && project.getDescription().hasNature("org.eclipse.pde.PluginNature")) { //$NON-NLS-1$
if((delta.getFlags() & IResourceDelta.OPEN) > 0) {
validate(project);
return false;