use of org.springframework.ide.vscode.commons.yaml.structure.YamlStructureProvider in project sts4 by spring-projects.
the class MockYamlEditor method parseStructure.
public SRootNode parseStructure() throws Exception {
YamlStructureProvider sp = YamlStructureProvider.DEFAULT;
TextDocument _doc = new TextDocument(null, getLanguageId());
_doc.setText(text);
YamlDocument doc = new YamlDocument(_doc, sp);
return sp.getStructure(doc);
}
Aggregations