Community
Participate
Working Groups
N20101218-2000 The CVS Commit dialog uses a wrong comment after I've applied a spelling quick fix. Steps: - open Commit dialog - type "Changed startegy." - put caret into "startegy" - press Ctrl+1, Enter => "strategy" is correctly spelled in the dialog, but when I click the Finish button, the version with the spelling error is committed.
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.