Statistics
| Revision:

gvsig-catalog / trunk / appCatalog / src-test / org / gvsig / catalog / catalog / drivers / ExampleNewDriverTest.java @ 6

History | View | Annotate | Download (2.64 KB)

1
package org.gvsig.catalog.catalog.drivers;
2

    
3
import javax.swing.UIManager;
4
import javax.swing.UnsupportedLookAndFeelException;
5

    
6
import org.gvsig.catalog.CatalogLocator;
7
import org.gvsig.catalog.ui.serverconnect.ServerConnectDialog;
8
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer;
9

    
10

    
11
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
12
 *
13
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
14
 *
15
 * This program is free software; you can redistribute it and/or
16
 * modify it under the terms of the GNU General Public License
17
 * as published by the Free Software Foundation; either version 2
18
 * of the License, or (at your option) any later version.
19
 *
20
 * This program is distributed in the hope that it will be useful,
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 * GNU General Public License for more details.
24
 *
25
 * You should have received a copy of the GNU General Public License
26
 * along with this program; if not, write to the Free Software
27
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
28
 *
29
 * For more information, contact:
30
 *
31
 *  Generalitat Valenciana
32
 *   Conselleria d'Infraestructures i Transport
33
 *   Av. Blasco Ib??ez, 50
34
 *   46010 VALENCIA
35
 *   SPAIN
36
 *
37
 *      +34 963862235
38
 *   gvsig@gva.es
39
 *      www.gvsig.gva.es
40
 *
41
 *    or
42
 *
43
 *   IVER T.I. S.A
44
 *   Salamanca 50
45
 *   46005 Valencia
46
 *   Spain
47
 *
48
 *   +34 963163400
49
 *   dac@iver.es
50
 */
51
/* CVS MESSAGES:
52
 *
53
 * $Id: ExampleNewDriverTest.java 512 2007-07-24 11:25:43Z jorpiell $
54
 * $Log$
55
 * Revision 1.1.2.2  2007/07/24 11:25:42  jorpiell
56
 * The registers has been refactorized
57
 *
58
 * Revision 1.1.2.1  2007/07/13 12:00:35  jorpiell
59
 * Add the posibility to add a new panel
60
 *
61
 *
62
 */
63
/**
64
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
65
 */
66
public class ExampleNewDriverTest {
67

    
68
        /**
69
         * @param args
70
         */
71
        public static void main(String[] args) {
72
                new DefaultLibrariesInitializer().fullInitialize();
73
//                DefaultCatalogLibrary library = new DefaultCatalogLibrary();
74
//                library.initialize();
75
//                library.postInitialize();
76

    
77
                CatalogLocator.getCatalogManager().register("My catalog service", ExampleNewDriver.class);
78
                //Get the currently installed look and feel
79
                UIManager.getLookAndFeel();
80
                // Install a different look and feel; specifically, the Windows look and feel
81
                try {
82
                        UIManager.setLookAndFeel(
83
                                        "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
84
                } catch (InstantiationException e) {
85
                } catch (ClassNotFoundException e) {
86
                } catch (UnsupportedLookAndFeelException e) {
87
                } catch (IllegalAccessException e) {
88
                }
89

    
90
                new ServerConnectDialog();
91
        }
92

    
93
}