blob: 493ad3926c257f056c9d5fac655c751623c21cfe (
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
58
59
60
|
/*
* Copyright (c) 2002 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM - 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 implements IReconcileAnnotationKey {
private IReconcileStep fReconcileStep = null;
private String fPartitionType = null;
private int fScope;
public ReconcileAnnotationKey(IReconcileStep step, String partitionType, int scope) {
fReconcileStep = step;
fPartitionType = partitionType;
fScope = scope;
}
/**
* @see org.eclipse.wst.sse.ui.xml.reconcile.IReconcileAnnotationKey#getId()
*/
public String getPartitionType() {
return fPartitionType;
}
/**
* @see org.eclipse.wst.sse.ui.xml.reconcile.IReconcileAnnotationKey#getScope()
*/
public int getScope() {
return fScope;
}
/**
* @see org.eclipse.wst.sse.ui.xml.reconcile.IReconcileAnnotationKey#getStep()
*/
public IReconcileStep getStep() {
return fReconcileStep;
}
public String toString() {
return this.getClass() + "\r\nid: " + fPartitionType + "\nscope: " + fScope; //$NON-NLS-1$ //$NON-NLS-2$
}
}
|