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 115110 - DataObjectTopComponent
Summary: DataObjectTopComponent
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@platform
Depends on:
Reported: 2007-09-09 18:18 UTC by Tim Lebedkov
Modified: 2009-01-06 14:37 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2007-09-09 18:18:08 UTC

I have implemented a module that recognizes a file as of special type (not text) and
shows a TC when the file is opened.

I find it was too much work for such a common case (maybe I do something wrong):
- extend TC
- override getPersistenceType
- listen to changes in the DO and update Title/Tooltip
- create ExplorerManager, implement ExplorerManager.Provider, set DataObject.getDelegateNode() 
  as selected node
- associate lookup with the node
- readExternal/writeExternal to store/load the file being edited
- override canClose()

I think that the case is very common and there must be a "DataObjectTopComponent" for
easy implementation.

Are You of the same opinion?