KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > util > IOpenEventListener


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.jface.util;
12
13 import org.eclipse.swt.events.SelectionEvent;
14
15 /**
16  * Listener for open events which are generated on selection
17  * of default selection depending on the user preferences.
18  *
19  * <p>
20  * Usage:
21  * <pre>
22  * OpenStrategy handler = new OpenStrategy(control);
23  * handler.addOpenListener(new IOpenEventListener() {
24  * public void handleOpen(SelectionEvent e) {
25  * ... // code to handle the open event.
26  * }
27  * });
28  * </pre>
29  * </p>
30  *
31  * @see OpenStrategy
32  */

33 public interface IOpenEventListener {
34     /**
35      * Called when a selection or default selection occurs
36      * depending on the user preference.
37      * @param e the selection event
38      */

39     public void handleOpen(SelectionEvent e);
40 }
41
Popular Tags