KickJava   Java API By Example, From Geeks To Geeks.

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


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
14 /**
15  * An event sent to {@link org.eclipse.jface.text.source.IVerticalRulerListener} instances when annotation
16  * related event occurs on the vertical ruler.
17  *
18  * @since 3.0
19  */

20 public class VerticalRulerEvent {
21
22     private Annotation fAnnotation;
23
24     /**
25      * Creates a new event.
26      *
27      * @param annotation the annotation concerned, or <code>null</code>
28      */

29     public VerticalRulerEvent(Annotation annotation) {
30         fAnnotation= annotation;
31     }
32
33     /**
34      * @return the concerned annotation or <code>null</code>
35      */

36     public Annotation getSelectedAnnotation() {
37         return fAnnotation;
38     }
39
40     /**
41      * @param annotation the concerned annotation, or <code>null</code>
42      */

43     public void setSelectedAnnotation(Annotation annotation) {
44         fAnnotation= annotation;
45     }
46 }
47
Popular Tags