01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jface.viewers;
11:
12: /**
13: * Selection provider extension interface to allow providers
14: * to notify about post selection changed events.
15: * A post selection changed event is equivalent to selection changed event
16: * if the selection change was triggered by the mouse, but it has a delay
17: * if the selection change is triggered by keyboard navigation.
18: *
19: * @see ISelectionProvider
20: *
21: * @since 3.0
22: */
23: public interface IPostSelectionProvider extends ISelectionProvider {
24:
25: /**
26: * Adds a listener for post selection changes in this selection provider.
27: * Has no effect if an identical listener is already registered.
28: *
29: * @param listener a selection changed listener
30: */
31: public void addPostSelectionChangedListener(
32: ISelectionChangedListener listener);
33:
34: /**
35: * Removes the given listener for post selection changes from this selection
36: * provider.
37: * Has no affect if an identical listener is not registered.
38: *
39: * @param listener a selection changed listener
40: */
41: public void removePostSelectionChangedListener(
42: ISelectionChangedListener listener);
43:
44: }
|