| Summary: | [breakpoints] Show fullpath not working in breakpoints view for other breakpoint type | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Patrick Chuong <pchuong> | ||||||
| Component: | cdt-debug | Assignee: | Patrick Chuong <pchuong> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Ken Ryall <ken.ryall> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | john.cortell, marc.khouzam, pawel.1.piech | ||||||
| Version: | 7.0 | Flags: | marc.khouzam:
review+
john.cortell: review+ |
||||||
| Target Milestone: | 8.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Patrick Chuong
Created attachment 188278 [details]
patch
This patch introduced a property in the breakpoint. Another way is to introduce an interface. But since the SHOW_FULL_PATHS_PREF_KEY perference is internal, I didn't want to go with the interface approach. Infact, the interface would just be a blank interface, as long as the breakpoint implements the new interface, then fullpath action will be enabled.
John, Marc, what do you think?
For more information, you can look at bug 248627 comment 15 (which did not get implemented) and bug 248627 comment 22 (which was implemented). I think the solution makes sense. Comments on the patch: 1- the change should be in ShowFullPathsAction.java instead of ViewFilterAction. 2- ATTR_SUPPORT_FULL_PATHS should have full name e.g. org.eclipse.cdt.... The comment on the new attribute should note that the show full path *action* is always enabled for ICBreakpoints, whether or not the attribute is present. It should also note that the action merely toggles a CDebugModelPresentation attribute, and that presentation may or may not be used for custom breakpoints. In other words, enabling the action alone does not necessarily provide the expected "show full path" behavior for a custom breakpoint. Created attachment 188330 [details]
reworked patch
Thanks for reviewing this patch guys, I have updated the patch with your suggestions. I'll commit the patch after M5 is posted.
Committed to HEAD. *** cdt cvs genie on behalf of pchuong *** Bug 312121 - [breakpoints] Show fullpath not working in breakpoints view for other breakpoint type [*] ICDebugInternalConstants.java 1.8 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/ICDebugInternalConstants.java?root=Tools_Project&r1=1.7&r2=1.8 [*] ShowFullPathsAction.java 1.14 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ShowFullPathsAction.java?root=Tools_Project&r1=1.13&r2=1.14 |