Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKen Ryall2007-02-09 02:14:55 +0000
committerKen Ryall2007-02-09 02:14:55 +0000
commitd26afe3167719c14e814278cc024b575e48c83c3 (patch)
treefc8c5739d9328b27e597edf87b13290eec97e67f /core
parentaf681ae7a2469b1b82daa06471ac28f199a079db (diff)
downloadorg.eclipse.cdt-d26afe3167719c14e814278cc024b575e48c83c3.tar.gz
org.eclipse.cdt-d26afe3167719c14e814278cc024b575e48c83c3.tar.xz
org.eclipse.cdt-d26afe3167719c14e814278cc024b575e48c83c3.zip
Prevent the project from being deleted while running.
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java
index 5f33cdb3ff4..30ff327eb4e 100644
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java
+++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2005, 2006 QNX Software Systems and others.
+ * Copyright (c) 2000, 2005, 2007 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* QNX Software Systems - Initial API and implementation
+ * Nokia ( Warren Paul ) - Prevent the project from being deleted while running.
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
@@ -122,6 +123,8 @@ public class BinaryRunner {
}
};
runner.setPriority(Job.LONG);
+ // Prevent user from deleting the project while we're running
+ runner.setRule(cproject.getProject());
runner.schedule();
}

Back to the top