Skip to main content
summaryrefslogtreecommitdiffstats
blob: 6eec9d3698e064f1987ba7cfb1e48cfdfd302671 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
/*******************************************************************************
 * Copyright (c) 2016 Obeo 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:
 *     Obeo - initial API and implementation
 *     Martin Fleck - resource set hook extension for bug 495259
 *******************************************************************************/
package org.eclipse.emf.compare.ide.ui.tests.framework.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * THIS ANNOTATION IS MANDATORY.
 * 
 * <pre>
 * The paths to the file we want to compare.
 * </pre>
 * 
 * @author <a href="mailto:mathieu.cartaud@obeo.fr">Mathieu Cartaud</a>
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Compare {

	/**
	 * Path to the file used for the left side.
	 * 
	 * @return the value
	 */
	String left();

	/**
	 * Path to the file used for the right side.
	 * 
	 * @return the value
	 */
	String right();

	/**
	 * Path to the file used for the ancestor side. If set, the comparison will be 3-way, 2-way otherwise.
	 * 
	 * @return the value or an empty String if not used
	 */
	String ancestor() default "";

	/**
	 * Classes of resource set hooks to consider during resource loading.
	 */
	Class<?>[] resourceSetHooks() default {};
}

Back to the top