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

Bug 346727

Summary: GUI : java text editor : text color bug
Product: [Eclipse Project] JDT Reporter: relliksmaps
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: minor    
Priority: P3 CC: daniel_megert
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description relliksmaps CLA 2011-05-20 12:06:51 EDT
Build Identifier: 20100917-0705

colors error on the field if one line is commented by adding a x// at the begining ex :
from :
	private Text       textEdit;
to :
x//	private Text       textEdit;

this should
1) show an error for the x (OK)
2)ignore the rest of the line because of commented (NO)
=> textEdit stays in blue text as a var, instead of green as commented code
(but is treated as commented code correctly)

sincerely


Reproducible: Always

Steps to Reproduce:
1.set a variable in the class
private Text       textEdit;

2.add x//
x//	private Text       textEdit;

this should
* show an error for the x (OK)
* ignore the rest of the line because of commented (NO)

=> textEdit stays in blue text as a var, instead of green as commented code
(but is treated as commented code correctly)
Comment 1 Dani Megert CLA 2011-05-23 03:10:38 EDT
This works for me using 3.7 RC2.

Note that the 'textEdit' coloring can be delayed a bit if the file is big and the AST computation takes longer.