|
From: <mir...@us...> - 2006-08-23 19:41:28
|
Revision: 1583 Author: mirkostocker Date: 2006-08-23 12:41:20 -0700 (Wed, 23 Aug 2006) ViewCVS: http://svn.sourceforge.net/rubyeclipse/?rev=1583&view=rev Log Message: ----------- Double-clicking on an entry in the testunit-hierarchy didn't highlight the last character of the name. I'd like to write a test for this but I'm not sure how, if somebody has an advice... Modified Paths: -------------- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/util/PositionBasedEditorOpener.java Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/util/PositionBasedEditorOpener.java =================================================================== --- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/util/PositionBasedEditorOpener.java 2006-08-21 12:36:33 UTC (rev 1582) +++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/util/PositionBasedEditorOpener.java 2006-08-23 19:41:20 UTC (rev 1583) @@ -28,7 +28,7 @@ IDocument document = editor.getDocumentProvider().getDocument(editor.getEditorInput()); int start = position.getStartOffset(); int end = position.getEndOffset(); - editor.selectAndReveal(start, end-start); + editor.selectAndReveal(start, end-start+1); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |