Revision 5806 trunk/extensions/extCAD/src/com/iver/cit/gvsig/ExportTo.java

View differences:

ExportTo.java
129 129

  
130 130
			JOptionPane.showMessageDialog(
131 131
					(JComponent) PluginServices.getMDIManager().getActiveView()
132
					, PluginServices.getText(this, "capa_exportada"), "Export",
132
					, PluginServices.getText(this, "capa_exportada"), PluginServices.getText(this,"export_to"),
133 133
					JOptionPane.INFORMATION_MESSAGE);
134 134

  
135 135
		}
......
164 164
								.cardinality();
165 165
						if (numSelec > 0) {
166 166
							int resp = JOptionPane.showConfirmDialog(
167
									(JComponent) PluginServices.getMDIManager().getActiveView(),
168
									"se_van_a_guardar_" + numSelec
169
											+ " features_desea_continuar",
170
									"Export", JOptionPane.YES_NO_OPTION);
171
							if (resp == JOptionPane.NO_OPTION) {
167
									(Component) PluginServices.getMainFrame(),
168
									PluginServices.getText(this,"se_van_a_guardar_") + numSelec
169
											+ PluginServices.getText(this,"features_desea_continuar"),
170
									PluginServices.getText(this,"export_to"), JOptionPane.YES_NO_OPTION);
171
							if (resp != JOptionPane.YES_OPTION) {
172 172
								continue;
173 173
							}
174 174
						} // if numSelec > 0
......
385 385
			if (jfc.showSaveDialog((Component) PluginServices.getMainFrame()) == JFileChooser.APPROVE_OPTION) {
386 386
				File newFile = jfc.getSelectedFile();
387 387
				String path = newFile.getAbsolutePath();
388
				if( newFile.exists()){
389
					int resp = JOptionPane.showConfirmDialog(
390
							(Component) PluginServices.getMainFrame(),PluginServices.getText(this,"fichero_ya_existe_seguro_desea_guardarlo"),
391
							PluginServices.getText(this,"guardar"), JOptionPane.YES_NO_OPTION);
392
					if (resp != JOptionPane.YES_OPTION) {
393
						return;
394
					}
395
				}
388 396
				if (!(path.toLowerCase().endsWith(".shp"))) {
389 397
					path = path + ".shp";
390 398
				}

Also available in: Unified diff