public class DesktopStarter extends ProtocolHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
DesktopStarter.Location
Possible locations for desktop/shortcut entries.
|
setup| Constructor and Description |
|---|
DesktopStarter(AbstractSetupBuilder setup)
Create a new DesktopStarter
|
| Modifier and Type | Method and Description |
|---|---|
void |
documentType(groovy.lang.Closure<?> closue)
Register a file extensions.
|
java.lang.String |
getCategories()
Returns the categories separated by semicolon.
|
java.util.List<DocumentType> |
getDocumentType()
Return the registered file extensions or the ones defined by the main setup
|
DesktopStarter.Location |
getLocation()
Get the location of this desktop/shortcut entry.
|
java.lang.String |
getMimeTypes()
Returns the mime types separated by semicolon.
|
void |
setCategories(java.lang.String categories)
Sets the categories as defined by Freedesktop.
|
void |
setLocation(DesktopStarter.Location location)
Set the location of this desktop/shortcut entry.
|
void |
setMimeTypes(java.lang.String mimeTypes)
Sets the mime type is application is associated with.
|
getSchemes, scheme, setSchemegetDescription, getDisplayName, getExecutable, getIconForType, getIcons, getJavaVMArguments, getMainClass, getMainJar, getStartArguments, getWorkDir, setDescription, setDisplayName, setExecutable, setIcons, setJavaVMArguments, setMainClass, setMainJar, setStartArguments, setWorkDirpublic DesktopStarter(AbstractSetupBuilder setup)
setup - current SetupBuilderpublic void setMimeTypes(java.lang.String mimeTypes)
mimeTypes - the mime typepublic java.lang.String getMimeTypes()
public void setCategories(java.lang.String categories)
categories - the categoriespublic java.lang.String getCategories()
public DesktopStarter.Location getLocation()
public void setLocation(DesktopStarter.Location location)
location - new locationpublic void documentType(groovy.lang.Closure<?> closue)
closue - document typepublic java.util.List<DocumentType> getDocumentType()