Bug 2575 - [JFace Text] BUG - org.eclipse.ui.texteditor inconsistency (1GGLRU6)
Summary: [JFace Text] BUG - org.eclipse.ui.texteditor inconsistency (1GGLRU6)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Claude Knaus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 2310
  Show dependency tree
 
Reported: 2001-10-10 22:39 EDT by Kevin Haaland CLA
Modified: 2002-02-11 06:45 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Haaland CLA 2001-10-10 22:39:05 EDT
An instance of AbstractTextEditor uses an instance of MarkerRulerAction for its vertical ruler behavior.  MarkerRulerAction.getInitialAttribute
adopts the convention that charEnd points to the last character rather than one past the last character.  AbstractTextEditor.gotoMarker
adopts the convention that charEnd points to one past the last character.  Due to this inconsistency, breakpoint-enabled editors made by
subclassing these classes may generate breakpoints that when doubled-clicked, result in the highlighting of the corresponding entire lines
except without the last characters.

AbstractTextEditor, MarkerRulerAction and the API documentation should agree on the semantics of charEnd.

DS (7/10/01 1:37:25 PM)
	Sent email to KH.

DW (7/18/01 8:53:34 AM)
	Moved to ITPUI.
Comment 1 DJ Houghton CLA 2001-10-29 19:01:42 EST
PRODUCT VERSION:
125

Comment 2 Claude Knaus CLA 2002-02-11 06:45:20 EST
fixed > 20020210
charEnd is specified in IMarker as exclusive. 
Changed MarkerRulerAction accordingly.