Revision 1124 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 | ||
---|---|---|
25 | 25 |
|
26 | 26 |
import org.gvsig.tools.locator.BaseLocator; |
27 | 27 |
import org.gvsig.tools.locator.Locator; |
28 |
import org.gvsig.tools.swing.api.dynobject.DynObjectSwingManager; |
|
29 | 28 |
import org.gvsig.tools.swing.api.evaluator.ComponentSwingManager; |
30 | 29 |
import org.gvsig.tools.swing.api.task.TaskStatusSwingManager; |
31 | 30 |
import org.gvsig.tools.swing.api.usability.UsabilitySwingManager; |
... | ... | |
42 | 41 |
public class ToolsSwingLocator extends BaseLocator { |
43 | 42 |
|
44 | 43 |
private static final String LOCATOR_NAME = "Tools.swing.locator"; |
45 |
|
|
46 |
public static final String DYNOBJECT_SWING_MANAGER_NAME = |
|
47 |
"Tools.dynobject.swing.manager"; |
|
48 |
|
|
49 |
public static final String DYNOBJECT_SWING_MANAGER_DESCRIPTION = |
|
50 |
"Tools DynObject Swing Manager"; |
|
51 |
|
|
44 |
|
|
52 | 45 |
public static final String USABILITY_SWING_MANAGER_NAME = |
53 | 46 |
"Tools.usability.swing.manager"; |
54 | 47 |
|
... | ... | |
77 | 70 |
private static final ToolsSwingLocator instance = new ToolsSwingLocator(); |
78 | 71 |
|
79 | 72 |
/** |
80 |
* Gets the instance of the {@link DynObjectSwingManager} registered. |
|
81 |
* |
|
82 |
* @return {@link DynObjectSwingManager} |
|
83 |
*/ |
|
84 |
public static DynObjectSwingManager getDynObjectSwingManager() { |
|
85 |
return (DynObjectSwingManager) getInstance().get( |
|
86 |
DYNOBJECT_SWING_MANAGER_NAME); |
|
87 |
} |
|
88 |
|
|
89 |
/** |
|
90 | 73 |
* Return the {@link Singleton} instance. |
91 | 74 |
* |
92 | 75 |
* @return the {@link Singleton} instance |
... | ... | |
106 | 89 |
} |
107 | 90 |
|
108 | 91 |
/** |
109 |
* Registers the Class implementing the {@link DynObjectSwingManager} |
|
110 |
* interface. |
|
111 |
* |
|
112 |
* @param clazz |
|
113 |
* implementing the {@link DynObjectSwingManager} interface |
|
114 |
*/ |
|
115 |
public static void registerDynObjectSwingManager( |
|
116 |
Class<? extends DynObjectSwingManager> clazz) { |
|
117 |
getInstance().register(DYNOBJECT_SWING_MANAGER_NAME, |
|
118 |
DYNOBJECT_SWING_MANAGER_DESCRIPTION, clazz); |
|
119 |
} |
|
120 |
|
|
121 |
/** |
|
122 | 92 |
* Gets the instance of the {@link UsabilitySwingManager} registered. |
123 | 93 |
* |
124 | 94 |
* @return {@link UsabilitySwingManager} |
Also available in: Unified diff