Revision 128 org.gvsig.educa.batovi/trunk/org.gvsig.educa.batovi.mapviewer/org.gvsig.educa.batovi.mapviewer/src/main/java/org/gvsig/educa/batovi/mapviewer/OpenThematicMap.java

View differences:

OpenThematicMap.java
45 45
import org.gvsig.educa.thematicmap.swing.ThematicMapSwingManager;
46 46
import org.gvsig.educa.thematicmap.swing.viewer.ThematicMapInforamtionViewer;
47 47
import org.gvsig.tools.swing.api.ToolsSwingLocator;
48
import org.gvsig.tools.swing.api.dynobject.DynObjectSwingManager;
49 48
import org.gvsig.tools.swing.api.usability.UsabilitySwingManager;
50 49

  
51 50
/**
......
62 61
     */
63 62
    private static final long serialVersionUID = 1L;
64 63

  
64
    @SuppressWarnings("unused")
65 65
    private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory
66 66
        .getLogger(OpenThematicMap.class);
67 67

  
68 68
    private final ThematicMapSwingManager swingManager;
69
    private final DynObjectSwingManager dynSwingManager;
70 69
    private final UsabilitySwingManager usabManager;
71 70

  
72 71
    private final Main main;
......
85 84

  
86 85
    private int lastSelectedIndex;
87 86

  
88
    private JPanel container;
89

  
90 87
    public OpenThematicMap(Main main, List<ThematicMap> installedMaps) {
91 88
        super();
92 89

  
93 90
        this.main = main;
94 91
        swingManager = ThematicMapSwingLocator.getSwingManager();
95 92

  
96
        dynSwingManager = ToolsSwingLocator.getDynObjectSwingManager();
97 93
        usabManager = ToolsSwingLocator.getUsabilitySwingManager();
98 94

  
99 95
        maps = installedMaps;
......
132 128

  
133 129
        listPanel = new JPanel();
134 130
        listPanel.setLayout(new BorderLayout(5, 5));
135
        listPanel.add(new JLabel("Thematic Maps availables:"),
136
            BorderLayout.NORTH);
131
        listPanel.add(new JLabel(main.translate("Thematic_Maps_availables")
132
            .concat(":")), BorderLayout.NORTH);
137 133
        listPanel.add(list, BorderLayout.CENTER);
138 134

  
139 135
        add(new JScrollPane(listPanel), BorderLayout.WEST);
......
141 137
        informationPanel = new JPanel();
142 138
        informationPanel.setLayout(new BorderLayout(5, 5));
143 139

  
144
        informationPanel.add(new JLabel("Thematic Map information:"),
140
        informationPanel.add(
141
            new JLabel(main.translate("Thematic_Map_information").concat(":")),
145 142
            BorderLayout.NORTH);
146 143

  
147 144
        information = swingManager.newInformationViewer();
......
157 154

  
158 155
        actionPanel.add(Box.createHorizontalGlue());
159 156

  
160
        botOpen = usabManager.createJButton(new AbstractAction("Open Map") {
157
        botOpen =
158
            usabManager.createJButton(new AbstractAction(main
159
                .translate("Open_Thematic_map")) {
161 160

  
162
            /**
161
                /**
163 162
             *
164 163
             */
165
            private static final long serialVersionUID = -3437007146684939225L;
164
                private static final long serialVersionUID =
165
                    -3437007146684939225L;
166 166

  
167
            public void actionPerformed(ActionEvent e) {
168
                openSelected();
169
            }
170
        });
167
                public void actionPerformed(ActionEvent e) {
168
                    openSelected();
169
                }
170
            });
171 171
        botOpen.setEnabled(false);
172 172

  
173
        botCancel = usabManager.createJButton(new AbstractAction("Cancel") {
173
        botCancel =
174
            usabManager.createJButton(new AbstractAction(main
175
                .translate("Cancel")) {
174 176

  
175
            /**
177
                /**
176 178
             *
177 179
             */
178
            private static final long serialVersionUID = -2227776656041247582L;
180
                private static final long serialVersionUID =
181
                    -2227776656041247582L;
179 182

  
180
            public void actionPerformed(ActionEvent e) {
181
                close();
182
            }
183
        });
183
                public void actionPerformed(ActionEvent e) {
184
                    close();
185
                }
186
            });
184 187

  
185 188
        actionPanel.add(botOpen);
186 189
        actionPanel.add(Box.createHorizontalStrut(10));

Also available in: Unified diff