Statistics
| Revision:

root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / PluginsManager.java @ 38608

History | View | Annotate | Download (1.63 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

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

    
28
    /**
29
     * @deprecated @see {@link #getPluginsFolder()}
30
     */
31
    @Deprecated
32
        public File getPluginsDirectory();
33

    
34
    public String getText(Object obj, String msg);
35
    
36
    /**
37
     * Returns the main application folder, where the application is installed.
38
     * 
39
     * @return the main application folder
40
     */
41
    public File getApplicationFolder();
42

    
43
    /**
44
     * Returns the application folder in the home of user.
45
     * 
46
     * @return the main application folder
47
     */
48
    public File getApplicationHomeFolder();
49

    
50
    /**
51
     * Returns the plugins folder.
52
     * 
53
     * @return the plugins folder
54
     */
55
    public File getPluginsFolder();
56

    
57
    /**
58
     * Returns the default folder with the installable package bundles.
59
     * 
60
     * @return the default folder with the installable package bundles
61
     */
62
    public File getInstallFolder();
63
}