KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > part > IShowInSource


1 /*******************************************************************************
2  * Copyright (c) 2000, 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
12 package org.eclipse.ui.part;
13
14 /**
15  * Parts which need to provide a particular context to a Show In...
16  * target can provide this interface.
17  * The part can either directly implement this interface, or provide it
18  * via <code>IAdaptable.getAdapter(IShowInSource.class)</code>.
19  *
20  * @see IShowInTarget
21  *
22  * @since 2.1
23  */

24 public interface IShowInSource {
25
26     /**
27      * Returns the context to show, or <code>null</code> if there is
28      * currently no valid context to show.
29      *
30      * @return the context to show, or <code>null</code>
31      */

32     public ShowInContext getShowInContext();
33 }
34
Popular Tags