Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 64fe353e1bfb5530bd32925f59be0d3349d8ae12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*******************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jface.text.source;

import org.eclipse.swt.widgets.Menu;


/**
 * Interface for listening to annotation related events happening on a vertical ruler.
 * <p>
 * This interface may be implemented by clients.
 * </p>
 * 
 * @since 3.0
 */
public interface IVerticalRulerListener {
	
	/**
	 * Called when an annotation is selected in the UI.
	 * 
	 * @param event the annotation event that occurred
	 */
	void annotationSelected(VerticalRulerEvent event);
	
	/**
	 * Called when a default selection occurs on an 
	 * annotation.
	 * 
	 * @param event the annotation event that occurred
	 */
	void annotationDefaultSelected(VerticalRulerEvent event);
	
	/** 
	 * Called when the context menu is opened on an annotation.
	 * 
	 * @param event the annotation event that occurred
	 * @param menu the menu that is about to be shown
	 */
	void annotationContextMenuAboutToShow(VerticalRulerEvent event, Menu menu);
}

Back to the top