Revision 2106 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.swing/org.gvsig.raster.swing.api/src/main/java/org/gvsig/raster/swing/RasterSwingLibrary.java

View differences:

RasterSwingLibrary.java
26 26

  
27 27
import javax.swing.JOptionPane;
28 28

  
29
import org.gvsig.andami.PluginServices;
30 29
import org.gvsig.i18n.Messages;
31 30
import org.gvsig.tools.library.AbstractLibrary;
32 31
import org.gvsig.tools.library.LibraryException;
......
59 58
    }
60 59
    
61 60
    public static boolean messageBoxYesOrNot(String msg, Object parentWindow){
62
		String string1 = PluginServices.getText(parentWindow, "yes");
63
		String string2 = PluginServices.getText(parentWindow, "no");
61
		String string1 = Messages.getText("yes");
62
		String string2 = Messages.getText("no");
64 63
		Object[] options = {string1, string2};
65 64
		int n = JOptionPane.showOptionDialog((Component)parentWindow,
66
					"<html>" + PluginServices.getText(parentWindow, msg).replaceAll("\n", "<br>") + "</html>",
65
					"<html>" + Messages.getText(msg).replaceAll("\n", "<br>") + "</html>",
67 66
					Messages.getText("confirmacion"),
68 67
					JOptionPane.YES_NO_OPTION,
69 68
					JOptionPane.QUESTION_MESSAGE,
......
80 79
		String string = Messages.getText("accept");
81 80
		Object[] options = {string};
82 81
		JOptionPane.showOptionDialog((Component)parentWindow,
83
					"<html>" + PluginServices.getText(parentWindow, msg).replaceAll("\n", "<br>") + "</html>",
82
					"<html>" + Messages.getText(msg).replaceAll("\n", "<br>") + "</html>",
84 83
					Messages.getText("confirmacion"),
85 84
					JOptionPane.OK_OPTION,
86 85
					JOptionPane.ERROR_MESSAGE,
......
90 89
	}
91 90

  
92 91
	public static void messageBoxInfo(String msg, Object parentWindow){
93
		String string = PluginServices.getText(parentWindow, "accept");
92
		String string = Messages.getText("accept");
94 93
		Object[] options = {string};
95 94
		JOptionPane.showOptionDialog((Component)parentWindow,
96 95
					"<html>" + Messages.getText(msg).replaceAll("\n", "<br>") + "</html>",

Also available in: Unified diff