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: * This interface must be provided by Show In targets (parts listed
14: * in the Show In prompter).
15: * The part can either directly implement this interface, or provide it
16: * via <code>IAdaptable.getAdapter(IShowInTarget.class)</code>.
17: *
18: * @see org.eclipse.ui.IPageLayout#addShowInPart
19: *
20: * @since 2.1
21: */
22: public interface IShowInTarget {
23:
24: /**
25: * Shows the given context in this target.
26: * The target should check the context's selection for elements
27: * to show. If there are no relevant elements in the selection,
28: * then it should check the context's input.
29: *
30: * @param context the context to show
31: * @return <code>true</code> if the context could be shown,
32: * <code>false</code> otherwise
33: */
34: public boolean show(ShowInContext context);
35: }
|