Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-12-18 21:24:17 +0000
committerMichael Valenta2002-12-18 21:24:17 +0000
commit6e95212da73b7f00ac595771ca03a69e419e4d3b (patch)
tree0ceba8ac2a71f66386ad93dc3b7c3ad26de55bb2
parente4d0c9cddb38e4716fd91d84f68bb9b8629d8780 (diff)
downloadeclipse.platform.team-6e95212da73b7f00ac595771ca03a69e419e4d3b.tar.gz
eclipse.platform.team-6e95212da73b7f00ac595771ca03a69e419e4d3b.tar.xz
eclipse.platform.team-6e95212da73b7f00ac595771ca03a69e419e4d3b.zip
28523: Deleted files in sync view have no decoration or description
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/CVSCatchupReleaseViewer.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/CVSCatchupReleaseViewer.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/CVSCatchupReleaseViewer.java
index 5ee14d424..03ea57e92 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/CVSCatchupReleaseViewer.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/CVSCatchupReleaseViewer.java
@@ -290,15 +290,13 @@ public class CVSCatchupReleaseViewer extends CatchupReleaseViewer {
ITeamNode node = (ITeamNode)element;
IResource resource = node.getResource();
-
- if (! resource.exists())
- return label;
-
- // use the default text decoration preferences
- Decoration decoration = new Decoration();
- CVSLightweightDecorator.decorateTextLabel(resource, decoration, false /*don't show dirty*/, false /*don't show revisions*/);
- label = decoration.prefix + label + decoration.suffix;
+ if (resource.exists()) {
+ // use the default text decoration preferences
+ Decoration decoration = new Decoration();
+ CVSLightweightDecorator.decorateTextLabel(resource, decoration, false /*don't show dirty*/, false /*don't show revisions*/);
+ label = decoration.prefix + label + decoration.suffix;
+ }
if (CVSUIPlugin.getPlugin().getPreferenceStore().getBoolean(ICVSUIConstants.PREF_SHOW_SYNCINFO_AS_TEXT)) {
int syncKind = node.getKind();

Back to the top