Statistics
| Revision:

svn-gvsig-desktop / tags / v2_0_0_Build_2060 / frameworks / _fwAndami / src / org / gvsig / andami / PluginsManager.java @ 39339

History | View | Annotate | Download (1.75 KB)

1
package org.gvsig.andami;
2

    
3
import java.io.File;
4
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
import org.gvsig.installer.lib.api.PackageInfo;
10

    
11
public interface PluginsManager {
12
    /**
13
     * Return the associated pluginServices to the extension class passed as parameter.
14
     * @param extension
15
     * @return
16
     */
17
        public PluginServices getPlugin(Class<? extends IExtension> extension);
18
        
19
        public PluginServices getPlugin(String pluginName);
20
        
21
        public PackageInfo getPackageInfo(Class<? extends IExtension> extension);
22
        
23
        public List<PluginServices> getPlugins();
24
        
25
        public IExtension getExtension(Class<? extends IExtension> extension);
26
        public Iterator<IExtension> getExtensions();
27
        
28
        public void setExclusiveUIExtension(ExclusiveUIExtension extension);
29
        
30
        public ExclusiveUIExtension getExclusiveUIExtension();
31

    
32
    /**
33
     * @deprecated @see {@link #getPluginsFolder()}
34
     */
35
    @Deprecated
36
        public File getPluginsDirectory();
37

    
38
    public String getText(Object obj, String msg);
39
    
40
    /**
41
     * Returns the main application folder, where the application is installed.
42
     * 
43
     * @return the main application folder
44
     */
45
    public File getApplicationFolder();
46

    
47
    /**
48
     * Returns the application folder in the home of user.
49
     * 
50
     * @return the main application folder
51
     */
52
    public File getApplicationHomeFolder();
53

    
54
    /**
55
     * 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
}