Skip to main content
summaryrefslogtreecommitdiffstats
blob: fa89e2d4baea73ffd6c51507271e83be1404b0c3 (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
/*******************************************************************************
 * Copyright (c) 2001, 2004 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
 *     Jens Lukowski/Innoopract - initial renaming/restructuring
 *     
 *******************************************************************************/
package org.eclipse.wst.sse.ui.internal.reconcile;

import org.eclipse.jface.text.reconciler.IReconcileStep;


/**
 * Implementation of <code>IReconcileAnnotationKey</code> note: clients
 * should use the method StructuredReconcileStep#createKey(String
 * partitionType, int scope)
 * 
 * @author pavery
 */
public class ReconcileAnnotationKey {
    
    public static final int PARTIAL = 1;
    public static final int TOTAL = 0;
    
	private String fPartitionType = null;

	private IReconcileStep fReconcileStep = null;
	private int fScope;

	public ReconcileAnnotationKey(IReconcileStep step, String partitionType, int scope) {
		fReconcileStep = step;
		fPartitionType = partitionType;
		fScope = scope;
	}

	public String getPartitionType() {
		return fPartitionType;
	}

	public int getScope() {
		return fScope;
	}

	public IReconcileStep getStep() {
		return fReconcileStep;
	}

	public String toString() {
		return this.getClass() + "\r\nid: " + fPartitionType; //$NON-NLS-1$
	}
}

Back to the top