1 /*******************************************************************************
2 * Copyright (C) 2016, Thomas Wolf <thomas.wolf@paranor.ch>
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
10 *******************************************************************************/
11 package org
.eclipse
.egit
.ui
.internal
.commit
;
14 * Something that can translate physical to logical line numbers.
16 public interface ILogicalLineNumberProvider
{
19 * Translates a physical line number to a logical one.
22 * of the physical line
23 * @return the logical line number, or -1 if none
25 int getLogicalLine(int lineNumber
);
28 * Determines the largest line number this
29 * {@link ILogicalLineNumberProvider} will return.
31 * @return the maximum line number, or -1 if unknown