1 11 package org.eclipse.debug.internal.ui.model.elements; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; 15 import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate; 16 import org.eclipse.debug.ui.IDebugUIConstants; 17 18 31 public class MemoryBlockContentProvider extends ElementContentProvider { 32 33 protected int getChildCount(Object element, IPresentationContext context, 34 IViewerUpdate monitor) throws CoreException { 35 return 0; 36 } 37 38 protected Object [] getChildren(Object parent, int index, int length, 39 IPresentationContext context, IViewerUpdate monitor) 40 throws CoreException { 41 return EMPTY; 42 } 43 44 protected boolean supportsContextId(String id) { 45 if (id.equals(IDebugUIConstants.ID_MEMORY_VIEW)) 46 return true; 47 return false; 48 } 49 50 } 51 | Popular Tags |