Revision 38564 branches/v2_0_0_prep/frameworks/_fwAndami/src/org/gvsig/andami/PluginsLocator.java
PluginsLocator.java | ||
---|---|---|
1 | 1 |
package org.gvsig.andami; |
2 | 2 |
|
3 |
import org.gvsig.andami.actioninfo.ActionInfoManager; |
|
3 | 4 |
import org.gvsig.tools.locator.AbstractLocator; |
4 | 5 |
import org.gvsig.tools.locator.Locator; |
5 | 6 |
import org.gvsig.tools.locator.LocatorException; |
7 |
import org.gvsig.tools.swing.icontheme.IconThemeManager; |
|
8 |
import org.gvsig.tools.swing.icontheme.impl.DefaultIconThemeManager; |
|
6 | 9 |
|
7 | 10 |
|
8 | 11 |
public class PluginsLocator extends AbstractLocator { |
... | ... | |
13 | 16 |
* PluginsManager name used by the locator to access the instance |
14 | 17 |
*/ |
15 | 18 |
public static final String PLUGINS_MANAGER_NAME = "PluginsManager"; |
19 |
public static final String PLUGINS_ACTIONINFO_MANAGER_NAME = "PluginsActionInfoManager"; |
|
16 | 20 |
|
17 | 21 |
private static final String PLUGINS_MANAGER_DESCRIPTION = "PluginsManager of Andami framework"; |
22 |
private static final String PLUGINS_ACTIONINFO_MANAGER_DESCRIPTION = "PluginsActionInfoManager"; |
|
18 | 23 |
|
19 | 24 |
/** |
20 | 25 |
* Unique instance. |
... | ... | |
51 | 56 |
public static PluginsManager getManager() throws LocatorException { |
52 | 57 |
return (PluginsManager) getInstance().get(PLUGINS_MANAGER_NAME); |
53 | 58 |
} |
54 |
|
|
59 |
|
|
55 | 60 |
/** |
56 | 61 |
* Registers the Class implementing the DataManager interface. |
57 | 62 |
* |
... | ... | |
74 | 79 |
clazz); |
75 | 80 |
} |
76 | 81 |
|
82 |
|
|
83 |
public static ActionInfoManager getActionInfoManager() throws LocatorException { |
|
84 |
return (ActionInfoManager) getInstance().get(PLUGINS_ACTIONINFO_MANAGER_NAME); |
|
85 |
} |
|
86 |
|
|
87 |
public static void registerActionInfoManager(Class clazz) { |
|
88 |
getInstance().register(PLUGINS_ACTIONINFO_MANAGER_NAME, PLUGINS_ACTIONINFO_MANAGER_DESCRIPTION, |
|
89 |
clazz); |
|
90 |
} |
|
91 |
|
|
77 | 92 |
} |
Also available in: Unified diff