Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-03-23 21:50:39 +0000
committerMichael Valenta2004-03-23 21:50:39 +0000
commit3a83f1226d1de6f55e38d40c5ee54d00dba74c1b (patch)
tree4377304b2694886696e0995b3f1063120172063d
parentc75a2b44abc7c20c4d78aeaed77b7ff20a9e5390 (diff)
downloadeclipse.platform.team-3a83f1226d1de6f55e38d40c5ee54d00dba74c1b.tar.gz
eclipse.platform.team-3a83f1226d1de6f55e38d40c5ee54d00dba74c1b.tar.xz
eclipse.platform.team-3a83f1226d1de6f55e38d40c5ee54d00dba74c1b.zip
Add handling for deleted projects
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTeamProvider.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTeamProvider.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTeamProvider.java
index cf8f44334..55801f90a 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTeamProvider.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTeamProvider.java
@@ -1415,8 +1415,8 @@ public class CVSTeamProvider extends RepositoryProvider {
* @return boolean
*/
public boolean isWatchEditEnabled() throws CVSException {
+ IProject project = getProject();
try {
- IProject project = getProject();
String property = (String)project.getSessionProperty(WATCH_EDIT_PROP_KEY);
if (property == null) {
property = project.getPersistentProperty(WATCH_EDIT_PROP_KEY);
@@ -1430,8 +1430,12 @@ public class CVSTeamProvider extends RepositoryProvider {
}
return Boolean.valueOf(property).booleanValue();
} catch (CoreException e) {
- throw new CVSException(new CVSStatus(IStatus.ERROR, Policy.bind("CVSTeamProvider.errorGettingWatchEdit", project.getName()), e)); //$NON-NLS-1$
+ if (project.exists()) {
+ // We only care if the project still exists
+ throw new CVSException(new CVSStatus(IStatus.ERROR, Policy.bind("CVSTeamProvider.errorGettingWatchEdit", project.getName()), e)); //$NON-NLS-1$
+ }
}
+ return false;
}
public void setWatchEditEnabled(boolean enabled) throws CVSException {

Back to the top