comparison dwtx/jface/text/source/IVerticalRulerListener.d @ 129:eb30df5ca28b

Added JFace Text sources
author Frank Benoit <benoit@tionex.de>
date Sat, 23 Aug 2008 19:10:48 +0200
parents
children c4fb132a086c
comparison
equal deleted inserted replaced
128:8df1d4193877 129:eb30df5ca28b
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 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module dwtx.jface.text.source.IVerticalRulerListener;
14
15 import dwt.dwthelper.utils;
16
17 import dwt.widgets.Menu;
18
19
20 /**
21 * Interface for listening to annotation related events happening on a vertical ruler.
22 * <p>
23 * This interface may be implemented by clients.
24 * </p>
25 *
26 * @since 3.0
27 */
28 public interface IVerticalRulerListener {
29
30 /**
31 * Called when an annotation is selected in the vertical ruler.
32 *
33 * @param event the annotation event that occurred
34 */
35 void annotationSelected(VerticalRulerEvent event);
36
37 /**
38 * Called when a default selection occurs on an
39 * annotation in the vertical ruler.
40 *
41 * @param event the annotation event that occurred
42 */
43 void annotationDefaultSelected(VerticalRulerEvent event);
44
45 /**
46 * Called when the context menu is opened on an annotation in the
47 * vertical ruler.
48 *
49 * @param event the annotation event that occurred
50 * @param menu the menu that is about to be shown
51 */
52 void annotationContextMenuAboutToShow(VerticalRulerEvent event, Menu menu);
53 }