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.IExpression; 15 import org.eclipse.debug.core.model.IVariable; 16 17 21 public class DefaultExpressionModelProxy extends EventHandlerModelProxy { 22 23 private IExpression fExpression; 24 25 public DefaultExpressionModelProxy(IExpression expression) { 26 fExpression = expression; 27 } 28 29 32 public synchronized void dispose() { 33 super.dispose(); 34 fExpression = null; 35 } 36 37 40 protected DebugEventHandler[] createEventHandlers() { 41 return new DebugEventHandler[]{new ExpressionEventHandler(this)}; 42 } 43 44 47 protected boolean containsEvent(DebugEvent event) { 48 if (event.getSource().equals(fExpression) || event.getSource().equals(fExpression.getDebugTarget())) { 50 return true; 51 } 52 return event.getKind() == DebugEvent.CHANGE && event.getSource() instanceof IVariable; 54 } 55 56 61 protected IExpression getExpression() { 62 return fExpression; 63 } 64 65 } 66 | Popular Tags |