Revision 138

View differences:

org.gvsig.complexlegend/trunk/org.gvsig.complexlegend/org.gvsig.complexlegend.app/org.gvsig.complexlegend.app.mainplugin/src/main/java/org/gvsig/complexlegend/app/mainplugin/ComplexLegendExtension.java
22 22
package org.gvsig.complexlegend.app.mainplugin;
23 23

  
24 24
import org.gvsig.andami.plugins.Extension;
25
import org.gvsig.app.project.documents.view.legend.gui.LegendManager;
25 26
import org.gvsig.complexlabel.app.editor.ComplexLabelClassEditorFactory;
27
import org.gvsig.complexlegend.impl.DefaultVectorComplexLegend;
26 28
import org.gvsig.complexlegend.swing.impl.DefaultComplexLegendPanel;
27 29
import org.gvsig.symbology.swing.SymbologySwingLocator;
28 30
import org.gvsig.symbology.swing.SymbologySwingManager;
......
34 36
public class ComplexLegendExtension extends Extension {
35 37

  
36 38
	public void initialize() {
37
		
39
		SymbologySwingManager manager = SymbologySwingLocator.getSwingManager();
40
		manager.registerLegendEditor(DefaultComplexLegendPanel.class);
41
		manager.registerLabelClassEditor(new ComplexLabelClassEditorFactory());
38 42
	}
39 43
	
40 44
	@Override
41 45
	public void postInitialize() {
42 46
		super.postInitialize();
43
		SymbologySwingManager manager = SymbologySwingLocator.getSwingManager();
44
		manager.registerLegendEditor(DefaultComplexLegendPanel.class);
45
		manager.registerLabelClassEditor(new ComplexLabelClassEditorFactory());
47
		
46 48
	}
47 49

  
48 50
	public void execute(String actionCommand) {
org.gvsig.complexlegend/trunk/org.gvsig.complexlegend/org.gvsig.complexlegend.swing/org.gvsig.complexlegend.swing.impl/src/main/java/org/gvsig/complexlegend/swing/impl/DefaultComplexLegendPanel.java
231 231
	}
232 232

  
233 233
	public Class getLegendClass() {
234
		return VectorComplexLegend.class;
234
		return DefaultVectorComplexLegend.class;
235 235
	}
236 236

  
237 237
	public JPanel getPanel() {

Also available in: Unified diff