1 /******************************************************************************* 2 * Copyright (c) 2005, 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.debug.internal.ui.contexts.provisional; 12 13 import org.eclipse.ui.IWorkbenchPage; 14 15 /** 16 * An adapter that is capable of displaying source for an object. 17 * The adapter is obtained from an object in a debug context. 18 * 19 * @since 3.2 20 */ 21 public interface ISourceDisplayAdapter { 22 23 /** 24 * Displays source for the given context in the specified page. 25 * 26 * @param context debug context to display source for 27 * @param page the page in which to display source 28 * @param forceSourceLookup whether source lookup should be performed 29 */ 30 public void displaySource(Object context, IWorkbenchPage page, boolean forceSourceLookup); 31 32 } 33