| Summary: | [Compatibility] In CDT, the Build and Manage config buttons are disabled when editor has focus | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Marc-André Laperle <malaperle> |
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | pwebster, remy.suen, yevshif |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Marc-André Laperle
The 'enablesFor' attribute of these contributions all specify '+' which implies a selection of "one or more". So it almost feels like this is working as intended. Perhaps 3.x ignores text selections, will need more poking... I think this is another case of Eclipse 4 having "superior" lazy loading. The enablement code primarily comes from ChangeBuildConfigActionBase's onSelectionChanged(*) method. However, this is not called if the delegate hasn't been instantiated yet. So if you've never actually clicked on the tool item, it would never have been instantiated. On the other hand, if you just click on it once, having a zero-length selection in the text editor will now still keep the tool item enabled. :O *** This bug has been marked as a duplicate of bug 361562 *** |