This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 67420

Summary: Fg color of 'Text' inside Fonts&Colors|Syntax - language Properties cannot be set
Product: utilities Reporter: Max Sauer <msauer>
Component: PropertiesAssignee: Marian Petras <mpetras>
Status: VERIFIED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Max Sauer 2005-10-24 13:03:10 UTC
Foreground color of element 'Text' cannot be set for 'Properties' language
inside Fonts&Colors Sytntax tab. However, it gets changed together with 'Key'
element when its color is changed.

Steps to reproduce:
-------------------
1) Open a properties file with some properties inside
2) Invoke Tools|Options
3) Goto Fonts&Colors|Syntax
4) Choose 'Properties' as language
5) Try to change fg color of 'Text'
--> nothing happens
6) Change fg color of 'Key' element, ie. to red
--> Its color gets changed, however along with 'Text'

[200510231800, JDK 1.5.0_02, solaris 10 / x86]
Comment 1 Jan Jancura 2005-11-07 22:07:55 UTC
Thats properties module issue. properties-text is mapped on something strange -
like whitespace?!?
Comment 2 Marian Petras 2005-12-08 18:22:11 UTC
Changing of "Text" actually works. What is confusing is the name of the category
and the example file displayed in the options dialog.

This issue is compound of two problems:
1) The "Text" string in the example properties file actually represents a key -
it should be either renamed or eliminated.
2) The "Text" category in the options dialog actually represents whitespace
(before the first character of a key) so it needs to be renamed.

Note:
Both of the above changed must be made in module properties/syntax. To fix the
former issue, fix file "PropertiesExample". To fix the latter issue, modify file
"Bundle.properties".
Comment 3 Marian Petras 2005-12-09 16:14:50 UTC
Fixed in the trunk.

I made the changes described above.

Modified files:
    properties/syntax/src/org/netbeans/modules/properties/syntax/:
                                                       PropertiesExample   (1.2)
                                                       Bundle.properties   (1.3)

Diffs:
http://properties.netbeans.org/source/browse/properties/syntax/src/org/netbeans/modules/properties/syntax/PropertiesExample?r1=1.1&r2=1.2&diff_format=u
http://properties.netbeans.org/source/browse/properties/syntax/src/org/netbeans/modules/properties/syntax/Bundle.properties?r1=1.2&r2=1.3&diff_format=u
Comment 4 Max Sauer 2005-12-12 10:25:47 UTC
Verified in 200512111900.