blob: d134940ade1fed19c6928f24e918f9f00a4696cf [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2004 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;
/**
* An event sent to {@link org.eclipse.jface.text.source.IVerticalRulerListener} instances when annotation
* related event occurs on the vertical ruler.
*
* @since 3.0
*/
public class VerticalRulerEvent {
private Annotation fAnnotation;
/**
* Creates a new event.
*
* @param annotation the annotation concerned, or <code>null</code>
*/
public VerticalRulerEvent(Annotation annotation) {
fAnnotation= annotation;
}
/**
* @return the concerned annotation or <code>null</code>
*/
public Annotation getSelectedAnnotation() {
return fAnnotation;
}
/**
* @param annotation the concerned annotation, or <code>null</code>
*/
public void setSelectedAnnotation(Annotation annotation) {
fAnnotation= annotation;
}
}