Class CreateShortcut
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.actions.Action
-
- com.zerog.ia.auto.project.actions.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 Summary
Constructors Constructor Description CreateShortcut()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDestinationName()
The destination for the shortcut.java.lang.String
getExistingFile()
The path of the existing file.FileIcon
getShortcutIcon()
The icon that will be used for the shortcut.boolean
getShouldUninstall()
Whether the shortcut should be uninstalled.FileAction
getTargetAction()
The target action the shortcut should point to.boolean
getUseInstalledFile()
Whether an installed file should be used rather than an existant one.java.lang.String
getWindowsArguments()
The arguments used for the shortcut to launch the target program, on a Windows environment.java.lang.String
getWindowsStartDir()
The Windows start dir, where the target program should be started from.void
setDestinationName(java.lang.String DestinationName)
The destination for the shortcut.void
setExistingFile(java.lang.String path)
The path of the existing file.void
setShortcutIcon(FileIcon shortcutIcon)
The icon that will be used for the shortcut.void
setShouldUninstall(boolean ShouldUninstall)
Whether the shortcut should be uninstalled.void
setTargetAction(FileAction file)
The target action the shortcut should point to.void
setUseInstalledFile(boolean b)
Whether an installed file should be used rather than an existant one.void
setWindowsArguments(java.lang.String args)
The arguments used for the shortcut to launch the target program, on a Windows environment.void
setWindowsStartDir(java.lang.String startIn)
The Windows start dir, where the target program should be started from.-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
setTargetAction
public void setTargetAction(FileAction file)
The target action the shortcut should point to. This can be aFileAction
, aCreateLaunchAnywhere
action or aCreateUninstaller
action.
-
getTargetAction
public FileAction getTargetAction()
The target action the shortcut should point to. This can be aFileAction
, aCreateLaunchAnywhere
action or aCreateUninstaller
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.
-
-