Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313610 - Bug in org.eclipse.xtext.example.arithmetics.ui.autoedit.InterpreterAutoEdit
Summary: Bug in org.eclipse.xtext.example.arithmetics.ui.autoedit.InterpreterAutoEdit
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: RC2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-19 15:26 EDT by Harald M CLA
Modified: 2017-09-19 16:14 EDT (History)
1 user (show)

See Also:
sven.efftinge: helios+


Attachments
Patch (1.25 KB, patch)
2010-05-19 15:28 EDT, Harald M CLA
sven.efftinge: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harald M CLA 2010-05-19 15:26:15 EDT
Build Identifier: 

Computation of offset has a bug

*** current:

 int lineStart;
 try {
  lineStart = document.getLineOfOffset(command.offset);
  if (!document.get(lineStart, 3).equals("def")) {

*** fixed:

 int line;
 int lineStart;
 try {
  line = document.getLineOfOffset(command.offset);
  lineStart = document.getLineOffset(line);
  if (!document.get(lineStart, 3).equals("def")) {

Reproducible: Always
Comment 1 Harald M CLA 2010-05-19 15:28:48 EDT
Created attachment 169197 [details]
Patch
Comment 2 Sven Efftinge CLA 2010-05-26 05:17:55 EDT
patch applied, thanks.
Comment 3 Karsten Thoms CLA 2017-09-19 16:14:47 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.