| Summary: | [StyledText] StyledText.setTextLimit does not apply to append | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Gary Gregory <ggregory> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | Felipe Heidrich <eclipse.felipe> |
| Severity: | normal | ||
| Priority: | P3 | CC: | Michal.Tkacz, pavery, snorthov |
| Version: | 3.0 | Keywords: | triaged |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
|
Description
Gary Gregory
Honestly, I'm not sure if APIs such as StyledText#setText() and StyledText#append() should be subject to text limit. The behavior is quite inconsistent across platforms: StyledText limits: typing doesn't limit: paste, setText, append, replaceTextRange to reset = use -1 (undoc) Text (SINGLE AND MULTI) - Windows limits: typing, paste, append doesn't limit: setText to reset = use Text.LIMIT (doc) Combo - Windows limits: typing, paste, doesn't limit: setText, add to reset = use Combo.LIMIT (undoc) Text SINGLE - GTK limits: typing, paste, append, setText doesn't limit: nothing Text MULTI - GTK (NOT IMPLEMENT, NO GTK API) limits: nothing doesn't limit: setText, append, typing, paste Combo - GTK limits: typing, paste, setText, add doesn't limit: nothing Text (SINGLE AND MULTI) - Motif limits: typing, paste doesn't limit: setText, append Combo - Motif limits: typing, paste doesn't limit: setText, add Text (SINGLE AND MULTI) - Carbon limits: typing, paste (bug: paste more than the limit, delete key stop working) doesn't limit: setText, append Combo - Carbon (NOT IMPLEMENT) limits: nothing doesn't limit: setText, add, typing, paste SN to determine the right behaviour and FH to implement it. We have the same problem with StyledText and paste. The problem still exists in 3.3M3 (and possibly 3.3M5 as well) if you try to paste more text than allowed (tested on Windows). Please check the other platforms again. The limit should be respected. (In reply to comment #5) > The limit should be respected. It should be respect in all cases (setText, append, typing, paste) ? Yes. Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info. This is a one-off bulk update. (The last one in the triage migration). Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process: https://wiki.eclipse.org/SWT/Devel/Triage See Bug 518478 for details. Tag for notification/mail filters: @TriageBulkUpdate This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |