comparison dwtx/jface/util/IOpenEventListener.d @ 4:c87617952847

some JFace modules
author Frank Benoit <benoit@tionex.de>
date Fri, 28 Mar 2008 17:08:33 +0100
parents
children
comparison
equal deleted inserted replaced
3:6518c18a01f7 4:c87617952847
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 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module dwtx.jface.util.IOpenEventListener;
14
15 import dwt.events.SelectionEvent;
16
17 /**
18 * Listener for open events which are generated on selection
19 * of default selection depending on the user preferences.
20 *
21 * <p>
22 * Usage:
23 * <pre>
24 * OpenStrategy handler = new OpenStrategy(control);
25 * handler.addOpenListener(new IOpenEventListener() {
26 * public void handleOpen(SelectionEvent e) {
27 * ... // code to handle the open event.
28 * }
29 * });
30 * </pre>
31 * </p>
32 *
33 * @see OpenStrategy
34 */
35 public interface IOpenEventListener {
36 /**
37 * Called when a selection or default selection occurs
38 * depending on the user preference.
39 * @param e the selection event
40 */
41 public void handleOpen(SelectionEvent e);
42 }