Have icon for "reset" entry in reflog
[egit/eclipse.git] / org.eclipse.egit.ui / src / org / eclipse / egit / ui / internal / commit / ILogicalLineNumberProvider.java
blob82fd51ca88cf8762759a3102e17a44ed61fb30a8
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;
13 /**
14 * Something that can translate physical to logical line numbers.
16 public interface ILogicalLineNumberProvider {
18 /**
19 * Translates a physical line number to a logical one.
21 * @param lineNumber
22 * of the physical line
23 * @return the logical line number, or -1 if none
25 int getLogicalLine(int lineNumber);
27 /**
28 * Determines the largest line number this
29 * {@link ILogicalLineNumberProvider} will return.
31 * @return the maximum line number, or -1 if unknown
33 int getMaximum();