public interface PluginsManager
Modifier and Type | Method and Description |
---|---|
void |
addShutdownTask(java.lang.String name,
java.lang.Runnable task,
boolean in_event_thread,
int priority)
This method allows plugins register task to do after close the application.
|
void |
addStartupTask(java.lang.String name,
java.lang.Runnable task,
boolean in_event_thread,
int priority)
This method allows plugins register task to do before initializacion of
all gvSIG plugins.
|
boolean |
desktopBrowse(java.net.URI uri)
Browses to a given URI
|
boolean |
desktopOpen(java.io.File file)
Open a given file
|
void |
executeShutdownTasks()
This method executes registered task to run after the close of the application.
|
void |
executeStartupTasks()
This method executes registered task to run before the initialization of
all plugins.
|
java.io.File |
getApplicationFolder()
Returns the main application folder, where the application is installed.
|
java.io.File |
getApplicationHomeFolder()
Returns the application folder in the home of user.
|
java.io.File |
getApplicationI18nFolder()
Returns the default folder where the internationalization files are installed.
|
java.lang.String |
getApplicationName() |
Version |
getApplicationVersion() |
Arguments |
getArguments() |
ExclusiveUIExtension |
getExclusiveUIExtension()
Return the ExclusiveUIExtension installed in the application or
null.
|
IExtension |
getExtension(java.lang.Class<? extends IExtension> extension)
Gets the instance of the extension whose class is provided.
|
IExtension |
getExtension(java.lang.String extension)
Gets the instance of the extension whose class name is provided.
|
java.util.Iterator<IExtension> |
getExtensions()
Return an iterator over al extensions loaded in the application.
|
FirewallConfiguration |
getFirewallConfiguration() |
java.io.File |
getInstallFolder()
Returns the default folder with the installable package bundles.
|
PackageInfo |
getPackageInfo()
Get the package info associated to the application.
|
PackageInfo |
getPackageInfo(java.lang.Class<? extends IExtension> extension)
Get the package info associated to the plugin of the extension.
|
PackageInfo |
getPackageInfo(java.lang.String pluginName)
Get the package info associated to the plugin with the specified name.
|
PluginServices |
getPlugin(java.lang.Class<? extends IExtension> extension)
Return the associated pluginServices to the extension class passed as
parameter.
|
PluginServices |
getPlugin(java.lang.Object obj)
Return the associated pluginServices to the object passed as parameter.
|
PluginServices |
getPlugin(java.lang.String pluginName)
Return the associated pluginServices to the extension plugin.
|
java.io.File |
getPluginHomeFolder(java.lang.String pluginName) |
java.util.List<PluginServices> |
getPlugins()
Return the list of plugins loaded in the application
|
java.io.File |
getPluginsDirectory()
Deprecated.
@see
getPluginsFolders() |
java.io.File |
getPluginsFolder()
Deprecated.
|
java.util.List<java.io.File> |
getPluginsFolders()
Returns a list of folder on the plugins are instaleds.
|
java.io.File |
getTempFile(java.lang.String name)
Get the file name in the temporary folder of the plugins framework.
|
java.io.File |
getTempFile(java.lang.String name,
java.lang.String sufix)
Create a unique file name in the temporary folder of the plugins framework.
|
java.io.File |
getTempFolder()
Gets the temporary folder of the plugins framework.
|
java.lang.String |
getText(java.lang.Object obj,
java.lang.String msg)
Deprecated.
|
java.util.List<IUnsavedData> |
getUnsavedData()
Return a list of unsaved data
|
void |
saveUnsavedData(java.util.List<IUnsavedData> unsavedData)
Save the provided unsaved data as parameter
|
void |
setExclusiveUIExtension(ExclusiveUIExtension extension)
Set an extension to control the visivility of all the extensions
of the application.
|
java.lang.String |
translate(java.lang.String msg)
Translate the message key to the current language used
in the application.
|
java.lang.String getApplicationName()
PluginServices getPlugin(java.lang.Class<? extends IExtension> extension)
extension
- PluginServices getPlugin(java.lang.Object obj)
object
- PluginServices getPlugin(java.lang.String pluginName)
pluginName,
- name of the pluginjava.io.File getPluginHomeFolder(java.lang.String pluginName)
PackageInfo getPackageInfo(java.lang.Class<? extends IExtension> extension)
extension
- extension of the pluginPackageInfo getPackageInfo(java.lang.String pluginName)
pluginName,
- name of the pluginPackageInfo getPackageInfo()
java.util.List<PluginServices> getPlugins()
IExtension getExtension(java.lang.Class<? extends IExtension> extension)
extension,
- class of the extension to retrieveIExtension getExtension(java.lang.String extension)
extension,
- class name of the extension to retrievejava.util.Iterator<IExtension> getExtensions()
void setExclusiveUIExtension(ExclusiveUIExtension extension)
extension
- ExclusiveUIExtension getExclusiveUIExtension()
java.lang.String getText(java.lang.Object obj, java.lang.String msg)
translate(String)
#translate(String)}
java.lang.String translate(java.lang.String msg)
msg
- key to translatejava.io.File getApplicationFolder()
java.io.File getInstallFolder()
java.io.File getApplicationHomeFolder()
java.io.File getApplicationI18nFolder()
java.io.File getPluginsFolder()
getPluginsFolders()
java.util.List<java.io.File> getPluginsFolders()
java.io.File getPluginsDirectory()
getPluginsFolders()
void addStartupTask(java.lang.String name, java.lang.Runnable task, boolean in_event_thread, int priority)
name
- of the tasktask
- runnable with the code of the taskin_event_thread,
- true if the task shoul run in the AWT event thread.priority
- of the task.void addShutdownTask(java.lang.String name, java.lang.Runnable task, boolean in_event_thread, int priority)
name
- of the tasktask
- runnable with the code of the taskin_event_thread,
- true if the task shoul run in the AWT event thread.priority
- of the task.void executeStartupTasks()
void executeShutdownTasks()
FirewallConfiguration getFirewallConfiguration()
Version getApplicationVersion()
java.util.List<IUnsavedData> getUnsavedData()
void saveUnsavedData(java.util.List<IUnsavedData> unsavedData) throws UnsavedDataException
unsavedData
- UnsavedDataException
java.io.File getTempFolder()
java.io.File getTempFile(java.lang.String name)
name
- java.io.File getTempFile(java.lang.String name, java.lang.String sufix)
name
- base name used for create the unique file namesufix
- to add the the unique file nameboolean desktopBrowse(java.net.URI uri)
uri
- boolean desktopOpen(java.io.File file)
file
- Arguments getArguments()