svn-gvsig-desktop / branches / CatalogYNomenclator_v1_1_0_1005 / applications / appCatalogYNomenclatorClient / src-test / es / gva / cit / gazetteer / drivers / ExampleNewDriverTest.java @ 12758
History | View | Annotate | Download (2.74 KB)
1 |
package es.gva.cit.gazetteer.drivers; |
---|---|
2 |
|
3 |
import javax.swing.UIManager; |
4 |
import javax.swing.UnsupportedLookAndFeelException; |
5 |
|
6 |
import es.gva.cit.gazetteer.adl.drivers.ADLGazetteerServiceDriver; |
7 |
import es.gva.cit.gazetteer.idec.drivers.IDECGazetteerServiceDriver; |
8 |
import es.gva.cit.gazetteer.ui.serverconnect.ServerConnectDialog; |
9 |
import es.gva.cit.gazetteer.utils.GazetteerDriverRegister; |
10 |
import es.gva.cit.gazetteer.wfs.drivers.WFSServiceDriver; |
11 |
import es.gva.cit.gazetteer.wfsg.drivers.WFSGServiceDriver; |
12 |
|
13 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
14 |
*
|
15 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
16 |
*
|
17 |
* This program is free software; you can redistribute it and/or
|
18 |
* modify it under the terms of the GNU General Public License
|
19 |
* as published by the Free Software Foundation; either version 2
|
20 |
* of the License, or (at your option) any later version.
|
21 |
*
|
22 |
* This program is distributed in the hope that it will be useful,
|
23 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
* GNU General Public License for more details.
|
26 |
*
|
27 |
* You should have received a copy of the GNU General Public License
|
28 |
* along with this program; if not, write to the Free Software
|
29 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
30 |
*
|
31 |
* For more information, contact:
|
32 |
*
|
33 |
* Generalitat Valenciana
|
34 |
* Conselleria d'Infraestructures i Transport
|
35 |
* Av. Blasco Ib??ez, 50
|
36 |
* 46010 VALENCIA
|
37 |
* SPAIN
|
38 |
*
|
39 |
* +34 963862235
|
40 |
* gvsig@gva.es
|
41 |
* www.gvsig.gva.es
|
42 |
*
|
43 |
* or
|
44 |
*
|
45 |
* IVER T.I. S.A
|
46 |
* Salamanca 50
|
47 |
* 46005 Valencia
|
48 |
* Spain
|
49 |
*
|
50 |
* +34 963163400
|
51 |
* dac@iver.es
|
52 |
*/
|
53 |
/* CVS MESSAGES:
|
54 |
*
|
55 |
* $Id: ExampleNewDriverTest.java 12758 2007-07-24 11:25:43Z jorpiell $
|
56 |
* $Log$
|
57 |
* Revision 1.1.2.2 2007-07-24 11:25:42 jorpiell
|
58 |
* The registers has been refactorized
|
59 |
*
|
60 |
* Revision 1.1.2.1 2007/07/13 12:00:35 jorpiell
|
61 |
* Add the posibility to add a new panel
|
62 |
*
|
63 |
*
|
64 |
*/
|
65 |
/**
|
66 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
67 |
*/
|
68 |
public class ExampleNewDriverTest { |
69 |
|
70 |
/**
|
71 |
* @param args
|
72 |
*/
|
73 |
public static void main(String[] args) { |
74 |
GazetteerDriverRegister register = GazetteerDriverRegister.getInstance(); |
75 |
register.register(new ExampleNewDriver());
|
76 |
//Get the currently installed look and feel
|
77 |
UIManager.getLookAndFeel();
|
78 |
// Install a different look and feel; specifically, the Windows look and feel
|
79 |
try {
|
80 |
UIManager.setLookAndFeel(
|
81 |
"com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
|
82 |
} catch (InstantiationException e) { |
83 |
} catch (ClassNotFoundException e) { |
84 |
} catch (UnsupportedLookAndFeelException e) { |
85 |
} catch (IllegalAccessException e) { |
86 |
} |
87 |
|
88 |
new ServerConnectDialog();
|
89 |
} |
90 |
|
91 |
} |