Revision 41350 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/MapControlLocator.java

View differences:

MapControlLocator.java
21 21
 * For any additional information, do not hesitate to contact us
22 22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23 23
 */
24
/* gvSIG. Geographic Information System of the Valencian Government
25
*
26
* Copyright (C) 2007-2008 Infrastructures and Transports Department
27
* of the Valencian Government (CIT)
28
* 
29
* This program is free software; you can redistribute it and/or
30
* modify it under the terms of the GNU General Public License
31
* as published by the Free Software Foundation; either version 2
32
* of the License, or (at your option) any later version.
33
* 
34
* This program is distributed in the hope that it will be useful,
35
* but WITHOUT ANY WARRANTY; without even the implied warranty of
36
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
37
* GNU General Public License for more details.
38
* 
39
* You should have received a copy of the GNU General Public License
40
* along with this program; if not, write to the Free Software
41
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
42
* MA  02110-1301, USA.
43
* 
44
*/
45

  
46
/*
47
* AUTHORS (In addition to CIT):
48
* 2009 {Iver T.I.}   {Task}
49
*/
50 24
 
51 25
package org.gvsig.fmap.mapcontrol;
52 26

  
53 27
import org.gvsig.editing.EditingNotificationManager;
28
import org.gvsig.propertypage.PropertiesPageManager;
29
import org.gvsig.propertypage.impl.DefaultPropertiesPageManager;
54 30
import org.gvsig.tools.locator.AbstractLocator;
55 31
import org.gvsig.tools.locator.Locator;
56 32
import org.gvsig.tools.locator.LocatorException;
......
70 46
	public static final String EDITING_NOTIFICATION_MANAGER_NAME = "EditingNotificationManager";
71 47
	private static final String EDITING_NOTIFICATION_MANAGER_DESCRIPTION = "EditingNotificationManager of gvSIG";
72 48

  
49
	public static final String PROPERTIES_PAGE_MANAGER_NAME = "PropertiesPageManager";
50
	private static final String PROPERTIES_PAGE_MANAGER_DESCRIPTION = "PropertiesPage manager of gvSIG";
51

  
73 52
        /**
74 53
	 * Unique instance.
75 54
	 */
......
125 104
				EDITING_NOTIFICATION_MANAGER_DESCRIPTION,
126 105
				clazz);
127 106
	}
107
        
108
        public static PropertiesPageManager getPropertiesPageManager() {
109
            return (PropertiesPageManager) getInstance().get(PROPERTIES_PAGE_MANAGER_NAME);
110
        }
111

  
112
	public static void registerPropertiesPageManager(Class clazz) {
113
		getInstance().register(PROPERTIES_PAGE_MANAGER_NAME, 
114
				PROPERTIES_PAGE_MANAGER_DESCRIPTION,
115
				clazz);
116
	}
128 117
}
129 118

  
130 119

  

Also available in: Unified diff