org.eclipse.jface.text.source.VerticalRulerEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotless-ext-greclipse Show documentation
Show all versions of spotless-ext-greclipse Show documentation
Groovy Eclipse's formatter bundled for Spotless
The newest version!
/*******************************************************************************
* Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jface.text.source;
import org.eclipse.swt.widgets.Event;
/**
* 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;
private Event fEvent;
/**
* Creates a new event.
*
* @param annotation the annotation concerned, or null
*/
public VerticalRulerEvent(Annotation annotation) {
fAnnotation= annotation;
}
/**
* Creates a new event.
*
* @param annotation the annotation concerned, or null
* @param event the SWT event that triggered this vertical ruler event, or null
* @since 3.8
*/
public VerticalRulerEvent(Annotation annotation, Event event) {
fAnnotation= annotation;
fEvent= event;
}
/**
* @return the concerned annotation or null
*/
public Annotation getSelectedAnnotation() {
return fAnnotation;
}
/**
* @param annotation the concerned annotation, or null
*/
public void setSelectedAnnotation(Annotation annotation) {
fAnnotation= annotation;
}
/**
* @return the SWT event that triggered this vertical ruler event, or null
.
* @since 3.8
*/
public Event getEvent() {
return fEvent;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy