diff options
author | Samantha Chan | 2010-04-23 16:11:57 +0000 |
---|---|---|
committer | Samantha Chan | 2010-04-23 16:11:57 +0000 |
commit | 4449a8370b731e8a2b8c2c6bebd8296138557546 (patch) | |
tree | 4f4c3d239f98e0792cfd638071e18f470a6032f6 | |
parent | 8f7833e9fcacc3636a7fae01384806517b8898a7 (diff) | |
download | eclipse.platform.debug-4449a8370b731e8a2b8c2c6bebd8296138557546.tar.gz eclipse.platform.debug-4449a8370b731e8a2b8c2c6bebd8296138557546.tar.xz eclipse.platform.debug-4449a8370b731e8a2b8c2c6bebd8296138557546.zip |
Bug 258890 - [Memory View] MemoryViewSynchronizationService not implementing addPropertyChangeListener() correctly
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryViewSynchronizationService.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryViewSynchronizationService.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryViewSynchronizationService.java index 29a937679..07f3900fa 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryViewSynchronizationService.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryViewSynchronizationService.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2007 IBM Corporation and others. + * Copyright (c) 2004, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Justin Kong (IBM) - Bug 258890 - [Memory View] MemoryViewSynchronizationService not implementing addPropertyChangeListener() correctly *******************************************************************************/ package org.eclipse.debug.internal.ui.views.memory; @@ -189,14 +190,7 @@ public class MemoryViewSynchronizationService implements * @see org.eclipse.debug.ui.memory.IMemoryRenderingSynchronizationService#addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener, java.lang.String[]) */ public void addPropertyChangeListener(IPropertyChangeListener listener, String[] properties) { - - PropertyListener propertylistener = new PropertyListener(listener, properties); - - if (!fPropertyListeners.contains(propertylistener)) - { - fPropertyListeners.put(listener, propertylistener); - } - + fPropertyListeners.put(listener, new PropertyListener(listener, properties)); } /* (non-Javadoc) |