Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to change word separator in a TextDoubleClickStrategy(TextDoubleClickStrategy)
How to change word separator in a TextDoubleClickStrategy [message #660005] Wed, 16 March 2011 10:22
KHALFAOUI Imen is currently offline 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:
move aaa-bb to cc-ddd

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 10:24]

Report message to a moderator

Previous Topic:Missing files in my plugin cache in org.eclipse.osgi/bundles
Next Topic:Unpack plugin in plugin based product
Goto Forum:
  


Current Time: Thu Jul 31 22:01:57 EDT 2014

Powered by FUDForum. Page generated in 0.01705 seconds