gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.util / org.gvsig.tools.util.impl / src / main / java / org / gvsig / tools / util / impl / ToolsUtilLibraryImpl.java @ 2887
History | View | Annotate | Download (3.47 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 modify it under
|
7 |
* the terms of the GNU General Public License as published by the Free Software
|
8 |
* Foundation; either version 2 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.tools.util.impl; |
24 |
|
25 |
import org.gvsig.configurableactions.DefaultConfigurableActionsMamager; |
26 |
import org.gvsig.euclidean.DefaultEuclideanManager; |
27 |
import org.gvsig.filedialogchooser.impl.DefaultFileDialogChooserManager; |
28 |
import org.gvsig.imageviewer.DefaultImageViewerManager; |
29 |
import org.gvsig.json.JsonManagerImpl; |
30 |
import org.gvsig.propertypage.impl.DefaultPropertiesPageManager; |
31 |
import org.gvsig.simplehttpserver.SimpleServerManagerImpl; |
32 |
import org.gvsig.svgsupport.DumbSVGSupportManager; |
33 |
import org.gvsig.texteditor.DefaultTextEditorManager; |
34 |
import org.gvsig.tools.library.AbstractLibrary; |
35 |
import org.gvsig.tools.library.Library; |
36 |
import org.gvsig.tools.library.LibraryException; |
37 |
import org.gvsig.tools.util.ToolsUtilLibrary; |
38 |
import org.gvsig.tools.util.ToolsUtilLocator; |
39 |
import org.gvsig.webbrowser.cssbox.CSSBoxWebBrowserManager; |
40 |
import org.gvsig.webbrowser.impl.DefaultWebBrowserManager; |
41 |
import org.gvsig.webbrowser.impl.DefaultWebBrowserPanel; |
42 |
|
43 |
/**
|
44 |
* {@link Library} for the default tools util implementation.
|
45 |
*
|
46 |
* @author gvSIG team
|
47 |
*/
|
48 |
public class ToolsUtilLibraryImpl extends AbstractLibrary { |
49 |
|
50 |
@Override
|
51 |
public void doRegistration() { |
52 |
super.doRegistration();
|
53 |
registerAsImplementationOf(ToolsUtilLibrary.class); |
54 |
} |
55 |
|
56 |
@Override
|
57 |
protected void doInitialize() throws LibraryException { |
58 |
ToolsUtilLocator.registerDefaultToolsUtilManager(DefaultToolsUtilManager.class); |
59 |
ToolsUtilLocator.registerDefaultFileDialogChooserManager(DefaultFileDialogChooserManager.class); |
60 |
ToolsUtilLocator.registerDefaultSVGSupportManager(DumbSVGSupportManager.class); |
61 |
ToolsUtilLocator.registerDefaultImageViewerManager(DefaultImageViewerManager.class); |
62 |
ToolsUtilLocator.registerDefaultConfigurableActionsMamager(DefaultConfigurableActionsMamager.class); |
63 |
ToolsUtilLocator.registerDefaultPropertiesPageManager(DefaultPropertiesPageManager.class); |
64 |
ToolsUtilLocator.registerDefaultTextEditorManager(DefaultTextEditorManager.class); |
65 |
|
66 |
ToolsUtilLocator.registerDefaultWebBrowserManager(DefaultWebBrowserManager.class); |
67 |
ToolsUtilLocator.registerWebBrowserManager(CSSBoxWebBrowserManager.class); |
68 |
|
69 |
ToolsUtilLocator.registerEuclideanManager(DefaultEuclideanManager.class); |
70 |
|
71 |
ToolsUtilLocator.registerJsonManager(JsonManagerImpl.class); |
72 |
|
73 |
ToolsUtilLocator.registerSimpleServerManager(SimpleServerManagerImpl.class); |
74 |
|
75 |
DefaultWebBrowserPanel.selfRegister(); |
76 |
} |
77 |
|
78 |
@Override
|
79 |
protected void doPostInitialize() throws LibraryException { |
80 |
|
81 |
} |
82 |
|
83 |
} |