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 10681 - DataLoader.getActions () enhancements
Summary: DataLoader.getActions () enhancements
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: akemr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-26 13:32 UTC by Jaroslav Tulach
Modified: 2008-12-22 20:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2001-03-26 13:32:51 UTC
There is a problem with 
1. eager initialization of bundles in loaders (because they are used to
setDisplayName)
2. the problem that there is no differences between default actions and changed
user actions in the serialized bundle.

My proposed solution is to create new methods
	protected String defaultName ();
	protected SystemAction[] createActions ();
that would be called "on demand", when needed, if the user does not change the
name or the actions itself.

It is also likely good idea to change the serialization protocol, to store
"null" as name and list of actions if not modified.

Also the deserialization should be enhanced, so it will carefully handle
deserialization of old versions (displayname used only if different from
default) and actions thrown away...
Comment 1 akemr 2001-03-28 08:47:49 UTC
- Two new methods created to get default display name (actions):
  protected String defaultDisplayName ();
  protected SystemAction[] defaultActions ();
- Getters getDisplayName (), getActions () modified to return
  defaults if there are no changes
- serialization changed to store only changes (if display name (or actions)
  doesn't change from default, null will be stored). Integer object
  representing version will be stored too.
- deserialization changed - after reading object (display name or actions)
  setDisplayName(String) (or setActions(SystemAction[])) will be called only
  if readed object differs from default.
Comment 2 akemr 2001-04-03 08:50:20 UTC
Fixed.
Appropriated bugs were filed against other loaders to use this implementation.
Comment 3 Jan Chalupa 2001-05-06 08:22:34 UTC
Target milestone -> 3.2
Comment 4 Quality Engineering 2003-07-01 16:40:00 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.