KickJava   Java API By Example, From Geeks To Geeks.

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


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 package org.eclipse.ui.part;
12
13 import org.eclipse.jface.viewers.ISelection;
14
15 /**
16  * Interface for views which support reveal and select.
17  * <p>
18  * This interface may be implemented by subclasses of <code>ViewPart</code>.
19  * This interface is commonly used by a New wizard to reveal and select a
20  * resource in a workbench part which it has just created.
21  * </p>
22  *
23  * @see org.eclipse.ui.IViewPart
24  * @see org.eclipse.ui.part.ViewPart
25  */

26 public interface ISetSelectionTarget {
27     /**
28      * Reveals and selects the given element within this target view.
29      *
30      * @param selection the new element to select
31      */

32     public void selectReveal(ISelection selection);
33 }
34
Popular Tags