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.
Summary: |
FontColor Syntax category selection defaults to whitespace |
Product: |
editor
|
Reporter: |
err <err> |
Component: |
Options | Assignee: |
Jan Jancura <jjancura> |
Status: |
RESOLVED
DUPLICATE
|
|
|
Severity: |
normal
|
|
|
Priority: |
P3
|
|
|
Version: |
6.x | |
|
Hardware: |
All | |
|
OS: |
All | |
|
Issue Type:
|
DEFECT
|
Exception Reporter:
|
|
Bug Depends on: |
|
|
|
Bug Blocks: |
179047
|
|
|
Attachments: |
simple fix
|
Created attachment 95506 [details] simple fix This may only happen if the profile is not the default. Not sure. This can be seen when Font&Color is first selected or when language is changed. This came to my attention by a jVi user who had some jvi navigation fail after changing the font. After discussion he realized that he had changed whitespace size and not the default font, and he thought that was a NB bug. When he changed the default everything was fine. Turns out there have been spuratic reports of this navigation problem for a long time without knowing why, some users fixed it by removing userdir. SyntaxColoringPanel.setCurrentProfile() does lCategories.setSelectedIndex to 0, but then does refreshUI() which does updatePreview() which does preview.setParameters and this ends up firing a property change event which causes whitespace to be selected in category. The attached patch is to ColorModel which is where the preview lives. The patch prevents firing change events while setParameters is running. Notice that the changes are made through an invokeLater.