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 149662

Summary: Make is possible to be notified when a connection state has changed
Product: db Reporter: David Vancouvering <davidvc>
Component: CodeAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: blocker CC: clover
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 152816, 146815    

Description David Vancouvering 2008-10-09 17:29:40 UTC
We need a way for a user of the Database Explorer to add a listener to a connection so they can be notified when the
connection changes state (connected, disconnected).

Right now we have ConnectionListener that lets you know when a connection has been added or removed from the explorer
list. But there is no way to find out about connect/disconnect.

Recommend an API to DatabaseConnection called addChangeListener(ChangeListener l) and
removeChangeListener(ChangeListener l) that is then called when the connection is connected and disconnected.

It would also be good to have a PropertyChangeListener for when properties of the connection change
Comment 1 Rob Englander 2008-10-09 17:36:01 UTC
I'm already adding an event listener mechanism as part of the explorer rewrite.  I think this is
what you're looking for.
Comment 2 Jiri Rechtacek 2009-10-16 14:03:30 UTC
Reassigned to new owner.
Comment 3 matthias42 2015-08-04 16:55:31 UTC
*** Bug 79408 has been marked as a duplicate of this bug. ***