Package lombok

Examples of lombok.val.newLine()


        // specify working directory if shortcut to application
        bw.write("Path=" + applicationWorkingDirectory);
        bw.newLine();
        // executable and arguments
        bw.write("Exec=" + linkedResourceAbsPath);
        bw.newLine();
      }

      bw.flush();
      bw.close();
    }
View Full Code Here


      // windows OS
      val bw = new BufferedWriter(new FileWriter(shortcutAbsPath, false));

      bw.write("[InternetShortcut]");
      bw.newLine();

      // path to file/folder
      bw.write("URL=file:*" + linkedResourceAbsPath);
      bw.newLine();
      // working directory is required, whether specified or not
View Full Code Here

    tryDeleteFile(shortcutAbsPath);

    val bw = new BufferedWriter(new FileWriter(shortcutAbsPath, false));

    bw.write("[InternetShortcut]");
    bw.newLine();

    // path to file/folder
    bw.write("URL=" + url);
    bw.newLine();
View Full Code Here

      bw.write("[InternetShortcut]");
      bw.newLine();

      // path to file/folder
      bw.write("URL=file:*" + linkedResourceAbsPath);
      bw.newLine();
      // working directory is required, whether specified or not
      if (applicationWorkingDirectory != null)
      {
        bw.write("WorkingDirectory=" + applicationWorkingDirectory);
        bw.newLine();
View Full Code Here

    bw.write("[InternetShortcut]");
    bw.newLine();

    // path to file/folder
    bw.write("URL=" + url);
    bw.newLine();

    bw.flush();
    bw.close();
  }
View Full Code Here

      bw.newLine();
      // working directory is required, whether specified or not
      if (applicationWorkingDirectory != null)
      {
        bw.write("WorkingDirectory=" + applicationWorkingDirectory);
        bw.newLine();
      } else
      {
        val lrf = new File(linkedResourceAbsPath);
        if (lrf.exists())
        {
View Full Code Here

      // remove old shortcut if it exists
      tryDeleteFile(shortcutAbsPath);

      val bw = new BufferedWriter(new FileWriter(shortcutAbsPath, false));
      bw.write("[Desktop Entry]");
      bw.newLine();

      // icon type to use depends on whether the shortcut link is a file or folder
      if (linkedResourceFile.isFile())
      {
        bw.write("Icon=file");
View Full Code Here

      // icon type to use depends on whether the shortcut link is a file or folder
      if (linkedResourceFile.isFile())
      {
        bw.write("Icon=file");
        bw.newLine();
      } else if (linkedResourceFile.isDirectory())
      {
        bw.write("Icon=folder");
        bw.newLine();
      }
View Full Code Here

        bw.write("Icon=file");
        bw.newLine();
      } else if (linkedResourceFile.isDirectory())
      {
        bw.write("Icon=folder");
        bw.newLine();
      }
      // for applications the type must be Application, we determine that from whether an application working directory was given
      if (applicationWorkingDirectory == null)
      {
        // files and folders
View Full Code Here

      // for applications the type must be Application, we determine that from whether an application working directory was given
      if (applicationWorkingDirectory == null)
      {
        // files and folders
        bw.write("Type=Link");
        bw.newLine();
        // path to file/folder
        bw.write("URL[$e]=file://" + linkedResourceAbsPath);
        bw.newLine();
      } else
      {
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.