| Author | DaveJarvis <email> |
|---|---|
| Date | 2020-06-03 21:09:55 GMT-0700 |
| Commit | 068ec2090f81539f08995569d2a4553dadee8b69 |
| Parent | 1205216 |
| Delta | 7 lines added, 9 lines removed, 2-line decrease |
| import com.scrivenvar.definition.TreeAdapter; | ||
| -import java.io.IOException; | ||
| -import java.io.InputStream; | ||
| -import java.nio.file.Files; | ||
| import java.nio.file.Path; | ||
| import java.util.Map; | ||
| public Map<String, String> getResolvedMap() { | ||
| return getYamlParser().createResolvedMap(); | ||
| - } | ||
| - | ||
| - @Override | ||
| - public void export( final Path path ) { | ||
| - System.out.println( "Export YAML definitions to: " + path.toString() ); | ||
| } | ||
| import javafx.scene.control.TreeItem; | ||
| +import java.nio.file.Path; | ||
| import java.util.Map.Entry; | ||
| /** | ||
| * Transforms a JsonNode hierarchy into a tree that can be displayed in a user | ||
| - * interface. | ||
| + * interface and vice-versa. | ||
| * | ||
| * @author White Magic Software, Ltd. | ||
| */ | ||
| public class YamlTreeAdapter implements TreeAdapter { | ||
| private final DocumentParser<JsonNode> mParser; | ||
| public YamlTreeAdapter( final DocumentParser<JsonNode> parser ) { | ||
| mParser = parser; | ||
| + } | ||
| + | ||
| + @Override | ||
| + public void export( final TreeItem<String> root, final Path path ) { | ||
| + System.out.println( "Export root to path" ); | ||
| } | ||