blob: 6808aebd61440602ebc51b780ed012d644712623 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*******************************************************************************
* Copyright (c) 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.team.ui.history;
import org.eclipse.compare.CompareConfiguration;
import org.eclipse.compare.structuremergeviewer.ICompareInput;
import org.eclipse.core.runtime.IProgressMonitor;
/**
* An adaptation for a history page for displaying comparisons
* triggered by history page selections.
*
* @since 3.2
* @see HistoryPageSaveablePart
* @see IHistoryPage
*/
public interface IHistoryCompareAdapter {
/**
* Returns an ICompareInput for the passed in object.
* @param object the object
* @return returns an ICompareInput
*/
public ICompareInput getCompareInput(Object object);
/**
* Prepare the compare input for display. Clients can perform
* any long running preparations and assign labels to the
* compare configuration.
* @param input the compare input
* @param configuration the compare configuration
* @param monitor a progress monitor
*/
public void prepareInput(ICompareInput input, CompareConfiguration configuration, IProgressMonitor monitor);
}
|