Mercurial > projects > dwt2
comparison org.eclipse.jface/src/org/eclipse/jface/viewers/IPostSelectionProvider.d @ 12:bc29606a740c
Added dwt-addons in original directory structure of eclipse.org
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 14 Mar 2009 18:23:29 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
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 org.eclipse.jface.viewers.IPostSelectionProvider; | |
14 | |
15 import java.lang.all; | |
16 | |
17 import org.eclipse.jface.viewers.ISelectionProvider; | |
18 import org.eclipse.jface.viewers.ISelectionChangedListener; | |
19 | |
20 /** | |
21 * Selection provider extension interface to allow providers | |
22 * to notify about post selection changed events. | |
23 * A post selection changed event is equivalent to selection changed event | |
24 * if the selection change was triggered by the mouse, but it has a delay | |
25 * if the selection change is triggered by keyboard navigation. | |
26 * | |
27 * @see ISelectionProvider | |
28 * | |
29 * @since 3.0 | |
30 */ | |
31 public interface IPostSelectionProvider : ISelectionProvider { | |
32 | |
33 /** | |
34 * Adds a listener for post selection changes in this selection provider. | |
35 * Has no effect if an identical listener is already registered. | |
36 * | |
37 * @param listener a selection changed listener | |
38 */ | |
39 public void addPostSelectionChangedListener( | |
40 ISelectionChangedListener listener); | |
41 | |
42 /** | |
43 * Removes the given listener for post selection changes from this selection | |
44 * provider. | |
45 * Has no affect if an identical listener is not registered. | |
46 * | |
47 * @param listener a selection changed listener | |
48 */ | |
49 public void removePostSelectionChangedListener( | |
50 ISelectionChangedListener listener); | |
51 | |
52 } |