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:
parent
b97e8aa62f
commit
10f1fcfea0
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue