KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > part > components > services > ISelectionHandler


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 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.internal.part.components.services;
12
13 import org.eclipse.jface.viewers.ISelection;
14
15 /**
16  * Interface implemented by objects that can process changes in selection.
17  * Parts can use an <code>ISelectionHandler</code> as a service to change
18  * their selection.
19  *
20  * @since 3.1
21  */

22 public interface ISelectionHandler {
23     /**
24      * Sets the current selection. A null value indicates that
25      * no selection is available. This is not the same as an empty
26      * selection
27      *
28      * @param newSelection new selection or null if no selection is available
29      */

30     public void setSelection(ISelection newSelection);
31 }
32
Popular Tags