root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / PluginsManager.java @ 38618
History | View | Annotate | Download (1.63 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 | |||
10 | public interface PluginsManager { |
||
11 | 34114 | fdiaz | /**
|
12 | * Return the associated pluginServices to the extension class passed as parameter.
|
||
13 | * @param extension
|
||
14 | * @return
|
||
15 | */
|
||
16 | 34318 | cordinyana | public PluginServices getPlugin(Class<? extends IExtension> extension); |
17 | 34114 | fdiaz | |
18 | 31413 | jjdelcerro | public PluginServices getPlugin(String pluginName); |
19 | public List<PluginServices> getPlugins(); |
||
20 | |||
21 | 34318 | cordinyana | public IExtension getExtension(Class<? extends IExtension> extension); |
22 | 31413 | jjdelcerro | public Iterator<IExtension> getExtensions(); |
23 | |||
24 | public void setExclusiveUIExtension(ExclusiveUIExtension extension); |
||
25 | |||
26 | public ExclusiveUIExtension getExclusiveUIExtension();
|
||
27 | 34485 | cordinyana | |
28 | /**
|
||
29 | * @deprecated @see {@link #getPluginsFolder()}
|
||
30 | */
|
||
31 | @Deprecated
|
||
32 | 34114 | fdiaz | public File getPluginsDirectory(); |
33 | 31413 | jjdelcerro | |
34 | 34818 | nfrancisco | public String getText(Object obj, String msg); |
35 | |||
36 | 34485 | cordinyana | /**
|
37 | 34946 | jjdelcerro | * Returns the main application folder, where the application is installed.
|
38 | 34485 | cordinyana | *
|
39 | * @return the main application folder
|
||
40 | */
|
||
41 | public File getApplicationFolder(); |
||
42 | |||
43 | /**
|
||
44 | 34946 | jjdelcerro | * Returns the application folder in the home of user.
|
45 | *
|
||
46 | * @return the main application folder
|
||
47 | */
|
||
48 | public File getApplicationHomeFolder(); |
||
49 | |||
50 | /**
|
||
51 | 34485 | cordinyana | * 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 | 31413 | jjdelcerro | } |