Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 22907 - Debug view refreshes after each launch has been removed
Summary: Debug view refreshes after each launch has been removed
Status: RESOLVED DUPLICATE of bug 22872
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-27 14:40 EDT by Jed Anderson CLA
Modified: 2002-08-27 14:49 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jed Anderson CLA 2002-08-27 14:40:11 EDT
Eclispe 2.0

If you do not actively clean up your debug view (and/or have turned the "remove 
terminated launches when a new launch is created" option) you can get a lot of old launches 
quickly.  This happens to me a lot when I am creating little test programs.

If you have many 
terminated launches and select "remove all terminated", you get to watch the debug view update 
after each launch is removed individually.  I looked at the code, and we are processing each 
removal individually.  Worse yet, we are doing one expand per removal.  We should allow the 
launches to be removed in one callback.

After looking through the code for a while I 
determined that the problem is the ILaunchListener interface.  Each of the methods only accepts 
one launch at a time.

A way we could fix this without breaking API is to introduce an interface 
(maybe named IMultiLaunchListener or something like that) that extended ILaunchListener.  It 
would have launchesAdded(ILaunch[]), launchesRemoved(ILaunch[]) and 
launchesChanged(ILaunch[]).  Clients that implement IMultiLaunchListener will get 
callbacks in these new methods, and clients that implement ILaunchListener will get callbacks 
using the old methods.

Is it possible that this is a problem throughout the debug APIs?  That 
is, are there other interfaces that should take arrays instead of single elements?
Comment 1 Darin Wright CLA 2002-08-27 14:49:11 EDT

*** This bug has been marked as a duplicate of 22872 ***