Revision 28273

View differences:

branches/v2_0_0_prep/applications/appgvSIG/config/text.properties
483 483
none_selected=Ninguno seleccionado
484 484
normal=Normal
485 485
north=Norte
486
not_GVL_save_question=El formato que ha seleccionado no es propio de gvSIG, se puede utilizar para compartir leyendas con otros programas.\nSi, posteriormente, desea importar de nuevo esta leyenda a gvSIG, le recomendamos que utilice el formato GVL\n o de lo contrario podr?a perder alguna de las caracter?sticas de la leyenda original.
486 487
Nueva_tabla=Nueva tabla
487 488
nuevo=Nuevo
488 489
Nuevo_conjunto=Nuevo conjunto
branches/v2_0_0_prep/applications/appgvSIG/config/text_en.properties
450 450
none_selected=None selected
451 451
normal=Normal
452 452
north=North
453
not_GVL_save_question=The selected format is not gvSIG native, it can be used to share legends with other software.\nIf you'd like, in the future, to import back this legend to gvSIG,\nwe recommend to use GVL format in order to avoid losing some of the original legend settings.
453 454
Nueva_tabla=New table
454 455
nuevo=New
455 456
Nuevo_conjunto=New set
branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/LegendManager.java
83 83
import org.gvsig.fmap.mapcontext.rendering.legend.SingleSymbolLegend;
84 84
import org.gvsig.fmap.mapcontext.rendering.legend.driver.IFMapLegendDriver;
85 85
import org.gvsig.fmap.mapcontext.rendering.legend.driver.LegendDriverException;
86
import org.gvsig.fmap.mapcontext.rendering.legend.driver.gvl.FMapGVLDriver;
86 87
import org.gvsig.gui.beans.swing.JButton;
87 88

  
88 89
import com.iver.andami.PluginServices;
......
138 139

  
139 140

  
140 141
				File basedir = null;
141
				Object[] options = {PluginServices.getText(this, "yes"),
142
						PluginServices.getText(this, "no"),
143
						PluginServices.getText(this, "Cancel")};
144

  
145 142
				jfc.setCurrentDirectory(basedir);
146 143
				if (jfc.showSaveDialog((Component) PluginServices.getMainFrame()) == JFileChooser.APPROVE_OPTION) {
147 144

  
......
149 146
					String version = jfc.getDriverVersion();
150 147
					IFMapLegendDriver driver = jfc.getSuitableDriver();
151 148

  
149
					if(!(driver instanceof FMapGVLDriver)){
150
						Object[] options = {PluginServices.getText(this, "yes"),
151
								PluginServices.getText(this, "no")};
152

  
153
						int answer = JOptionPane.showOptionDialog((Component)PluginServices.getMainFrame(),
154
								PluginServices.getText(this, "not_GVL_save_question")+"\n"+
155
								PluginServices.getText(this, "desea_continuar"),
156
								PluginServices.getText(this, "confirmation_dialog"),
157
								JOptionPane.YES_NO_OPTION,
158
								JOptionPane.QUESTION_MESSAGE,
159
								null,
160
								options, options[1]);
161
						if (answer!=JOptionPane.OK_OPTION) {
162
							// 'Cancel' pressed or window closed: don't save anythig, exit save dialog
163
							return;
164
						}
165
					}
166

  
152 167
					if (file.exists()) {
168
						Object[] options = {PluginServices.getText(this, "yes"),
169
								PluginServices.getText(this, "no"),
170
								PluginServices.getText(this, "Cancel")};
171

  
153 172
						int answer = JOptionPane.showOptionDialog((Component)PluginServices.getMainFrame(),
154
								PluginServices.getText(this, "error_file_exists")+"\n"+
155
								PluginServices.getText(this, "do_you_want_to_overwrite_it")+"?",
173
								PluginServices.getText(this, "fichero_ya_existe_seguro_desea_guardarlo"),
156 174
								PluginServices.getText(this, "confirmation_dialog"),
157 175
								JOptionPane.YES_NO_CANCEL_OPTION,
158 176
								JOptionPane.QUESTION_MESSAGE,

Also available in: Unified diff