public class AppLauncher
extends java.lang.Object
Constructor and Description |
---|
AppLauncher() |
Modifier and Type | Method and Description |
---|---|
void |
addAppExt(java.lang.String fileExt,
java.lang.String execPath) |
void |
copy(AppLauncher other)
Copies the data from another AppLauncher into this one.
|
java.util.Set |
getAppList() |
java.lang.String |
getAppName(java.lang.String path)
Returns the application associated to the given file extension.
|
int |
getCount() |
static AppLauncher |
getInstance() |
static boolean |
isEmptyOrBlank(java.lang.String s) |
void |
launchApp(java.lang.String path,
java.awt.Component comp)
Launches an external app depending on the extension of the path
provided, passing the path as an argument to the executable.
|
void |
loadExts()
load extension properties from file
|
void |
removeAppExt(java.lang.Object fileExt) |
void |
storeExts() |
public static AppLauncher getInstance()
public java.util.Set getAppList()
public void addAppExt(java.lang.String fileExt, java.lang.String execPath)
public static boolean isEmptyOrBlank(java.lang.String s)
public void removeAppExt(java.lang.Object fileExt)
public int getCount()
public void loadExts() throws java.io.IOException
java.io.IOException
public void storeExts() throws java.io.IOException
java.io.IOException
public void launchApp(java.lang.String path, java.awt.Component comp)
public void copy(AppLauncher other)
public java.lang.String getAppName(java.lang.String path)