Revision 30119 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/extension/BasicSymbologyExtension.java

View differences:

BasicSymbologyExtension.java
116 116
import org.gvsig.app.project.documents.view.legend.gui.VectorialUniqueValue;
117 117
import org.gvsig.fmap.geom.Geometry;
118 118
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
119
import org.gvsig.symbology.SimbologyLibrary;
120
import org.gvsig.symbology.impl.SimbologyDefaultImplLibrary;
119 121

  
120 122
/**
121 123
 * Extension for enable the symbology. It only installs the core symbology.
......
123 125
 *
124 126
 */
125 127
public class BasicSymbologyExtension extends Extension implements IPreferenceExtension{
128
	private SimbologyLibrary simbologyLibrary;	
129
	private SimbologyDefaultImplLibrary simbologyDefaultImplLibrary;
126 130

  
127 131
	public void initialize() {
132
		// Simbology initialization
133
		simbologyLibrary = new SimbologyLibrary();
134
		simbologyLibrary.initialize();
135
		
136
		simbologyDefaultImplLibrary = new SimbologyDefaultImplLibrary();
137
		simbologyDefaultImplLibrary.initialize();
138
		
128 139
		// Install required features
129 140

  
130 141
		// modules for symbol editor
......
144 155
		// labeling strategies (inverse order to the wanted to be shown)
145 156
		LabelingManager.addLabelingStrategy(AttrInTableLabeling.class);
146 157

  
147

  
148 158
		// legends available in the legend page
149 159
		LegendManager.addLegendPage(Quantities.class);
150 160
		LegendManager.addLegendPage(Features.class);
......
155 165
		LegendManager.addLegendPage(VectorialInterval.class);
156 166
		LegendManager.addLegendPage(VectorialUniqueValue.class);
157 167

  
158
		LegendManager.addLegendDriver(FMapGVLDriver.class);
168
//		LegendManager.addLegendDriver(FMapGVLDriver.class);
159 169
		registerIcons();
160 170
	}
171
	
172
	@Override
173
	public void postInitialize() {
174
		super.postInitialize();
175
		
176
		simbologyLibrary.postInitialize();
177
		simbologyDefaultImplLibrary.postInitialize();
178
	}
161 179

  
162 180
	private void registerIcons(){
163 181
		PluginServices.getIconTheme().registerDefault(

Also available in: Unified diff