Revision 42775 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.api/src/main/java/org/gvsig/fmap/dal/swing/DALSwingLocator.java
DALSwingLocator.java | ||
---|---|---|
22 | 22 |
*/ |
23 | 23 |
package org.gvsig.fmap.dal.swing; |
24 | 24 |
|
25 |
import org.gvsig.fmap.dal.EditingNotificationManager; |
|
25 | 26 |
import org.gvsig.tools.locator.BaseLocator; |
26 | 27 |
|
27 | 28 |
/** |
... | ... | |
33 | 34 |
/** |
34 | 35 |
* AttributeEditor swing manager name. |
35 | 36 |
*/ |
36 |
public static final String SWING_MANAGER_NAME |
|
37 |
= "AttributeEditor.swing.manager"; |
|
37 |
public static final String SWING_MANAGER_NAME = "dal.swing.manager"; |
|
38 | 38 |
|
39 | 39 |
/** |
40 | 40 |
* AttributeEditor swing manager description. |
41 | 41 |
*/ |
42 |
public static final String SWING_MANAGER_DESCRIPTION |
|
43 |
= "AttributeEditor UIManager"; |
|
42 |
public static final String SWING_MANAGER_DESCRIPTION = "DAL Swing Manager"; |
|
44 | 43 |
|
45 |
private static final String LOCATOR_NAME = "AttributeEditor.swing.locator"; |
|
44 |
private static final String EDITINGNOTIFICATION_MANAGER_NAME = "dal.editingnotification.manager"; |
|
45 |
private static final String EDITINGNOTIFICATION_MANAGER_DESCRIPTION = "DAL editing notification manager"; |
|
46 |
|
|
47 |
private static final String LOCATOR_NAME = "dal.swing.locator"; |
|
46 | 48 |
|
47 | 49 |
/** |
48 | 50 |
* Unique instance. |
... | ... | |
88 | 90 |
.get(SWING_MANAGER_NAME); |
89 | 91 |
} |
90 | 92 |
|
93 |
/** |
|
94 |
* Registers the Class implementing the EditingNotificationManager interface. |
|
95 |
* |
|
96 |
* @param clazz implementing the EditingNotificationManager interface |
|
97 |
*/ |
|
98 |
public static void registerEditingNotificationManager(Class clazz) { |
|
99 |
getInstance().register(EDITINGNOTIFICATION_MANAGER_NAME, EDITINGNOTIFICATION_MANAGER_DESCRIPTION, |
|
100 |
clazz); |
|
101 |
} |
|
102 |
|
|
103 |
/** |
|
104 |
* Gets the instance of the {@link EditingNotificationManager} registered. |
|
105 |
* |
|
106 |
* @return {@link EditingNotificationManager} |
|
107 |
*/ |
|
108 |
public static EditingNotificationManager getEditingNotificationManager() { |
|
109 |
return (EditingNotificationManager) getInstance() |
|
110 |
.get(EDITINGNOTIFICATION_MANAGER_NAME); |
|
111 |
} |
|
91 | 112 |
} |
Also available in: Unified diff