
org.eclipse.compare.ICompareInputLabelProvider Maven / Gradle / Ivy
Show all versions of org.eclipse.compare Show documentation
/*******************************************************************************
* Copyright (c) 2006, 2011 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.compare;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.swt.graphics.Image;
/**
* A label provider that provides the label and image for the left, right and
* ancestor sides for a compare input being shown in compare/merge viewers.
*
* This interface may be implemented by clients.
*
* @since 3.3
*/
public interface ICompareInputLabelProvider extends ILabelProvider {
/**
* Returns the label for the ancestor side of compare/merge viewers.
* This label is typically shown in the title of the ancestor area in a compare viewer.
*
* @param input the input object of a compare/merge viewer or null
* @return the label for the ancestor side or null
*/
String getAncestorLabel(Object input);
/**
* Returns the image for the ancestor side of compare/merge viewers.
* This image is typically shown in the title of the ancestor area in a compare viewer.
*
* @param input the input object of a compare/merge viewer or null
* @return the image for the ancestor side or null
*/
Image getAncestorImage(Object input);
/**
* Returns the label for the left hand side of compare/merge viewers.
* This label is typically shown in the title of the left side of a compare viewer.
*
* @param input the input object of a compare/merge viewer or null
* @return the label for the left hand side or null
*/
String getLeftLabel(Object input);
/**
* Returns the image for the left hand side of compare/merge viewers.
* This image is typically shown in the title of the left side of a compare viewer.
*
* @param input the input object of a compare/merge viewer or null
* @return the image for the left hand side or null
*/
Image getLeftImage(Object input);
/**
* Returns the label for the right hand side of compare/merge viewers.
* This label is typically shown in the title of the right side of a compare viewer.
*
* @param input the input object of a compare/merge viewer or null
* @return the label for the right hand side or null
*/
String getRightLabel(Object input);
/**
* Returns the image for the right hand side of compare/merge viewers.
* This image is typically shown in the title of the right side of a compare viewer.
*
* @param input the input object of a compare/merge viewer or null
* @return the image for the right hand side or null
*/
Image getRightImage(Object input);
}