| Summary: | edc - "Max Length…" context menu item does not appear once EDC is started | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Kirk Beitz <kirk.beitz> | ||||
| Component: | cdt-debug-edc | Assignee: | Ken Ryall <ken.ryall> | ||||
| Status: | RESOLVED WONTFIX | QA Contact: | Ken Ryall <ken.ryall> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | cdtdoug | ||||
| Version: | 7.0.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Kirk Beitz
a couple of comments on the fix:
return DebugUIPlugin.getDefault().getPreferenceStore()
.getInt(IDebugUIConstants.PREF_MAX_DETAIL_LENGTH);
the solution above (part of the patch) causes access restriction due to org.eclipse.debug.internal.ui.DebugUIPlugin being .internal. … a problem obviously solved in the patch with the @SuppressWarnings("restriction") .
i tried to avoid the access restriction with the following two alternate solutions:
[a] return EDCDebugUI.getDefault().getPreferenceStore()
.getInt(IDebugUIConstants.PREF_MAX_DETAIL_LENGTH);
[b] IPreferencesService prefs = Platform.getPreferencesService();
return prefs.getInt(EDCDebugger.PLUGIN_ID,
IDebugUIConstants.PREF_MAX_DETAIL_LENGTH,
256, null);
but the first causes a circular dependency, as it causes .edc to depend upon .edc.ui, which already has a dependency in the other direction.
and the second simply doesn't work, presumably due to the plugin-id not being identical.
also, this patch is merely "good enough" in that it provides the user an imperfect mechanism to solve this problem. the flaws now exposed:
- the dialog states it will treat 0 as "unbounded", but AbstractStringFormatter
does not interpret 0 in this way. it basically just skips the read.
implementing it as a completely unbounded read would certainly be easy enough.
i'm just not certain that i agree that the unbounded option is a good idea.
- the max value ends up getting used for smart-formatted strings for edc string
variables … but if the user changes the value, it does not take hold until
the next time the variable view is opened by edc for use.
- the max value doesn't immediately cause the details pane to be changed;
the user has to click away and come back for it to be used.
to move on to other more important matters, i'm inclined to commit this patch as is and deal with the other three issues as lower-priority/lower-severity issues at a later date.
feedback welcome.
comment #1 really applies more specifically to Bug 328190 david dubrow had some comments on this patch, and i am trying to re-work it a bit. i think i've also discovered a fix for the following two problems: - the max value ends up getting used for smart-formatted strings for edc string variables … but if the user changes the value, it does not take hold until the next time the variable view is opened by edc for use. - the max value doesn't immediately cause the details pane to be changed; the user has to click away and come back for it to be used. hope to have an updated patch anon. (this is part of a batch change) The Eclipse CDT EDC (https://wiki.eclipse.org/CDT/cdt-debug-edc) is now obsolete and has not had any active development since 2011. Therefore the still open bugs are being marked as wontfix. The git repo for the project still exists for posterity at https://git.eclipse.org/c/cdt/org.eclipse.cdt.edc.git/ |