Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370592 - [Compatibility] In CDT, the Build and Manage config buttons are disabled when editor has focus
Summary: [Compatibility] In CDT, the Build and Manage config buttons are disabled when...
Status: CLOSED DUPLICATE of bug 361562
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-03 13:13 EST by Marc-André Laperle CLA
Modified: 2012-03-07 04:57 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2012-02-03 13:13:29 EST
Using Build id: 20120202-1513 (Juno M5 C/C++)

1. Create a C++ project, Hello world
2. With the focus on the editor and no text selected, the Manage configurations button (looks like a compass) and the Build active configuration button (hammer) are disabled in the window toolbar

If text is selected, then the buttons are enabled.

It works correctly with Indigo SR2-RC2.
Comment 1 Remy Suen CLA 2012-02-06 13:39:52 EST
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...
Comment 2 Remy Suen CLA 2012-02-06 14:06:18 EST
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
Comment 3 Remy Suen CLA 2012-02-08 11:10:40 EST

*** This bug has been marked as a duplicate of bug 361562 ***