1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[160280] Could not remove object from remote scratchpad if same object added multiple times. Do not allow same object to be added more than once to Scratchpad.

This commit is contained in:
Kushal Munir 2007-05-25 15:06:06 +00:00
parent b97e8aa62f
commit 10f1fcfea0

View file

@ -12,6 +12,7 @@
*
* Contributors:
* Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
* Kevin Doyle (IBM) - [160280] Added a check to see if the item to be added already exists
********************************************************************************/
package org.eclipse.rse.ui.internal.model;
@ -63,7 +64,8 @@ public class SystemScratchpad implements IAdaptable
public void addChild(Object child)
{
_children.add(child);
if (!contains(child))
_children.add(child);
}
public void removeChild(Object child)