KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > source > IVerticalRulerListener


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  *******************************************************************************/

11 package org.eclipse.jface.text.source;
12
13 import org.eclipse.swt.widgets.Menu;
14
15
16 /**
17  * Interface for listening to annotation related events happening on a vertical ruler.
18  * <p>
19  * This interface may be implemented by clients.
20  * </p>
21  *
22  * @since 3.0
23  */

24 public interface IVerticalRulerListener {
25
26     /**
27      * Called when an annotation is selected in the vertical ruler.
28      *
29      * @param event the annotation event that occurred
30      */

31     void annotationSelected(VerticalRulerEvent event);
32
33     /**
34      * Called when a default selection occurs on an
35      * annotation in the vertical ruler.
36      *
37      * @param event the annotation event that occurred
38      */

39     void annotationDefaultSelected(VerticalRulerEvent event);
40
41     /**
42      * Called when the context menu is opened on an annotation in the
43      * vertical ruler.
44      *
45      * @param event the annotation event that occurred
46      * @param menu the menu that is about to be shown
47      */

48     void annotationContextMenuAboutToShow(VerticalRulerEvent event, Menu menu);
49 }
50
Popular Tags