|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.denova.runtime.UnixMenu
Manage unix launch script, including KDE menu.
| Field Summary | |
static java.lang.String |
MenuExtension
|
static java.lang.String |
UnixMenuLogFilename
|
| Constructor Summary | |
UnixMenu()
Contructor must be called before accessing any UnixOS methods. |
|
UnixMenu(com.denova.io.Log parentsLog)
Contructor must be called before accessing any UnixOS methods. |
|
| Method Summary | |
void |
addLaunchScript()
Add launch script and KDE/gnmoe menus, if KDE/gnome present on target. |
void |
addLaunchScript(boolean useJavaCommandPrefix,
boolean useJavaConsole,
java.lang.String javaCommandPrefix)
Add launch script and KDE/gnome menu, if KDE/gnome present on target. |
void |
addLaunchScript(boolean useJavaCommandPrefix,
boolean useJavaConsole,
java.lang.String javaCommandPrefix,
boolean addKdeMenu,
boolean addGnomeMenu)
Add launch script and KDE/gnome menu, if KDE/gnome present on target. |
void |
addLaunchScript(boolean useJavaCommandPrefix,
boolean useJavaConsole,
java.lang.String javaCommandPrefix,
boolean addKdeMenu,
boolean addGnomeMenu,
java.lang.String echoMessage)
Add launch script. |
static void |
clearError()
Clear the last error info. |
boolean |
createGnomeMenu(java.lang.String startCommand,
boolean useConsole)
Create a Gnome menu, if Gnome's desktop is present on target. |
boolean |
createKdeMenu(java.lang.String startCommand,
boolean useConsole)
Create a KDE menu, if KDE present on target. |
void |
deleteGnomeMenu(java.lang.String submenu,
java.lang.String menuName)
Delete a Gnome menu. |
void |
deleteKdeMenu(java.lang.String submenu,
java.lang.String menuName)
Delete a KDE menu. |
void |
deleteLaunchScript(java.lang.String scriptName)
Delete launch script and KDE menu, if menuName defined and KDE present. |
void |
deleteLaunchScript(java.lang.String scriptName,
java.lang.String submenu,
java.lang.String longName)
Delete launch script and KDE menu, if menuName defined and KDE present. |
java.util.List |
getCreatedDirs()
Get the list of any newly created dirs while creating menu. |
static java.lang.String |
getGnomeMenuDir()
Return the main Gnome menu directory. |
java.lang.String |
getKdeAutostartDir()
Return the KDE autostart directory. |
static java.lang.String |
getKdeMenuDir()
Return the main KDE menu directory. |
static java.lang.String |
getKdeMenuName(java.lang.String longName,
java.lang.String shortName)
Gets the kde menu name. |
java.lang.String |
getKdeMenuName(java.lang.String submenu,
java.lang.String longName,
java.lang.String shortName)
Get the KDE menu filename. |
static java.lang.String |
getLastError()
Gets the last error. |
static java.lang.Exception |
getLastException()
Returns the last exception detected. |
static java.lang.String |
getMenuName(java.lang.String longName,
java.lang.String shortName)
Gets the menu name. |
static java.lang.String |
getSubmenuDir(java.lang.String menuDirname,
java.lang.String submenu)
Get the submenu dir for KDE/Gnome. |
static boolean |
gnomeMenusInstalled()
Determine if the gnome menus are installed. |
static boolean |
isError()
Returns true if there was an error during the last operation. |
static boolean |
kdeMenusInstalled()
Determine if KDE menus are installed. |
void |
setCommandLineArguments(java.lang.String newCommandLineArguments)
Set the command line arguments for the menu. |
void |
setExecutableFile(java.lang.String newExecutableFile)
Set the executable file for the menu. |
void |
setIconFilename(java.lang.String newIconFilename)
Set the icon filename for the menu. |
void |
setInstallDir(java.lang.String newInstallDir)
Set the install directory for the menu. |
void |
setLaunchDirName(java.lang.String dirName)
Set the directory where launch scripts are created. |
void |
setLongName(java.lang.String newLongName)
Set the desktop name for the menu. |
void |
setShortName(java.lang.String newShortName)
Set the launch script name for the menu. |
void |
setSubmenu(java.lang.String newSubmenu)
Set the submenu name for the menu. |
void |
setWorkingDir(java.lang.String newWorkingDir)
Set the workingDir for the menu. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String UnixMenuLogFilename
public static final java.lang.String MenuExtension
| Constructor Detail |
public UnixMenu()
public UnixMenu(com.denova.io.Log parentsLog)
parentsLog - parent class' log.| Method Detail |
public static boolean isError()
public static java.lang.Exception getLastException()
public static java.lang.String getLastError()
public static void clearError()
public void setSubmenu(java.lang.String newSubmenu)
newSubmenu - the menu's folderpublic void setInstallDir(java.lang.String newInstallDir)
newInstallDir - the directory where the executbable file ispublic void setWorkingDir(java.lang.String newWorkingDir)
newWorkingDir - the working directory where the program runs.public void setLaunchDirName(java.lang.String dirName)
dirName - directory where launch scripts are createdpublic void setLongName(java.lang.String newLongName)
newLongName - name for desktoppublic void setShortName(java.lang.String newShortName)
newShortName - name for the launch scriptpublic void setExecutableFile(java.lang.String newExecutableFile)
newExecutableFile - command (without the path) to
launch when itemName selected.public void setCommandLineArguments(java.lang.String newCommandLineArguments)
newCommandLineArguments - any additional arguments needed for the executableFilepublic void setIconFilename(java.lang.String newIconFilename)
newIconFilename - the full path to the iconpublic static boolean kdeMenusInstalled()
public static boolean gnomeMenusInstalled()
public static java.lang.String getKdeMenuDir()
public static java.lang.String getSubmenuDir(java.lang.String menuDirname,
java.lang.String submenu)
menuDirname - name of directory for menussubmenu - name of folder for the menu items or blank.public static java.lang.String getGnomeMenuDir()
public static java.lang.String getMenuName(java.lang.String longName,
java.lang.String shortName)
longName - shortName -
public void addLaunchScript()
public void addLaunchScript(boolean useJavaCommandPrefix,
boolean useJavaConsole,
java.lang.String javaCommandPrefix)
useJavaCommandPrefix - add java command prefix to executable file.useJavaConsole - use the java console if truejavaCommandPrefix - java command prefix, if this is a java command.
public void addLaunchScript(boolean useJavaCommandPrefix,
boolean useJavaConsole,
java.lang.String javaCommandPrefix,
boolean addKdeMenu,
boolean addGnomeMenu)
useJavaCommandPrefix - add java command prefix to executable file.useJavaConsole - use the java console if truejavaCommandPrefix - java command prefix, if this is a java command.addKdeMenu - true if kde menu should be created, if kde is installed.addGnomeMenu - true if gnome menu should be created, if gnome is installed.
public void addLaunchScript(boolean useJavaCommandPrefix,
boolean useJavaConsole,
java.lang.String javaCommandPrefix,
boolean addKdeMenu,
boolean addGnomeMenu,
java.lang.String echoMessage)
useJavaCommandPrefix - add java command prefix to executable file.useJavaConsole - use the java console if truejavaCommandPrefix - java command prefix, if this is a java command.addKdeMenu - true if kde menu should be created, if kde is installed.addGnomeMenu - true if gnome menu should be created, if gnome is installed.echoMessage - message to echo to console when script runspublic void deleteLaunchScript(java.lang.String scriptName)
scriptName -
public void deleteLaunchScript(java.lang.String scriptName,
java.lang.String submenu,
java.lang.String longName)
scriptName - submenu - longName -
public boolean createKdeMenu(java.lang.String startCommand,
boolean useConsole)
startCommand - useConsole -
public void deleteKdeMenu(java.lang.String submenu,
java.lang.String menuName)
submenu - menuName -
public static java.lang.String getKdeMenuName(java.lang.String longName,
java.lang.String shortName)
longName - shortName -
public java.lang.String getKdeMenuName(java.lang.String submenu,
java.lang.String longName,
java.lang.String shortName)
submenu - longName - shortName -
public java.lang.String getKdeAutostartDir()
public boolean createGnomeMenu(java.lang.String startCommand,
boolean useConsole)
startCommand - useConsole -
public void deleteGnomeMenu(java.lang.String submenu,
java.lang.String menuName)
submenu - menuName - public java.util.List getCreatedDirs()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||