Skip to main content



      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
Eclipse UserFriend
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] by 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: Sun Jul 13 12:37:54 EDT 2025

Powered by FUDForum. Page generated in 0.03311 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top