svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.ui / src / main / java / org / gvsig / gui / beans / panelGroup / exceptions / EmptyPanelGroupGUIException.java @ 40561
History | View | Annotate | Download (2.32 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.gvsig.gui.beans.panelGroup.exceptions; |
25 |
|
26 |
import java.util.Map; |
27 |
|
28 |
import org.gvsig.gui.beans.Messages; |
29 |
import org.gvsig.gui.beans.panelGroup.IPanelGroup; |
30 |
import org.gvsig.tools.exception.BaseException; |
31 |
|
32 |
/**
|
33 |
* <p>When an object of type {@link IPanelGroup IPanelGroup} hasn't any of its registered panels in its GUI
|
34 |
* launches an exception of this kind.</p>
|
35 |
*
|
36 |
* @version 27/11/2007
|
37 |
* @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es)
|
38 |
*/
|
39 |
public class EmptyPanelGroupGUIException extends BaseException { |
40 |
private static final long serialVersionUID = 1244814519514860627L; |
41 |
|
42 |
/**
|
43 |
* <p>Creates an initializes a new instance of <code>EmptyPanelGroupGUIException</code>.</p>
|
44 |
*/
|
45 |
public EmptyPanelGroupGUIException() {
|
46 |
super();
|
47 |
|
48 |
// Identifier of this kind of exception
|
49 |
this.code = serialVersionUID;
|
50 |
|
51 |
// Default text that explains this kind of exception. If there is no translation associated to the
|
52 |
// "messageKey" of this exception, then the value shown will be the value of "formatString".
|
53 |
this.formatString = "No panel in the graphical user interface."; |
54 |
|
55 |
// Key to the sentence that explains this exception. That key will be use for multilingual purposes.
|
56 |
this.messageKey = "empty_panel_group_gui_exception"; |
57 |
|
58 |
setTranslator(new Messages());
|
59 |
} |
60 |
|
61 |
protected Map<String, String> values() { |
62 |
return null; |
63 |
} |
64 |
} |