1 11 package org.eclipse.debug.internal.ui.elements.adapters; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.debug.core.model.IRegisterGroup; 15 import org.eclipse.debug.internal.ui.viewers.provisional.AsynchronousContentAdapter; 16 import org.eclipse.debug.internal.ui.viewers.provisional.IPresentationContext; 17 import org.eclipse.debug.ui.IDebugUIConstants; 18 19 public class RegisterGroupContentAdapter extends AsynchronousContentAdapter { 20 21 protected Object [] getChildren(Object parent, IPresentationContext context) throws CoreException { 22 return ((IRegisterGroup)parent).getRegisters(); 23 } 24 25 protected boolean hasChildren(Object element, IPresentationContext context) throws CoreException { 26 return ((IRegisterGroup)element).hasRegisters(); 27 } 28 29 protected boolean supportsPartId(String id) { 30 return id.equals(IDebugUIConstants.ID_REGISTER_VIEW); 31 } 32 } 33 | Popular Tags |