01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.part;
11:
12: /**
13: * Parts which need to provide a particular context to a Show In...
14: * target can provide this interface.
15: * The part can either directly implement this interface, or provide it
16: * via <code>IAdaptable.getAdapter(IShowInSource.class)</code>.
17: *
18: * @see IShowInTarget
19: *
20: * @since 2.1
21: */
22: public interface IShowInSource {
23:
24: /**
25: * Returns the context to show, or <code>null</code> if there is
26: * currently no valid context to show.
27: *
28: * @return the context to show, or <code>null</code>
29: */
30: public ShowInContext getShowInContext();
31: }
|