diff options
author | Ken Ryall | 2007-02-09 02:14:55 +0000 |
---|---|---|
committer | Ken Ryall | 2007-02-09 02:14:55 +0000 |
commit | d26afe3167719c14e814278cc024b575e48c83c3 (patch) | |
tree | fc8c5739d9328b27e597edf87b13290eec97e67f /core | |
parent | af681ae7a2469b1b82daa06471ac28f199a079db (diff) | |
download | org.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.java | 5 |
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(); } |