| Summary: | CVS Commit dialog uses wrong comment after spelling quick fix | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Markus Keller <markus.kell.r> | ||||||||
| Component: | CVS | Assignee: | Tomasz Zarna <tomasz.zarna> | ||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||
| Severity: | major | ||||||||||
| Priority: | P3 | CC: | daniel_megert | ||||||||
| Version: | 3.7 | ||||||||||
| Target Milestone: | 3.7 M5 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Markus Keller
Created attachment 186375 [details]
Fix v01
Quick fixes are not caught by ModifyListener added to StyledText widget from dialog's SourceViewer[1]. I guess a listener on underlying document changes may help here. To limit the event traffic I added a check to fire the property change event only when new text differs from old one.
[1] org.eclipse.team.internal.ccvs.ui.CommitCommentArea, fTextField.addModifyListener(this)
Created attachment 186376 [details]
mylyn/context/zip
The patch looks good. Only minor tweaks: I would use 'document' directly instead of calling getDocument() and you need to check that fText can't be null since you now use !old.equals(...). Created attachment 186378 [details]
Fix v02
Updated with Dani's tips.
Fixed in HEAD, available in builds >N20110109-2000. NOTE: The fixed caused a regression (see bug 334756 for details). Verified in I20110124-1800. |