Search in sources :

Example 1 with YamlStructureProvider

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);
}
Also used : TextDocument(org.springframework.ide.vscode.commons.util.text.TextDocument) YamlDocument(org.springframework.ide.vscode.commons.yaml.structure.YamlDocument) YamlStructureProvider(org.springframework.ide.vscode.commons.yaml.structure.YamlStructureProvider)

Aggregations

TextDocument (org.springframework.ide.vscode.commons.util.text.TextDocument)1 YamlDocument (org.springframework.ide.vscode.commons.yaml.structure.YamlDocument)1 YamlStructureProvider (org.springframework.ide.vscode.commons.yaml.structure.YamlStructureProvider)1