Examples of RecentFiles


Examples of com.kodcu.bean.RecentFiles

        try {
            YamlReader yamlReader =
                    new YamlReader(new FileReader(configPath.resolve("recentFiles.yml").toFile()));
            yamlReader.getConfig().setClassTag("RecentFiles", RecentFiles.class);
            RecentFiles readed = yamlReader.read(RecentFiles.class);

            readed.getFiles()
                    .stream()
                    .map(path -> Paths.get(path))
                    .forEach(recentFiles::add);
        } catch (YamlException e) {
            e.printStackTrace();
View Full Code Here

Examples of com.kodcu.bean.RecentFiles

                .collect(Collectors.toList());

        File recentFileYml = configPath.resolve("recentFiles.yml").toFile();
        YamlWriter yamlWriter = new YamlWriter(new FileWriter(recentFileYml));
        yamlWriter.getConfig().setClassTag("RecentFiles", RecentFiles.class);
        yamlWriter.write(new RecentFiles(fileList));
        yamlWriter.close();

        //

        File configYml = configPath.resolve("config.yml").toFile();
View Full Code Here

Examples of org.jdraw.utils.RecentFiles

    left = prefs.getInt("window.left", 100);
    width = prefs.getInt("window.width", 640);
    height = prefs.getInt("window.height", 480);
    state = prefs.getInt("window.state", 0);
    String r = prefs.get("recent.files", null);
    recentFiles = new RecentFiles(RECENT_FILE_COUNT);
    if (r != null && r.length() > 0) {
      String[] ra = r.split(";");
      for (int i = ra.length - 1; i >= 0; i--) {
        recentFiles.put(new File(ra[i]));
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.