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 141682

Summary: Font & Colors options are empty
Product: platform Reporter: Jana Maleckova <janie>
Component: Data SystemsAssignee: David Simonek <dsimonek>
Status: VERIFIED FIXED    
Severity: blocker CC: anebuzelsky, dsimonek, jtulach, mmirilovic, msauer, ppisl
Priority: P1 Keywords: REGRESSION
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 131951, 142539    
Attachments: screenshot
with better mime-type

Description Jana Maleckova 2008-07-25 14:10:21 UTC
Product Version: NetBeans IDE Dev (Build 20080725050715)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
============
see attachment. I hope, I selected correct component for this issue. If not, reassign it please to correct one.
Comment 1 Jana Maleckova 2008-07-25 14:11:23 UTC
Created attachment 65640 [details]
screenshot
Comment 2 Jana Maleckova 2008-07-28 10:41:06 UTC
Created attachment 65772 [details]
with better mime-type
Comment 3 Jiri Prox 2008-07-29 08:36:24 UTC
*** Issue 141968 has been marked as a duplicate of this issue. ***
Comment 4 Jiri Prox 2008-07-29 08:40:32 UTC
*** Issue 141965 has been marked as a duplicate of this issue. ***
Comment 5 Dusan Balek 2008-07-29 09:01:02 UTC
*** Issue 141750 has been marked as a duplicate of this issue. ***
Comment 6 Jan Becicka 2008-07-29 11:52:41 UTC
Max want to fix it :)
Comment 7 Jiri Prox 2008-07-29 12:51:32 UTC
*** Issue 142050 has been marked as a duplicate of this issue. ***
Comment 8 Max Sauer 2008-07-30 09:56:33 UTC
There seems to be problem with 
Lookups.forPath("org-netbeans-modules-options-editor/OptionsDialogCategories/FontsColors");

which is correctly present inside options.editor layer. The resulting lookup contains empty collection even for lookup.lookupAll(Object.class);

On the other hand, 
DataObject.find(Repository.getDefault().getDefaultFileSystem().findResource("org-netbeans-modules-options-
editor/OptionsDialogCategories/FontsColors").getChildren()[2]).getLookup().lookup(InstanceCookie.class).instanceClass(); //example for highlighting panel

finds the instances correctly.

The problematic code is located inside options.editor.
org.netbeans.modules.options.colors.FontAndColorsPanelController:82
Comment 9 Max Sauer 2008-07-30 14:35:57 UTC
It seems to be result of Dafe's

http://hg.netbeans.org/main/rev/80eea651d4d9 (fix of #131951)
Comment 10 Antonin Nebuzelsky 2008-07-30 14:41:42 UTC
Max, thanks a lot for searching for the cause!

Reassigning to Dafe for further eval.
Comment 11 esmithbss 2008-07-31 05:29:11 UTC
*** Issue 142349 has been marked as a duplicate of this issue. ***
Comment 12 David Simonek 2008-07-31 12:25:41 UTC
fixed - rollback of my changes 

http://hg.netbeans.org/main/rev/c8c55cfbcfe9
Comment 13 Jiri Prox 2008-08-01 07:44:03 UTC
*** Issue 142513 has been marked as a duplicate of this issue. ***
Comment 14 Lukas Hasik 2008-08-01 08:48:01 UTC
v in cusom build(tip=53ce0fec4c34) 08/01