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: import org.eclipse.jface.viewers.ISelection;
13:
14: /**
15: * Interface for views which support reveal and select.
16: * <p>
17: * This interface may be implemented by subclasses of <code>ViewPart</code>.
18: * This interface is commonly used by a New wizard to reveal and select a
19: * resource in a workbench part which it has just created.
20: * </p>
21: *
22: * @see org.eclipse.ui.IViewPart
23: * @see org.eclipse.ui.part.ViewPart
24: */
25: public interface ISetSelectionTarget {
26: /**
27: * Reveals and selects the given element within this target view.
28: *
29: * @param selection the new element to select
30: */
31: public void selectReveal(ISelection selection);
32: }
|