Revision 38564 branches/v2_0_0_prep/libraries/libCorePlugin/src/org/gvsig/coreplugin/StatusBar.java

View differences:

StatusBar.java
21 21
 */
22 22
package org.gvsig.coreplugin;
23 23

  
24
import javax.swing.JOptionPane;
25

  
24 26
import org.gvsig.andami.PluginServices;
25 27
import org.gvsig.andami.messages.MessageEvent;
26 28
import org.gvsig.andami.messages.NotificationListener;
......
44 46
     * @see com.iver.mdiApp.NotificationListener#errorEvent(java.lang.String)
45 47
     */
46 48
    public void errorEvent(MessageEvent e) {
47
        PluginServices.getMainFrame().getStatusBar()
48
            .setErrorText(e.getMessages()[0]);
49
    	String msg = e.getMessages()[0];
50
        PluginServices.getMainFrame().getStatusBar().message(msg, JOptionPane.ERROR_MESSAGE);
49 51
    }
50 52

  
51 53
    /**

Also available in: Unified diff