use of com.reprezen.swagedit.core.editor.JsonDocument in project KaiZen-OpenAPI-Editor by RepreZen.
the class JsonFileHyperlink method getTarget.
private IRegion getTarget() throws CoreException {
JsonDocument doc = null;
try {
String content = DocumentUtils.getDocumentContent(file.getLocation());
doc = createDocument();
doc.set(content);
} catch (IOException e) {
return null;
}
return doc.getRegion(pointer);
}
Aggregations