svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.xml2db / org.gvsig.xml2db.swing / org.gvsig.xml2db.swing.impl / src / main / java / org / gvsig / xml2db / swing / impl / Xml2dbSwingImplLibrary.java @ 47426
History | View | Annotate | Download (2.44 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (c) 2007-2020 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 2
|
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.xml2db.swing.impl; |
25 |
|
26 |
import org.gvsig.fmap.dal.swing.DALSwingLibrary; |
27 |
import org.gvsig.tools.ToolsLibrary; |
28 |
import org.gvsig.tools.library.AbstractLibrary; |
29 |
import org.gvsig.tools.library.LibraryException; |
30 |
import org.gvsig.tools.swing.api.ToolsSwingUtils; |
31 |
import org.gvsig.xml2db.swing.Xml2dbSwingLibrary; |
32 |
import org.gvsig.xml2db.swing.Xml2dbSwingLocator; |
33 |
|
34 |
/**
|
35 |
* @author gvSIG Team
|
36 |
*
|
37 |
*/
|
38 |
public class Xml2dbSwingImplLibrary extends AbstractLibrary { |
39 |
|
40 |
@Override
|
41 |
public void doRegistration() { |
42 |
super.doRegistration();
|
43 |
registerAsImplementationOf(Xml2dbSwingLibrary.class); |
44 |
this.require(ToolsLibrary.class);
|
45 |
this.require(DALSwingLibrary.class);
|
46 |
} |
47 |
|
48 |
@Override
|
49 |
protected void doInitialize() throws LibraryException { |
50 |
Xml2dbSwingLocator.registerXml2dbSwingManager(Xml2dbSwingManagerImpl.class); |
51 |
} |
52 |
|
53 |
@Override
|
54 |
protected void doPostInitialize() throws LibraryException { |
55 |
registerIcons(); |
56 |
} |
57 |
|
58 |
|
59 |
private void registerIcons() { |
60 |
ToolsSwingUtils.registerIcons( |
61 |
Xml2dbSwingImplLibrary.class, |
62 |
"/org/gvsig/xml2db/swing/impl/images",
|
63 |
"xml2db",
|
64 |
new String[] { "xml2db", "detect-crs" }, |
65 |
new String[] { "xml2db", "detect-charset" } |
66 |
); |
67 |
ToolsSwingUtils.registerGroupIconScreenshot( |
68 |
Xml2dbSwingImplLibrary.class, |
69 |
"xml2db",
|
70 |
"/org/gvsig/xml2db/swing/impl/screenshots/xml2db1.png"
|
71 |
); |
72 |
} |
73 |
|
74 |
} |