Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 49892

Summary: [History View] Can't select words by doubleclick in CVS Resource History Comment Viewer
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: CVSAssignee: platform-cvs-inbox <platform-cvs-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: n.a.edgar
Version: 3.0   
Target Milestone: 3.3 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2004-01-13 04:43:59 EST
I sometimes want to copy a bug number from the lower-right 'Comment Viewer' of
the CVS Resource History view. Unfortunately, doubleclicking the word doesn't
select it.
Comment 1 Markus Keller CLA 2007-01-16 13:30:15 EST
The fix is trivial:

In CVSHistoryPage#createText(SashForm), line 207, please insert either:

		result.getTextWidget().setDoubleClickEnabled(true);

or:

		result.setTextDoubleClickStrategy(
				new DefaultTextDoubleClickStrategy(),
				IDocument.DEFAULT_CONTENT_TYPE);
		result.activatePlugins();

The latter version is the more "official" way, but currently suffers from bug 5138 (like all text editors).
Comment 2 Michael Valenta CLA 2007-01-16 15:45:56 EST
Thanks for the info. Fixed in HEAD. 
Comment 3 Michael Valenta CLA 2007-01-18 14:54:31 EST
*** Bug 128876 has been marked as a duplicate of this bug. ***
Comment 4 Michael Valenta CLA 2007-02-06 09:57:56 EST
Verified using I20070206-0010