Statistics
| Revision:

svn-gvsig-desktop / tags / v2_0_0_Build_2057 / frameworks / _fwAndami / src / org / gvsig / andami / PluginsManager.java @ 39145

History | View | Annotate | Download (1.75 KB)

1 31413 jjdelcerro
package org.gvsig.andami;
2
3 34114 fdiaz
import java.io.File;
4 31413 jjdelcerro
import java.util.Iterator;
5
import java.util.List;
6
7
import org.gvsig.andami.plugins.ExclusiveUIExtension;
8
import org.gvsig.andami.plugins.IExtension;
9 38809 jldominguez
import org.gvsig.installer.lib.api.PackageInfo;
10 31413 jjdelcerro
11
public interface PluginsManager {
12 34114 fdiaz
    /**
13
     * Return the associated pluginServices to the extension class passed as parameter.
14
     * @param extension
15
     * @return
16
     */
17 34318 cordinyana
        public PluginServices getPlugin(Class<? extends IExtension> extension);
18 34114 fdiaz
19 31413 jjdelcerro
        public PluginServices getPlugin(String pluginName);
20 38809 jldominguez
21
        public PackageInfo getPackageInfo(Class<? extends IExtension> extension);
22
23 31413 jjdelcerro
        public List<PluginServices> getPlugins();
24
25 34318 cordinyana
        public IExtension getExtension(Class<? extends IExtension> extension);
26 31413 jjdelcerro
        public Iterator<IExtension> getExtensions();
27
28
        public void setExclusiveUIExtension(ExclusiveUIExtension extension);
29
30
        public ExclusiveUIExtension getExclusiveUIExtension();
31 34485 cordinyana
32
    /**
33
     * @deprecated @see {@link #getPluginsFolder()}
34
     */
35
    @Deprecated
36 34114 fdiaz
        public File getPluginsDirectory();
37 31413 jjdelcerro
38 34818 nfrancisco
    public String getText(Object obj, String msg);
39
40 34485 cordinyana
    /**
41 34946 jjdelcerro
     * Returns the main application folder, where the application is installed.
42 34485 cordinyana
     *
43
     * @return the main application folder
44
     */
45
    public File getApplicationFolder();
46
47
    /**
48 34946 jjdelcerro
     * Returns the application folder in the home of user.
49
     *
50
     * @return the main application folder
51
     */
52
    public File getApplicationHomeFolder();
53
54
    /**
55 34485 cordinyana
     * Returns the plugins folder.
56
     *
57
     * @return the plugins folder
58
     */
59
    public File getPluginsFolder();
60
61
    /**
62
     * Returns the default folder with the installable package bundles.
63
     *
64
     * @return the default folder with the installable package bundles
65
     */
66
    public File getInstallFolder();
67 31413 jjdelcerro
}