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 107925 - Extra layer for action merging
Summary: Extra layer for action merging
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-06-23 10:51 UTC by _ rkubacki
Modified: 2008-08-05 07:33 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2007-06-23 10:51:36 UTC
XML modules contain their own support for pluging actions into menu of their nodes or editor context menu. This is an
extra layer of overhead and complexity.

The pattern is: CollectSystemAction is support class able to collect several actions from default lookup and present
them in menu. Its subclasses are used in various nodes and only define what marked interface will be used to look for
real actions - CollectDTDAction used in DTDDataObject then presents all actions from default lookup implementing
CollectDTDAction.DTDAction like CSSStyleAction.

It is better to move real actions directly to folders defining actions for DataObjects and skip this layer (lookup
listeners, need to generate menus here, ability to define positioning simply, ...).
Comment 1 Samaresh Panda 2007-10-01 03:31:45 UTC
Will try to fix for 6.0, but can't promise.
Comment 2 Samaresh Panda 2008-08-05 07:33:03 UTC
Its a task and not a bug per se. Lets work on it post 6.5.