|
install4j API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.install4j.api.windows.WinAssociations
public class WinAssociations
Collection of static methods to create and remove file associations on Microsoft Windows.
| Method Summary | |
|---|---|
static void |
create(java.lang.String extension,
java.lang.String description,
java.io.File iconFile,
java.io.File executable)
Creates a file association. |
static boolean |
exists(java.lang.String extension)
Checks whether a file association already exists. |
static java.lang.String |
getExecutable(java.lang.String extension)
Retrieves the executable associated with an extension. |
static void |
remove(java.lang.String extension)
Removes a file association. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void create(java.lang.String extension,
java.lang.String description,
java.io.File iconFile,
java.io.File executable)
extension - the extension including the leading dot (e.g. ".doc").description - a description of the file type.iconFile - the icon file for the document. May be null.executable - the executable that shall be called with the file
as parameter.public static boolean exists(java.lang.String extension)
extension - the extension including the leading dot (e.g. ".doc").
public static java.lang.String getExecutable(java.lang.String extension)
extension - the extension including the leading dot (e.g. ".doc").
public static void remove(java.lang.String extension)
extension - the extension including the leading dot (e.g. ".doc").
|
install4j API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||