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

Bug 368764

Summary: [syntax highlighting] Keywords excluding return are always bold
Product: [Eclipse Project] JDT Reporter: Denis Davydov <davydden>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, remy.suen
Version: 3.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
screenshot of the problem none

Description Denis Davydov CLA 2012-01-16 14:55:29 EST
Build Identifier: Version: Indigo Service Release 1 Build id: 20110916-0149

in Preferences -> Java -> Editor -> Syntax Coloring 
the Java-> Keyword exluding return -> bold does not have an effect to final view, which is always bold. Nevertheless, a preview shows correctly.

Reproducible: Always

Steps to Reproduce:
1. Go to Preferences -> Java -> Editor -> Syntax Coloring
2. Find Java-> Keyword exluding return
3. Uncheck bold
4. Notice that Preview is ok. Click "Apply"/"Ok".
5. Editor is still in bold.
Comment 1 Remy Suen CLA 2012-01-16 16:03:55 EST
Java editor bugs go to JDT/Text.
Comment 2 Dani Megert CLA 2012-01-17 04:53:54 EST
I cannot reproduce this using Eclipse SDK 3.7.1
http://download.eclipse.org/eclipse/downloads/drops/R-3.7.1-201109091335/index.php
or 3.8 M4:
http://download.eclipse.org/eclipse/downloads/drops/S-3.8M4-201112091447/index.php

with this code snippet:

class A {
	
	int foo() {
		return 1;
	}
}


If you can reproduce with one of those builds then please provide more detailed steps.
Comment 3 Denis Davydov CLA 2012-01-17 05:06:42 EST
Created attachment 209609 [details]
screenshot of the problem

screenshot of the problem
Comment 4 Denis Davydov CLA 2012-01-17 05:07:57 EST
(In reply to comment #2)
> I cannot reproduce this using Eclipse SDK 3.7.1
> http://download.eclipse.org/eclipse/downloads/drops/R-3.7.1-201109091335/index.php
> or 3.8 M4:
> http://download.eclipse.org/eclipse/downloads/drops/S-3.8M4-201112091447/index.php
> 
> with this code snippet:
> 
> class A {
> 
>     int foo() {
>         return 1;
>     }
> }
> 
> 
> If you can reproduce with one of those builds then please provide more detailed
> steps.

Can you please try it with this release:

http://eclipse.org/downloads/packages/eclipse-ide-parallel-application-developers-includes-incubating-components/indigosr1

p/s/ I attached a screen-shot.
Comment 6 Dani Megert CLA 2012-01-17 05:23:01 EST
(In reply to comment #3)
> Created attachment 209609 [details]
> screenshot of the problem

The editor in the picture isn't a Java editor.
Comment 7 Denis Davydov CLA 2012-01-17 05:28:07 EST
(In reply to comment #6)
> (In reply to comment #3)
> > Created attachment 209609 [details]
> > screenshot of the problem
> 
> The editor in the picture isn't a Java editor.

Sorry, that's my mistake. I though Eclipse does not distinguish between Java and C and applied the same rules. So I actually was changing it in the wrong place.

Can you please delete this bug?
Comment 8 Dani Megert CLA 2012-01-17 05:30:29 EST
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to bug 368764 comment 7)
> > > Created attachment 209609 [details]
> > > screenshot of the problem
> > 
> > The editor in the picture isn't a Java editor.
> 
> Sorry, that's my mistake. I though Eclipse does not distinguish between Java
> and C and applied the same rules. So I actually was changing it in the wrong
> place.

Some settings are shared (see General > Editors > Text Editors pref page).


> Can you please delete this bug?
I've marked it as 'INVALID' as we don't delete bugs.