How to change word separator in a TextDoubleClickStrategy [message #660005] |
Wed, 16 March 2011 14:22 |
KHALFAOUI Imen Messages: 9 Registered: April 2010 |
Junior Member |
|
|
Hi, I'm extending Eclipse using the Eclipse plug-in infrastructure, and I've come into a problem:
I implement my own text editor and while executing it:
In editiong text in my Editor, when i double click on a word containing '-' character. the word is incompletely selected certainly because the '-' character is recognized as a word separator. isn't it?
Example:
here a peace of a text displayed in my editor:
When i double click on the second 'a' in "aaa-bb' only "aaa" is selected. I would like te select the all word "aaa-bb". How can i do it?
For information, i use the default text double click strategy:
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
return new DefaultTextDoubleClickStrategy();}
How to change the word separator and add the '-' character?
Thank's in advance.
Imen
[Updated on: Wed, 16 March 2011 14:24] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02876 seconds