Statistics
| Revision:

gvsig-projects-pool / org.gvsig.lidar.app / org.gvsig.lidar.app.mainplugin / src / main / java / org / gvsig / exportto / swing / prov / lidar / ExporttoLASProviderLibrary.java @ 281

History | View | Annotate | Download (2.31 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2016 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or modify it under
7
 * the terms of the GNU General Public License as published by the Free Software
8
 * Foundation; either version 3 of the License, or (at your option) any later
9
 * version.
10
 *
11
 * This program is distributed in the hope that it will be useful, but WITHOUT
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14
 * details.
15
 *
16
 * You should have received a copy of the GNU General Public License along with
17
 * this program; if not, write to the Free Software Foundation, Inc., 51
18
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us at info AT
21
 * gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.exportto.swing.prov.lidar;
24

    
25
import org.gvsig.exportto.swing.ExporttoSwingLibrary;
26
import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
27
import org.gvsig.fmap.dal.DALLibrary;
28
import org.gvsig.tools.ToolsLocator;
29
import org.gvsig.tools.i18n.I18nManager;
30
import org.gvsig.tools.library.AbstractLibrary;
31
import org.gvsig.tools.library.LibraryException;
32
import org.gvsig.tools.service.spi.ProviderManager;
33

    
34
/**
35
 * @author <a href="mailto:cmartinez@scolab.es">Cesar Martinez Izquierdo</a>
36
 *
37
 */
38
public class ExporttoLASProviderLibrary extends AbstractLibrary {
39

    
40
    @Override
41
    public void doRegistration() {
42
        registerAsServiceOf(ExporttoSwingLibrary.class);
43
        require(DALLibrary.class);
44
        require(ExporttoSwingLibrary.class);
45
    }
46

    
47
    @Override
48
    protected void doInitialize() throws LibraryException {
49
        I18nManager i18nManager = ToolsLocator.getI18nManager();
50
        i18nManager.addResourceFamily(
51
                "org.gvsig.exportto.swing.prov.lidar",
52
                ExporttoLASProviderLibrary.class.getClassLoader(),
53
                ExporttoLASProviderLibrary.class.getClass().getName()
54
        );
55
    }
56

    
57
    @Override
58
    protected void doPostInitialize() throws LibraryException {
59
        ProviderManager providerManager = ExporttoSwingProviderLocator.getManager();
60
        providerManager.addProviderFactory(new ExporttoLASProviderFactory());
61
    }
62

    
63
}