public class WinAssociations
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.
|
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").