diff --git a/team/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/Utils.java b/team/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/Utils.java index e74ea95794b..0085cd4348b 100644 --- a/team/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/Utils.java +++ b/team/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/Utils.java @@ -555,7 +555,7 @@ public static void initAction(IAction a, String prefix, ResourceBundle bundle, S descriptionKey = prefix + descriptionKey; } String s = null; - if(bindings != null) { + if (bindings != null) { s = NLS.bind(getString(labelKey, bundle), bindings); } else { s = getString(labelKey, bundle); @@ -570,20 +570,14 @@ public static void initAction(IAction a, String prefix, ResourceBundle bundle, S a.setDescription(s); String relPath = getString(imageKey, bundle); if (relPath != null && !relPath.equals(imageKey) && relPath.trim().length() > 0) { - String dPath; String ePath; if (relPath.contains("/")) { //$NON-NLS-1$ String path = relPath.substring(1); - dPath = 'd' + path; ePath = 'e' + path; } else { - dPath = "dlcl16/" + relPath; //$NON-NLS-1$ ePath = "elcl16/" + relPath; //$NON-NLS-1$ } - ImageDescriptor id = TeamImages.getImageDescriptor(dPath); - if (id != null) - a.setDisabledImageDescriptor(id); - id = TeamUIPlugin.getImageDescriptor(ePath); + ImageDescriptor id = TeamImages.getImageDescriptor(ePath); if (id != null) a.setImageDescriptor(id); }