Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346727 - GUI : java text editor : text color bug
Summary: GUI : java text editor : text color bug
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 12:06 EDT by relliksmaps CLA
Modified: 2011-05-23 03:10 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.