Revert "Bug 440095 - [Contributions] Tooltips for command"
This reverts commit 255276b8619c399eda89ee5e77cc8a51a9197f49.
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/menus/CommandContributionItem.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/menus/CommandContributionItem.java
index 3a5bfe3..6c38558 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/menus/CommandContributionItem.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/menus/CommandContributionItem.java
@@ -573,16 +573,10 @@
ToolItem item = (ToolItem) widget;
String text = label;
- String tooltip = label;
-
if (text == null) {
if (command != null) {
try {
text = command.getCommand().getName();
- tooltip = command.getCommand().getDescription();
- if (tooltip == null || tooltip.trim().length() == 0) {
- tooltip = text;
- }
} catch (NotDefinedException e) {
StatusManager.getManager().handle(
StatusUtil.newStatus(IStatus.ERROR,
@@ -597,7 +591,7 @@
item.setText(text);
}
- String toolTipText = getToolTipText(tooltip);
+ String toolTipText = getToolTipText(text);
item.setToolTipText(toolTipText);
if (item.getSelection() != checkedState) {