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 - Make is possible to be notified when a connection state has changed
Summary: Make is possible to be notified when a connection state has changed
Status: NEW
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
: 79408 (view as bug list)
Depends on:
Blocks: 152816 146815
  Show dependency tree
 
Reported: 2008-10-09 17:29 UTC by David Vancouvering
Modified: 2015-08-04 16:55 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***