diff options
author | Samantha Chan | 2007-10-17 17:15:01 +0000 |
---|---|---|
committer | Samantha Chan | 2007-10-17 17:15:01 +0000 |
commit | 29759103c1a6aef22ad2b8cb7ee834b64d3772d3 (patch) | |
tree | 7a5ada3c0058e5a221fb0956564fd4fee2465c9c | |
parent | b03f54d957c582cddf7eec8b6c013a410ced4dc1 (diff) | |
download | eclipse.platform.debug-29759103c1a6aef22ad2b8cb7ee834b64d3772d3.tar.gz eclipse.platform.debug-29759103c1a6aef22ad2b8cb7ee834b64d3772d3.tar.xz eclipse.platform.debug-29759103c1a6aef22ad2b8cb7ee834b64d3772d3.zip |
Bug 206407 AbstractMemoryRendering connect()s the wrong "this"
2 files changed, 12 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/CreateRendering.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/CreateRendering.java index b21f8ad5c..f703f2b9f 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/CreateRendering.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/CreateRendering.java @@ -311,6 +311,14 @@ public class CreateRendering extends AbstractMemoryRendering implements IMemoryR return fLabel; } + public void becomesVisible() { + // Do nothing, do not want to connect/disconnect from clients + } + + public void becomesHidden() { + // Do nothing, do not want to connect/disconnect from clients + } + protected void updateRenderingLabel() { Job job = new Job("Update Rendering Label"){ //$NON-NLS-1$ diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractMemoryRendering.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractMemoryRendering.java index 59d3f570c..b228727af 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractMemoryRendering.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractMemoryRendering.java @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Wind River - Bug 206407 AbstractMemoryRendering connect()s the wrong "this" *******************************************************************************/ package org.eclipse.debug.ui.memory; @@ -115,7 +116,7 @@ public abstract class AbstractMemoryRendering extends PlatformObject implements { Runnable runnable = new Runnable(){ public void run() { - ((IMemoryBlockExtension)fMemoryBlock).disconnect(this); + ((IMemoryBlockExtension)fMemoryBlock).disconnect(AbstractMemoryRendering.this); }}; new ConnectionJob(runnable).schedule(); } @@ -161,7 +162,7 @@ public abstract class AbstractMemoryRendering extends PlatformObject implements { Runnable runnable = new Runnable(){ public void run() { - ((IMemoryBlockExtension)fMemoryBlock).connect(this); + ((IMemoryBlockExtension)fMemoryBlock).connect(AbstractMemoryRendering.this); }}; new ConnectionJob(runnable).schedule(); } @@ -176,7 +177,7 @@ public abstract class AbstractMemoryRendering extends PlatformObject implements { Runnable runnable = new Runnable(){ public void run() { - ((IMemoryBlockExtension)fMemoryBlock).disconnect(this); + ((IMemoryBlockExtension)fMemoryBlock).disconnect(AbstractMemoryRendering.this); }}; new ConnectionJob(runnable).schedule(); } |