Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / PluginsManager.java @ 39598

History | View | Annotate | Download (1.81 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 PackageInfo getPackageInfo(String pluginName);
24
        
25
        public List<PluginServices> getPlugins();
26
        
27
        public IExtension getExtension(Class<? extends IExtension> extension);
28
        public Iterator<IExtension> getExtensions();
29
        
30
        public void setExclusiveUIExtension(ExclusiveUIExtension extension);
31
        
32
        public ExclusiveUIExtension getExclusiveUIExtension();
33

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

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

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

    
56
    /**
57
     * Returns the plugins folder.
58
     * 
59
     * @return the plugins folder
60
     */
61
    public File getPluginsFolder();
62

    
63
    /**
64
     * Returns the default folder with the installable package bundles.
65
     * 
66
     * @return the default folder with the installable package bundles
67
     */
68
    public File getInstallFolder();
69
}