Revision 214 org.gvsig.educa.thematicmap.app/trunk/org.gvsig.educa.thematicmap.app/org.gvsig.educa.thematicmap.app.viewer/src/main/java/org/gvsig/educa/thematicmap/app/viewer/ui/ThematicMapDocumentViewer.java

View differences:

ThematicMapDocumentViewer.java
39 39
import org.gvsig.app.project.documents.Document;
40 40
import org.gvsig.app.project.documents.gui.IDocumentWindow;
41 41
import org.gvsig.app.project.documents.gui.WindowLayout;
42
import org.gvsig.educa.thematicmap.ThematicMapLocator;
43
import org.gvsig.educa.thematicmap.ThematicMapManager;
42 44
import org.gvsig.educa.thematicmap.app.viewer.ThematicMapBasicMapControlExtension;
43 45
import org.gvsig.educa.thematicmap.app.viewer.ThematicMapDocument;
44 46
import org.gvsig.educa.thematicmap.map.CantLoadContextException;
45 47
import org.gvsig.educa.thematicmap.map.InvalidThematicMapFormatException;
46 48
import org.gvsig.educa.thematicmap.map.ThematicMap;
47 49
import org.gvsig.educa.thematicmap.map.ThematicMapInformation;
48
import org.gvsig.educa.thematicmap.swing.ThematicMapSwingLocator;
49
import org.gvsig.educa.thematicmap.swing.ThematicMapSwingManager;
50
import org.gvsig.educa.thematicmap.swing.viewer.ThematicMapViewer;
50
import org.gvsig.educa.thematicmap.viewer.ThematicMapViewer;
51 51
import org.gvsig.fmap.mapcontext.MapContext;
52 52
import org.gvsig.fmap.mapcontext.events.ColorEvent;
53 53
import org.gvsig.fmap.mapcontext.events.ExtentEvent;
......
78 78
    private final ThematicMapDocument model;
79 79
    private boolean isPalette = false;
80 80

  
81
    private final ThematicMapSwingManager tmSwingManager;
81
    private final ThematicMapManager manager;
82 82

  
83 83
    private ThematicMapViewer viewer;
84 84

  
......
99 99
        IOException {
100 100
        super();
101 101
        model = (ThematicMapDocument) document;
102
        tmSwingManager = ThematicMapSwingLocator.getSwingManager();
102
        manager = ThematicMapLocator.getManager();
103 103
        setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
104 104
        setLayout(new GridLayout(1, 1));
105 105

  
......
124 124
     */
125 125
    protected void updateTitle() {
126 126
        title =
127
            tmSwingManager.getTranslation("Thematic_Map").concat(": ")
127
            manager.getTranslation("Thematic_Map").concat(": ")
128 128
                .concat(this.model.getName());
129 129
        if (windowInfo != null) {
130 130
            windowInfo.setTitle(title);
......
156 156
        }
157 157

  
158 158
        // create new viewer
159
        viewer = tmSwingManager.getViewer(model.getThematicMap());
159
        viewer = manager.getViewer(model.getThematicMap());
160 160
        add(viewer.getSwingComponent());
161 161
        final MapControl mapControl = viewer.getMapControl();
162 162

  

Also available in: Unified diff