| Summary: | TextViewer post Selection does not seem to fire if text is changed | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Artur Kronenberg <artur.kronenberg> |
| Component: | Text | Assignee: | Platform-Text-Inbox <platform-text-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, remy.suen |
| Version: | 3.6.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Artur Kronenberg
This works as designed: the post selection listener fires if the selection changed after the given delay. If the selection is the same, then nothing happens. It looks like what you want is to trigger the work after the text has been changed but not on each keystroke. To do that you should use a reconciler. See org.eclipse.jface.text.source.SourceViewerConfiguration.getReconciler(ISourceViewer) for details. You might also want to look at: http://www.eclipse.org/eclipse/platform-text/eclipseCon/2006/texteditorrecipes.zip |