Revision 1714 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.util/org.gvsig.tools.util.api/src/main/java/org/gvsig/tools/util/ToolsUtilLocator.java
ToolsUtilLocator.java | ||
---|---|---|
23 | 23 |
* gvsig.com, or visit our website www.gvsig.com. |
24 | 24 |
*/ |
25 | 25 |
|
26 |
import org.gvsig.configurableactions.ConfigurableActionsMamager; |
|
26 | 27 |
import org.gvsig.filedialogchooser.FileDialogChooserManager; |
27 | 28 |
import org.gvsig.imageviewer.ImageViewerManager; |
28 | 29 |
import org.gvsig.svgsupport.SVGSupportManager; |
... | ... | |
51 | 52 |
public static final String PLUGINS_IMAGEVIEWER_MANAGER_NAME = "ImageViewerManager"; |
52 | 53 |
private static final String PLUGINS_IMAGEVIEWER_MANAGER_DESCRIPTION = "ImageViewerManager"; |
53 | 54 |
|
55 |
public static final String CONFIGURABLE_ACTIONS_MANAGER_NAME = "ConfigurableActionsMamager"; |
|
56 |
private static final String CONFIGURABLE_ACTIONS_MANAGER_DESCRIPTION = "ConfigurableActionsMamager"; |
|
57 |
|
|
54 | 58 |
private static final ToolsUtilLocator instance = new ToolsUtilLocator(); |
55 | 59 |
|
56 | 60 |
private ToolsUtilLocator() { |
... | ... | |
142 | 146 |
getInstance().registerDefault(PLUGINS_IMAGEVIEWER_MANAGER_NAME, |
143 | 147 |
PLUGINS_IMAGEVIEWER_MANAGER_DESCRIPTION, clazz); |
144 | 148 |
} |
149 |
|
|
150 |
|
|
151 |
public static ConfigurableActionsMamager getConfigurableActionsMamager() throws LocatorException { |
|
152 |
return (ConfigurableActionsMamager) getInstance().get(CONFIGURABLE_ACTIONS_MANAGER_NAME); |
|
153 |
} |
|
154 |
|
|
155 |
public static void registerConfigurableActionsMamager(Class clazz) { |
|
156 |
getInstance().register(CONFIGURABLE_ACTIONS_MANAGER_NAME, CONFIGURABLE_ACTIONS_MANAGER_DESCRIPTION, |
|
157 |
clazz); |
|
158 |
} |
|
159 |
|
|
160 |
public static void registerDefaultConfigurableActionsMamager(Class clazz) { |
|
161 |
getInstance().registerDefault(CONFIGURABLE_ACTIONS_MANAGER_NAME, |
|
162 |
CONFIGURABLE_ACTIONS_MANAGER_DESCRIPTION, clazz); |
|
163 |
} |
|
164 |
|
|
145 | 165 |
} |
Also available in: Unified diff