Skip to main content


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 14:22
KHALFAOUI Imen is currently offline KHALFAOUI ImenFriend
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 14: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 Apr 25 13:28:16 GMT 2024

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

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

Back to the top