| Summary: | ICElement items for files and folders in project explorer should have project nature property for creating context menus | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | John Eblen <jdeblen1> |
| Component: | cdt-core | Assignee: | Project Inbox <cdt-core-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | Doug Schaefer <cdtdoug> |
| Severity: | normal | ||
| Priority: | P3 | CC: | beth, eclipse.sprigogin, g.watson, jeblen, roland |
| Version: | 8.1.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
John Eblen
CContainer doesn't have to have the projectNature property itself, it just has to be adaptable to IFolder. This bug applies to all ICElement objects representing files and folders. I changed the title accordingly. Such objects are adaptable to IResource, so it is simple to find the project nature. Specifically, use the "adapt" option for the org.eclipse.ui.menus extension point and adapt it to org.eclipse.core.resources.IResource prior to testing the project nature. You can also use the IAdaptable interface to adapt an element in code. Since there is a reasonable and simple solution to this problem, I'll mark this bug as "Resolved" and "Invalid". |