blob: e0a916bbd17a105d08d1b301fa63f2bcf46bb6d4 (
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) 2001, 2005 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.validator;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.text.IDocument;
import org.eclipse.wst.validation.internal.provisional.core.IValidationContext;
public class IncrementalHelper implements IValidationContext {
private IProject fProject;
private String fURI = null;
public IncrementalHelper(IDocument sourceDocument, IProject project) {
super();
fProject = project;
}
public String getPortableName(IResource resource) {
return resource.getProjectRelativePath().toString();
}
public IProject getProject() {
return fProject;
}
public Object loadModel(String symbolicName) {
return null;
}
public Object loadModel(String symbolicName, Object[] parms) {
return null;
}
void setURI(String uri) {
fURI = uri;
}
public String[] getURIs() {
if(fURI != null)
return new String[]{fURI};
return new String[0];
}
}
|