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

Summary: DataObjectTopComponent
Product: platform Reporter: Tim Lebedkov <lebedkov>
Component: -- Other --Assignee: issues@platform <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Tim Lebedkov 2007-09-09 18:18:08 UTC
Hi,

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?