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 1895 - Could CustomizeBeanAction just be killed?
Summary: Could CustomizeBeanAction just be killed?
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-05-20 23:55 UTC by Jesse Glick
Modified: 2004-08-13 12:10 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 1999-05-20 23:55:22 UTC
Would it be feasible to simply remove CustomizeBeanAction and permit the same things to be accomplished in a more data-driven way? Is this desirable for the UI or not?

Suggest:

- remove CustomizeBeanAction

- for SerDataNode, add sheets to its sheet set for Bean Properties (& Bean Expert Properties, maybe). If any of these are changed, reserialize changed version. (Is this noticeably slow? Maybe wait a f
ew seconds to batch up changes, and then serialize them all at once.) Also make sure these properties are tied to the Bean as obtained from InstanceCookie--i.e. hold a single instance associated with
the DO with a weak reference, and use BeanNode.computeProperties to get the properties so they are tied to that instance. Also like BeanNode, if the Bean provides a customizer, make that the customize
r for the node.

- add an action (service action, or just private to SerDataNode), something like DisplayInstanceAction--a CookieAction sensitive to InstanceCookie, which checks whether the instance class is a subclas
s of component, and if so displays the instance as a component (or window).

- make ClassDataObject and JavaDataObject, if they refer to a JavaBean class, provide an InstanceCookie which creates a fresh instance of the class. This will make it possible to copy them and then pa
ste them into a folder with DataFolder.SerializePaste (if the class is also serializable).

Now the effect of CustomizeBeanAction can be gotten by:

1. If starting with a class, copy it and ser-paste it somewhere.


2. Go to the ser data node. If you wish to see live results, first select DisplayInstanceAction to see the example as you work on it.

3. Flip to the sheets containing the Bean properties, and start changing them. The displayed instance will update as you do. In a few moments your changes will be committed to disk with no further act
ion.

4. If the node-customizer button is lit up, click it and customize the Bean that way. The displayed instance can still be
Comment 1 Marek Grummich 2000-07-25 09:27:59 UTC
Priority is changed to P4 (normal).
Comment 2 Jesse Glick 2001-03-02 17:22:40 UTC
x
Comment 3 Jesse Glick 2001-03-02 17:23:15 UTC
Yarda, did you just fix this? Or something similar?
Comment 4 Jaroslav Tulach 2001-03-05 08:57:42 UTC
I have modified the InstanceDataObject to show properties of .ser files directly
in its property sheet => no need for customize action in this case.

Maybe clazz module could be modified to do the same => reassigned to clazz
module.

As concern the CustomizeBeanAction, I do not see big advantage in deprecating
the action and introducing the same action in clazz module. The current design
can at least work for example on JINI repository (where you can customize,
etc.).

Comment 5 Jesse Glick 2004-03-29 13:22:08 UTC
Well, it is gone in the trunk. No replacement currently; TBD whether
one is wanted.