Revision 43803 branches/org.gvsig.desktop-2018a/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/MapContextLibrary.java
MapContextLibrary.java | ||
---|---|---|
42 | 42 |
import org.gvsig.fmap.mapcontext.tools.persistence.FontPersistenceFactory; |
43 | 43 |
import org.gvsig.fmap.mapcontext.tools.persistence.Point2DPersistenceFactory; |
44 | 44 |
import org.gvsig.fmap.mapcontext.tools.persistence.Rectangle2DPersistenceFactory; |
45 |
import org.gvsig.raster.lib.legend.api.RasterLegendLocator; |
|
45 | 46 |
import org.gvsig.tools.ToolsLocator; |
46 | 47 |
import org.gvsig.tools.library.AbstractLibrary; |
47 | 48 |
import org.gvsig.tools.library.LibraryException; |
... | ... | |
78 | 79 |
MapContextLocator.MAPCONTEXT_MANAGER_NAME, |
79 | 80 |
MapContextLocator.getInstance()); |
80 | 81 |
} |
81 |
|
|
82 |
|
|
82 | 83 |
caller.add( new FLyrDefault.RegisterMetadata() ); |
83 | 84 |
caller.add( new DefaultMapContextDrawer.RegisterMapContextDrawer() ); |
84 |
|
|
85 |
|
|
85 | 86 |
caller.add( new ViewPort.RegisterPersistence() ); |
86 | 87 |
caller.add( new ExtendedPropertiesHelper.RegisterPersistence() ); |
87 | 88 |
caller.add( new MapContext.RegisterPersistence() ); |
... | ... | |
102 | 103 |
throw new LibraryException(MapContextLibrary.class, caller.getExceptions()); |
103 | 104 |
} |
104 | 105 |
|
106 |
// Validate there is any implementation registered. |
|
107 |
if (!RasterLegendLocator.getInstance().exists( |
|
108 |
RasterLegendLocator.RASTER_LEGEND_MANAGER_NAME)) { |
|
109 |
throw new ReferenceNotRegisteredException( |
|
110 |
RasterLegendLocator.RASTER_LEGEND_MANAGER_NAME, RasterLegendLocator.getInstance()); |
|
111 |
} |
|
112 |
|
|
113 |
|
|
105 | 114 |
} |
106 | 115 |
|
107 | 116 |
} |
Also available in: Unified diff