blob: ec7eb4c3cf13f53a58ac2a8452eaa7bbb4c7ffe2 [file] [log] [blame]
/*******************************************************************************
* 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;
/**
* Extends <code>IVerticalRulerInfo</code> with the ability to define a custom hover to be used
* when hovering over the <code>IVerticalRuler</code> described by this info instance, and to
* specify the <code>IAnnotationModel</code> used by it.
* @since 3.0
*/
public interface IVerticalRulerInfoExtension {
/**
* Returns the hover for this vertical ruler (column).
* @return the hover for this column
*/
IAnnotationHover getHover();
/**
* Returns the model currently used by the receiver.
* @return the model of the receiver, or <code>null</code> if no model is installed.
*/
IAnnotationModel getModel();
/**
* Registers a vertical ruler listener to be informed if an annotation gets
* selected on the vertical ruler.
*
* @param listener the listener to be informed
*/
void addVerticalRulerListener(IVerticalRulerListener listener);
/**
* Removes a previously registered listener. If <code>listener</code> is not registered
* with the receiver, calling this method has no effect.
*
* @param listener the listener to be removed
*/
void removeVerticalRulerListener(IVerticalRulerListener listener);
}