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 46475 - redundant notification on session switch
Summary: redundant notification on session switch
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: Sun SunOS
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-23 04:05 UTC by ivan
Modified: 2010-04-29 09:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ivan 2004-07-23 04:05:11 UTC
I use addDebuggerListener() to register a
listener for PROP_CURRENT_SESSION. 

If I then double-click on a session node redundantly,
that is while it's already current, I get two
notifications. What's more this becomes permanent.
As I switch between sessions by double-clicking I
get two notifications every time.
Comment 1 Jan Jancura 2004-08-04 15:26:54 UTC
Should be fixed now:

We have not check if this session is current in
SessionsActionsProvider. Second problem was in DebuggerManager. We
should chec duplicity there too.


Index: api/src/org/netbeans/api/debugger/DebuggerManager.java
===================================================================
RCS file:
/cvs/debuggercore/api/src/org/netbeans/api/debugger/DebuggerManager.java,v
retrieving revision 1.17
diff -r1.17 DebuggerManager.java
361a362
>         if (session == old) return;
Index:
src/org/netbeans/modules/debugger/ui/models/SessionsActionsProvider.java
===================================================================
RCS file:
/cvs/debuggercore/src/org/netbeans/modules/debugger/ui/models/SessionsActionsProvider.java,v
retrieving revision 1.6
diff -r1.6 SessionsActionsProvider.java
93a94,96
>             if (DebuggerManager.getDebuggerManager
().getCurrentSession () == 
>                 node
>             ) return;
Comment 2 Quality Engineering 2010-04-29 09:18:25 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.