Bug 308640 - "Run Last Make Target" feature does not work unless used from context menu first
Summary: "Run Last Make Target" feature does not work unless used from context menu first
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-09 09:34 EDT by Andrew Gvozdev CLA
Modified: 2010-04-12 18:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gvozdev CLA 2010-04-09 09:34:13 EDT
"Run Last Make Target" feature does not work in following scenario:
- Open a new eclipse session
- In Make Targets View expand project clicking on '+' sign. (Be careful *not* to select a project or a folder)
- Run a Make Target with double-click
- Use F9. The last target is not run. F9 starts working only after context menu was used or project/folder was selected.
Comment 1 Axel Mueller CLA 2010-04-12 07:54:03 EDT
I have noticed this problem when I created the original patch. However, I was not able to fix it. 
The "Run Last Make Target" handler is only visible under certain conditions defined in plugin.xml. When I remember correctly (I do not have the source code right now) the handler is only visible when a C/C++ project, a folder or a file is selected. Perhaps we should remove this filter? But I not sure about the side effects.
Comment 2 Andrew Gvozdev CLA 2010-04-12 18:19:44 EDT
It appears that we need to add IMakeTarget to the enablement list. Fixed on HEAD (7.0).