KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > forms > IPartSelectionListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 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.forms;
12
13 import org.eclipse.jface.viewers.ISelection;
14
15 /**
16  * Form parts can implement this interface if they want to be
17  * notified when another part on the same form changes selection
18  * state.
19  *
20  * @see IFormPart
21  * @since 3.0
22  */

23 public interface IPartSelectionListener {
24     /**
25      * Called when the provided part has changed selection state.
26      *
27      * @param part
28      * the selection source
29      * @param selection
30      * the new selection
31      */

32     public void selectionChanged(IFormPart part, ISelection selection);
33 }
34
Popular Tags