Class CreateShortcut

  • All Implemented Interfaces:
    OSHostable, Referenceable

    public class CreateShortcut
    extends Action
    implements OSHostable
    Creates an alias (Mac OS X), symbolic link (Unix and Linux), or shortcut (Windows).
    • Constructor Detail

      • CreateShortcut

        public CreateShortcut()
    • Method Detail

      • setTargetAction

        public void setTargetAction​(FileAction file)
        The target action the shortcut should point to. This can be a FileAction, a CreateLaunchAnywhere action or a CreateUninstaller action.
      • getTargetAction

        public FileAction getTargetAction()
        The target action the shortcut should point to. This can be a FileAction, a CreateLaunchAnywhere action or a CreateUninstaller action.
      • setShortcutIcon

        public void setShortcutIcon​(FileIcon shortcutIcon)
        The icon that will be used for the shortcut.
      • getShortcutIcon

        public FileIcon getShortcutIcon()
        The icon that will be used for the shortcut.
      • setWindowsArguments

        public void setWindowsArguments​(java.lang.String args)
        The arguments used for the shortcut to launch the target program, on a Windows environment.
      • getWindowsArguments

        public java.lang.String getWindowsArguments()
        The arguments used for the shortcut to launch the target program, on a Windows environment.
      • setUseInstalledFile

        public void setUseInstalledFile​(boolean b)
        Whether an installed file should be used rather than an existant one.
      • getUseInstalledFile

        public boolean getUseInstalledFile()
        Whether an installed file should be used rather than an existant one.
      • setExistingFile

        public void setExistingFile​(java.lang.String path)
        The path of the existing file.
      • getExistingFile

        public java.lang.String getExistingFile()
        The path of the existing file.
      • setWindowsStartDir

        public void setWindowsStartDir​(java.lang.String startIn)
        The Windows start dir, where the target program should be started from.
      • getWindowsStartDir

        public java.lang.String getWindowsStartDir()
        The Windows start dir, where the target program should be started from.
      • getDestinationName

        public java.lang.String getDestinationName()
        The destination for the shortcut.
      • setDestinationName

        public void setDestinationName​(java.lang.String DestinationName)
        The destination for the shortcut.
      • getShouldUninstall

        public boolean getShouldUninstall()
        Whether the shortcut should be uninstalled.
      • setShouldUninstall

        public void setShouldUninstall​(boolean ShouldUninstall)
        Whether the shortcut should be uninstalled.