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.
[ BUILD # : 20050315 ] [ JDK VERSION : 1.5.0_02 ] When importing settings from netbeans 4, if you changed the base font, all imported colors turn to black.
I was able to reproduce this issue with the attached config from userdir. Try to import the settings to 4.1dev build, most colors for XML editor are black. Thus it looks as if xml syntax coloring would not work.
Created attachment 20992 [details] Config
I will look at this.
Caused by fix of issue #53996 Particularly: http://www.netbeans.org/source/browse/xml/text-edit/src/org/netbeans/modules/xml/text/syntax/XMLSettingsInitializer.java?logsort=date&search=&hideattic=1&sortby=file&r2=1.17&hidecvsroot=1&diff_format=h&r1=1.16 Hard coded coloring settings cannot be removed yet. Still there is needed to maintain both declarations in XMLSettingsinitializer.java and *_fontsColors.xml files... Reassigning to xml module
I hate the hardcoded settings. Martin, is there in editor a utility method to load the XML file? I guess you need it internally anyway. I'd call it from XML,DTD,CSS,... settings initializers. OSLO reason, I eliminated hardcoded setting because these are not brandable. One cannot brand classes unfortunately. XML files can be branded. MOVED to editor, ideally fix in the editor framework. If it's not possible then please disclose the utility method and return back. Thank you.
We would like to fix this "duality" problem in editor for the next release. (It is too risky thing to do it to nb41) For now, there is no simple utility method for that. You should create your MIMEOptionsFolder and load the settings similarly as in BaseOptions.loadDefaultAbbreviations. I believe this should work. If not, I see the best solution to rollback you changes :-(
*** Issue 57964 has been marked as a duplicate of this issue. ***
Workaround: delete directory %USERPROFILE%\.netbeans\4.1rc\config\Editors\text\xml
*** Issue 59674 has been marked as a duplicate of this issue. ***
How imports 4.1 => 5.0?
Jirko, could you please check whether the 4.1 to 5.0 import works? There has been a lot of changes in the options recently so I guess it could work now.
I checked it and can't say if it's fixed or not because of many exceptions thrown on import of settings which resulted in all editors displaying plain text - no syntax coloring, code completion - simply nothing. I will dig further to find out what's the cause.
Jirka cannot reproduce the issue since there are other problems during imports. So I cannot fix it now, though the issue is already fixed IMHO.
I belive this is fixed already.