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 68752

Summary: Do not enforce too many classes with Palette SPI
Product: platform Reporter: _ rkubacki <rkubacki>
Component: PaletteAssignee: Stanislav Aubrecht <saubrecht>
Status: NEW ---    
Severity: blocker CC: issues
Priority: P3 Keywords: API, PERFORMANCE
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 90211    

Description _ rkubacki 2005-11-15 16:54:44 UTC
Current SPI for adding palette items requires new class for each item that
exists in palette. This is often followed by special class for customizer. This
is expensive pattern from performance point of view.

The alternative can be allowing of factory method in the XML declaration that
will return proper instance of ActiveEditorDrop. Another possibility is to
provide context (for example resource path in SFS) when calling constructor of
given object.