All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.jface.text.ITextViewerExtension3 Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2000, 2006 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;


/**
 * Extension interface for {@link org.eclipse.jface.text.ITextViewer}. 

* This interface has been replaced by {@link org.eclipse.jface.text.ITextViewerExtension5}. * Clients are not supposed to use this interface any longer. * * @since 2.1 * @deprecated replaced by {@link org.eclipse.jface.text.ITextViewerExtension5} */ @Deprecated public interface ITextViewerExtension3 { /** * Returns the minimal region of the viewer's document that completely comprises everything that is * visible in the viewer's widget or null if there is no such region. * * @return the minimal region of the viewer's document comprising the contents of the viewer's widget or null */ IRegion getModelCoverage(); /** * Returns the widget line that corresponds to the given line of the viewer's document or -1 if there is no such line. * * @param modelLine the line of the viewer's document * @return the corresponding widget line or -1 */ int modelLine2WidgetLine(int modelLine); /** * Returns the widget offset that corresponds to the given offset in the viewer's document * or -1 if there is no such offset * * @param modelOffset the offset in the viewer's document * @return the corresponding widget offset or -1 */ int modelOffset2WidgetOffset(int modelOffset); /** * Returns the minimal region of the viewer's widget that completely comprises the given region of the * viewer's document or null if there is no such region. * * @param modelRange the region of the viewer's document * @return the minimal region of the widget comprising modelRange or null */ IRegion modelRange2WidgetRange(IRegion modelRange); /** * Returns the offset of the viewer's document that corresponds to the given widget offset * or -1 if there is no such offset * * @param widgetOffset the widget offset * @return the corresponding offset in the viewer's document or -1 */ int widgetOffset2ModelOffset(int widgetOffset); /** * Returns the minimal region of the viewer's document that completely comprises the given widget region * or null if there is no such region. * * @param widgetRange the widget region * @return the minimal region of the viewer's document comprising widgetRange or null */ IRegion widgetRange2ModelRange(IRegion widgetRange); /** * Returns the line of the viewer's document that corresponds to the given widget line or -1 if there is no such line. * * @param widgetLine the widget line * @return the corresponding line of the viewer's document or -1 */ int widgetlLine2ModelLine(int widgetLine); /** * Returns the widget line of the given widget offset. * * @param widgetOffset the widget offset * @return the widget line of the widget offset */ int widgetLineOfWidgetOffset(int widgetOffset); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy