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

View differences:

StatusBar.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Geographic Information System of the Valencian Government
2 2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
5 6
 * This program is free software; you can redistribute it and/or
6 7
 * modify it under the terms of the GNU General Public License
7 8
 * as published by the Free Software Foundation; either version 2
8 9
 * of the License, or (at your option) any later version.
9
 *
10
 * 
10 11
 * This program is distributed in the hope that it will be useful,
11 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 14
 * GNU General Public License for more details.
14
 *
15
 * 
15 16
 * You should have received a copy of the GNU General Public License
16 17
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
40 21
 */
41 22
package org.gvsig.coreplugin;
42 23

  
43 24
import org.gvsig.andami.PluginServices;
44 25
import org.gvsig.andami.messages.MessageEvent;
45
import org.gvsig.andami.messages.Messages;
46 26
import org.gvsig.andami.messages.NotificationListener;
47 27
import org.gvsig.andami.messages.NotificationManager;
48 28
import org.gvsig.andami.plugins.Extension;
49 29

  
50

  
51 30
/**
52 31
 * Plugin que escucha las notificaciones que recive la aplicaci?n y las muestra
53 32
 * en la barra de estado
54 33
 */
55 34
public class StatusBar extends Extension implements NotificationListener {
56
	private int i;
57
	private int pr;
35

  
36
    private int i;
37
    private int pr;
38

  
58 39
    /**
59 40
     * @see com.iver.mdiApp.IExtension#initialize()
60 41
     */
......
66 47
     * @see com.iver.mdiApp.NotificationListener#errorEvent(java.lang.String)
67 48
     */
68 49
    public void errorEvent(MessageEvent e) {
69
    	PluginServices.getMainFrame().getStatusBar().setErrorText(e.getMessages()[0]);
50
        PluginServices.getMainFrame().getStatusBar()
51
            .setErrorText(e.getMessages()[0]);
70 52
    }
71 53

  
72 54
    /**
73 55
     * @see com.iver.mdiApp.NotificationListener#warningEvent(java.lang.String)
74 56
     */
75 57
    public void warningEvent(MessageEvent e) {
76
    	PluginServices.getMainFrame().getStatusBar().setWarningText(e.getMessages()[0]);
58
        PluginServices.getMainFrame().getStatusBar()
59
            .setWarningText(e.getMessages()[0]);
77 60
    }
78 61

  
79 62
    /**
80 63
     * @see com.iver.mdiApp.NotificationListener#infoEvent(java.lang.String)
81 64
     */
82 65
    public void infoEvent(MessageEvent e) {
83
    	PluginServices.getMainFrame().getStatusBar().setInfoText(e.getMessages()[0]);
66
        PluginServices.getMainFrame().getStatusBar()
67
            .setInfoText(e.getMessages()[0]);
84 68
    }
85 69

  
86
	/* (non-Javadoc)
87
	 * @see com.iver.andami.plugins.Extension#execute(java.lang.String)
88
	 */
89
	public void execute(String actionCommand) {
90
		// TODO Auto-generated method stub
70
    /*
71
     * (non-Javadoc)
72
     * 
73
     * @see com.iver.andami.plugins.Extension#execute(java.lang.String)
74
     */
75
    public void execute(String actionCommand) {
76
        // TODO Auto-generated method stub
91 77

  
92
	}
78
    }
93 79

  
94
	/* (non-Javadoc)
95
	 * @see com.iver.andami.plugins.Extension#isEnabled()
96
	 */
97
	public boolean isEnabled() {
98
		// TODO Auto-generated method stub
99
		return false;
100
	}
80
    /*
81
     * (non-Javadoc)
82
     * 
83
     * @see com.iver.andami.plugins.Extension#isEnabled()
84
     */
85
    public boolean isEnabled() {
86
        // TODO Auto-generated method stub
87
        return false;
88
    }
101 89

  
102
	/* (non-Javadoc)
103
	 * @see com.iver.andami.plugins.Extension#isVisible()
104
	 */
105
	public boolean isVisible() {
106
		// TODO Auto-generated method stub
107
		return false;
108
	}
90
    /*
91
     * (non-Javadoc)
92
     * 
93
     * @see com.iver.andami.plugins.Extension#isVisible()
94
     */
95
    public boolean isVisible() {
96
        // TODO Auto-generated method stub
97
        return false;
98
    }
109 99

  
110

  
111 100
}

Also available in: Unified diff