1 11 package org.eclipse.debug.internal.ui.viewers.update; 12 13 import org.eclipse.debug.core.DebugEvent; 14 import org.eclipse.debug.core.model.IDebugElement; 15 import org.eclipse.debug.core.model.IDebugTarget; 16 import org.eclipse.debug.core.model.IStackFrame; 17 18 23 public class DefaultVariableViewModelProxy extends EventHandlerModelProxy { 24 25 28 private IStackFrame fFrame; 29 30 35 public DefaultVariableViewModelProxy(IStackFrame frame) { 36 super(); 37 fFrame = frame; 38 } 39 40 public void dispose() { 41 super.dispose(); 42 fFrame = null; 43 } 44 45 protected DebugEventHandler[] createEventHandlers() { 46 return new DebugEventHandler[] { new VariablesViewEventHandler(this, fFrame) }; 47 } 48 49 52 protected synchronized boolean containsEvent(DebugEvent event) { 53 if (!isDisposed()) { 54 Object source = event.getSource(); 55 if (source instanceof IDebugElement) { 56 IDebugTarget debugTarget = ((IDebugElement) source).getDebugTarget(); 57 if (debugTarget != null) { 58 return debugTarget.equals(fFrame.getDebugTarget()); 60 } 61 } 62 } 63 return false; 64 } 65 66 } 67 | Popular Tags |