Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-11-11 20:15:32 +0000
committerMichael Valenta2004-11-11 20:15:32 +0000
commit86c89224f7239f8b50c5079588ab2bd61dc75432 (patch)
tree002d6e52d24af461de7a831959b740b68a157fa2 /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java
parentbcc4688364e0768d75cff2e5fb3dac53e60c3da9 (diff)
downloadeclipse.platform.team-86c89224f7239f8b50c5079588ab2bd61dc75432.tar.gz
eclipse.platform.team-86c89224f7239f8b50c5079588ab2bd61dc75432.tar.xz
eclipse.platform.team-86c89224f7239f8b50c5079588ab2bd61dc75432.zip
Bug 78303 [Decorators] Workspace is closed exception on shutdown
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java
index ec06a3ee4..1408a89f2 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java
@@ -13,6 +13,7 @@ package org.eclipse.team.internal.ccvs.ui;
import java.text.SimpleDateFormat;
import java.util.*;
+
import org.eclipse.core.resources.*;
import org.eclipse.core.runtime.*;
import org.eclipse.jface.preference.IPreferenceStore;
@@ -32,6 +33,7 @@ import org.eclipse.team.internal.core.ExceptionCollector;
import org.eclipse.team.ui.TeamUI;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.themes.ITheme;
+import org.osgi.framework.Bundle;
public class CVSLightweightDecorator extends LabelProvider implements ILightweightLabelDecorator, IResourceStateChangeListener, IPropertyChangeListener {
@@ -166,6 +168,13 @@ public class CVSLightweightDecorator extends LabelProvider implements ILightweig
cvsDecoration.apply(decoration);
} catch(CVSException e) {
handleException(e);
+ } catch (IllegalStateException e) {
+ // This is thrown by Core if the workspace is in an illegal state
+ // If we are not active, ignore it. Otherwise, propogate it.
+ // (see bug 78303)
+ if (Platform.getBundle(CVSUIPlugin.ID).getState() == Bundle.ACTIVE) {
+ throw e;
+ }
}
}

Back to the top