Revision 20646 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/histogram/HistogramPanelListener.java
HistogramPanelListener.java | ||
---|---|---|
19 | 19 |
package org.gvsig.rastertools.histogram; |
20 | 20 |
|
21 | 21 |
import java.awt.Color; |
22 |
import java.awt.Component; |
|
23 | 22 |
import java.awt.event.ActionEvent; |
24 | 23 |
import java.awt.event.ActionListener; |
25 | 24 |
import java.beans.PropertyChangeEvent; |
... | ... | |
197 | 196 |
ArrayList comboSource = getHistogramPanel().getComboSource(); |
198 | 197 |
for (int i = 0; i < comboSource.size(); i++) { |
199 | 198 |
String name = (String) ((ArrayList) comboSource.get(i)).get(1); |
200 |
if (name.compareTo(PluginServices.getText(this, "datos_visualizados")) == 0) {
|
|
199 |
if (name.compareTo(RasterToolsUtil.getText(this, "datos_visualizados")) == 0) {
|
|
201 | 200 |
((ArrayList) comboSource.get(i)).remove(0); |
202 | 201 |
((ArrayList) comboSource.get(i)).add(0, ((FLyrRasterSE) lyr).getRender().getLastRenderBuffer()); |
203 | 202 |
} |
204 |
if (name.compareTo(PluginServices.getText(this, "imagen_completa")) == 0) {
|
|
203 |
if (name.compareTo(RasterToolsUtil.getText(this, "imagen_completa")) == 0) {
|
|
205 | 204 |
((ArrayList) comboSource.get(i)).remove(0); |
206 | 205 |
((ArrayList) comboSource.get(i)).add(0, ((FLyrRasterSE) lyr).getDataSource()); |
207 | 206 |
} |
... | ... | |
241 | 240 |
// -------Mostrar un fileChooser------------------ |
242 | 241 |
String fName; |
243 | 242 |
JFileChooser chooser = new JFileChooser(); |
244 |
chooser.setDialogTitle(PluginServices.getText(this, "guardar_tabla"));
|
|
243 |
chooser.setDialogTitle(RasterToolsUtil.getText(this, "guardar_tabla"));
|
|
245 | 244 |
|
246 | 245 |
int returnVal = chooser.showOpenDialog(getHistogramPanel()); |
247 | 246 |
if (returnVal == JFileChooser.APPROVE_OPTION) { |
... | ... | |
308 | 307 |
Table t = new Table(); |
309 | 308 |
t.setModel(projectTable); |
310 | 309 |
//projectTable.setAndamiWindow(t); |
311 |
PluginServices.getMDIManager().addWindow(t);
|
|
310 |
RasterToolsUtil.addWindow(t);
|
|
312 | 311 |
} |
313 | 312 |
} catch (IOException e1) { |
314 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),getHistogramPanel().getName() + " " + PluginServices.getText(this,"table_not_create"));
|
|
313 |
JOptionPane.showMessageDialog(null, getHistogramPanel().getName() + " " + RasterToolsUtil.getText(this,"table_not_create"));
|
|
315 | 314 |
} catch (DriverLoadException e1) { |
316 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),getHistogramPanel().getName() + " " + PluginServices.getText(this,"table_not_create"));
|
|
315 |
JOptionPane.showMessageDialog(null, getHistogramPanel().getName() + " " + RasterToolsUtil.getText(this,"table_not_create"));
|
|
317 | 316 |
} catch (NoSuchTableException e1) { |
318 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),getHistogramPanel().getName() + " " + PluginServices.getText(this,"table_not_create"));
|
|
317 |
JOptionPane.showMessageDialog(null, getHistogramPanel().getName() + " " + RasterToolsUtil.getText(this,"table_not_create"));
|
|
319 | 318 |
} catch (ReadDriverException e1) { |
320 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),getHistogramPanel().getName() + " " + PluginServices.getText(this,"table_not_create"));
|
|
319 |
JOptionPane.showMessageDialog(null, getHistogramPanel().getName() + " " + RasterToolsUtil.getText(this,"table_not_create"));
|
|
321 | 320 |
} |
322 | 321 |
} |
323 | 322 |
} |
Also available in: Unified diff