| Summary: | [Contributions] java.lang.IllegalArgumentException in CustomizePerspectiveDialog | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Alexander Mising name <hawkap> |
| Component: | UI | Assignee: | Andrey Loskutov <loskutov> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | hawkap, Lars.Vogel, loskutov, pwebster |
| Version: | 3.6.1 | ||
| Target Milestone: | 4.5 M7 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://git.eclipse.org/r/41385 https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=320ca4a5621e7f43e1687c3d5be33e4c1106281e https://git.eclipse.org/r/45858 https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=8916639c1ee72656689304d704ec77ce854b3f4b |
||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 420956 | ||
|
Description
Alexander Mising name
Problem is that CustomizePerspectiveDialog could not handle items which tooltip=null.
But tooltip could be set to null in ActionContributionItem (line 807-813).
// if the text is showing, then only set the tooltip if
// different
if (!showText || toolTip != null && !toolTip.equals(text)) {
ti.setToolTipText(toolTip);
} else {
ti.setToolTipText(null);
}
Scenarios to reproduce: a) 1)Add item with icon 2)Set mode to "FORCE_TEXT" 3)Empty tooltip, or tooltip==label open Window->Customize Perspective.. and then hover mouse under above action item. b) Just add item without icon and without mode "FORCE_TEXT", but with tooltip==label open Window->Customize Perspective.. and then hover mouse under above action item. workaround is to have tooltip different from label. But CustomizePerspectiveDialog shows tooltip text as label. New Gerrit change created: https://git.eclipse.org/r/41385 Gerrit change https://git.eclipse.org/r/41385 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=320ca4a5621e7f43e1687c3d5be33e4c1106281e . New Gerrit change created: https://git.eclipse.org/r/45858 Gerrit change https://git.eclipse.org/r/45858 was merged to [R4_4_maintenance]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=8916639c1ee72656689304d704ec77ce854b3f4b |