Revision 1754 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.api/src/main/java/org/gvsig/tools/swing/api/ToolsSwingLocator.java
ToolsSwingLocator.java | ||
---|---|---|
28 | 28 |
import org.gvsig.tools.locator.LocatorException; |
29 | 29 |
import org.gvsig.tools.swing.api.evaluator.ComponentSwingManager; |
30 | 30 |
import org.gvsig.tools.swing.api.reminder.DialogReminderManager; |
31 |
import org.gvsig.tools.swing.api.script.ScriptSwingManager; |
|
31 | 32 |
import org.gvsig.tools.swing.api.task.TaskStatusSwingManager; |
32 | 33 |
import org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager; |
33 | 34 |
import org.gvsig.tools.swing.api.usability.UsabilitySwingManager; |
... | ... | |
52 | 53 |
"Tools Usability Swing Manager"; |
53 | 54 |
|
54 | 55 |
private static final String TASKSTATUS_SWING_MANAGER_NAME = "Tools.task.swing.manager"; |
55 |
|
|
56 | 56 |
private static final String TASKSTATUS_SWING_MANAGER_DESCRIPTION = "Tools Task Swing Manager"; |
57 | 57 |
|
58 | 58 |
private static final String WINDOW_MANAGER_NAME = "Tools.swing.windowmanager"; |
... | ... | |
78 | 78 |
public static final String PLUGINS_DIALOGREMINDER_MANAGER_NAME = "DialogReminderManager"; |
79 | 79 |
private static final String PLUGINS_DIALOGREMINDER_MANAGER_DESCRIPTION = "DialogReminderManager"; |
80 | 80 |
|
81 |
|
|
82 |
private static final String SCRIPT_SWING_MANAGER_NAME = "Tools.script.swing.manager"; |
|
83 |
private static final String SCRIPT_SWING_MANAGER_DESCRIPTION = "Tools Script Swing Manager"; |
|
84 |
|
|
81 | 85 |
/** |
82 | 86 |
* Unique instance. |
83 | 87 |
*/ |
... | ... | |
297 | 301 |
getInstance().registerDefault(PLUGINS_DIALOGREMINDER_MANAGER_NAME, PLUGINS_DIALOGREMINDER_MANAGER_DESCRIPTION, |
298 | 302 |
clazz); |
299 | 303 |
} |
304 |
|
|
305 |
public static ScriptSwingManager getScriptSwingManager() throws LocatorException { |
|
306 |
return (ScriptSwingManager) (DialogReminderManager) getInstance().get(SCRIPT_SWING_MANAGER_NAME); |
|
307 |
} |
|
308 |
|
|
309 |
public static void registerScriptSwingManager(Class clazz) { |
|
310 |
getInstance().register(SCRIPT_SWING_MANAGER_NAME, SCRIPT_SWING_MANAGER_DESCRIPTION, |
|
311 |
clazz); |
|
312 |
} |
|
313 |
|
|
314 |
public static void registerDefaultScriptSwingManager(Class clazz) { |
|
315 |
getInstance().registerDefault( |
|
316 |
SCRIPT_SWING_MANAGER_NAME, |
|
317 |
SCRIPT_SWING_MANAGER_DESCRIPTION, |
|
318 |
clazz |
|
319 |
); |
|
320 |
} |
|
321 |
|
|
300 | 322 |
} |
Also available in: Unified diff