1 /*******************************************************************************2 * Copyright (c) 2005 IBM Corporation and others.3 * All rights reserved. This program and the accompanying materials4 * are made available under the terms of the Eclipse Public License v1.05 * which accompanies this distribution, and is available at6 * http://www.eclipse.org/legal/epl-v10.html7 *8 * Contributors:9 * IBM Corporation - initial API and implementation10 *******************************************************************************/11 package org.eclipse.debug.internal.ui.views.registers;12 13 import org.eclipse.debug.core.model.IStackFrame;14 import org.eclipse.debug.internal.ui.views.RemoteTreeViewer;15 import org.eclipse.debug.internal.ui.views.variables.RemoteVariableContentManager;16 import org.eclipse.debug.internal.ui.views.variables.VariablesView;17 import org.eclipse.jface.viewers.ITreeContentProvider;18 import org.eclipse.ui.IWorkbenchPartSite;19 import org.eclipse.ui.progress.IDeferredWorkbenchAdapter;20 21 public class RemoteRegisterContentManager extends RemoteVariableContentManager {22 public RemoteRegisterContentManager(ITreeContentProvider provider, RemoteTreeViewer viewer, IWorkbenchPartSite site, VariablesView view) {23 super(provider, viewer, site, view);24 }25 26 /* (non-Javadoc)27 * @see org.eclipse.debug.internal.ui.views.variables.RemoteVariableContentManager#getAdapter(java.lang.Object)28 */29 protected IDeferredWorkbenchAdapter getAdapter(Object element) {30 if (element instanceof IStackFrame) {31 return new DeferredRegisterViewStackFrame();32 }33 return super.getAdapter(element);34 } 35 }36