KickJava   Java API By Example, From Geeks To Geeks.

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


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  * This interface must be provided by Show In targets (parts listed
16  * in the Show In prompter).
17  * The part can either directly implement this interface, or provide it
18  * via <code>IAdaptable.getAdapter(IShowInTarget.class)</code>.
19  *
20  * @see org.eclipse.ui.IPageLayout#addShowInPart
21  *
22  * @since 2.1
23  */

24 public interface IShowInTarget {
25
26     /**
27      * Shows the given context in this target.
28      * The target should check the context's selection for elements
29      * to show. If there are no relevant elements in the selection,
30      * then it should check the context's input.
31      *
32      * @param context the context to show
33      * @return <code>true</code> if the context could be shown,
34      * <code>false</code> otherwise
35      */

36     public boolean show(ShowInContext context);
37 }
38
Popular Tags