1 11 package org.eclipse.jdt.internal.debug.ui.variables; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider; 15 import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; 16 import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate; 17 import org.eclipse.jdt.debug.core.IJavaThread; 18 19 22 public class JavaStackFrameContentProvider extends StackFrameContentProvider { 23 24 30 protected Object [] getAllChildren(Object parent, IPresentationContext context, IViewerUpdate monitor) throws CoreException { 31 try { 32 return super.getAllChildren(parent, context, monitor); 33 } catch (CoreException e) { 34 if (e.getStatus().getCode() == IJavaThread.ERR_THREAD_NOT_SUSPENDED) { 35 monitor.cancel(); 36 return EMPTY; 37 } 38 throw e; 39 } 40 } 41 42 } 43 | Popular Tags |