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 259042

Summary: OutlinewView model automatically resets itself on remove notify
Product: platform Reporter: scanti <scanti>
Component: Outline&TreeTableAssignee: Martin Entlicher <mentlicher>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Test case

Description scanti 2016-04-28 08:41:10 UTC
Created attachment 159456 [details]
Test case

We are using your OutlineView Model in our RCP application and when we moved to NB RCP 8.1 we found out that maximizing the TopComponent in whom the OutlineView was put, made the OutlineView resets its model. This also happens when you drag the  TopComponent to another mode. 

We took a look at the code and we noticed that you call setModel(null) in the removeNotify method of org.netbeans.modules.viewmodel2.OutlineTable. 

We understand that you do this to avoid memory leaks, but this is giving us some problems. IMHO it should the one that sets the model to reset it and not be hidden in the API (see org.netbeans.modules.debugger.ui.views,View where only addNotify is overridden) .

We made a workaround in our application and we are looking forward to see a better fix in the future.

The problem was introduced with https://netbeans.org/bugzilla/show_bug.cgi?id=250636