gvsig-projects-pool / org.gvsig.vcsgis / trunk / org.gvsig.vcsgis / org.gvsig.vcsgis.swing / org.gvsig.vcsgis.swing.impl / src / main / java / org / gvsig / vcsgis / swing / impl / VCSGisSwingImplLibrary.java @ 8713
History | View | Annotate | Download (3.39 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.vcsgis.swing.impl; |
25 |
|
26 |
import org.gvsig.vcsgis.swing.VCSGisSwingLibrary; |
27 |
import org.gvsig.vcsgis.swing.VCSGisSwingLocator; |
28 |
import org.gvsig.tools.library.AbstractLibrary; |
29 |
import org.gvsig.tools.library.LibraryException; |
30 |
import org.gvsig.tools.swing.api.ToolsSwingUtils; |
31 |
import static org.gvsig.vcsgis.swing.impl.VCSGisSwingManagerImpl.ICON_GROUP_NAME; |
32 |
import static org.gvsig.vcsgis.swing.impl.VCSGisSwingManagerImpl.ICON_PROVIDER_NAME; |
33 |
import org.gvsig.vcsgis.swing.impl.changes.VCSGisJChangesImpl; |
34 |
import org.gvsig.vcsgis.swing.impl.checkout.VCSGisJCheckoutImpl; |
35 |
import org.gvsig.vcsgis.swing.impl.checkoutDataModel.VCSGisJCheckoutDataModelImpl; |
36 |
import org.gvsig.vcsgis.swing.impl.initworkspace.VCSGisJInitWorkspaceImpl; |
37 |
import org.gvsig.vcsgis.swing.impl.registerWorkspace.VCSGisJRegisterWorkspaceImpl; |
38 |
import org.gvsig.vcsgis.swing.impl.revisions.VCSGisJRevisionsController; |
39 |
|
40 |
/**
|
41 |
* @author gvSIG Team
|
42 |
*
|
43 |
*/
|
44 |
public class VCSGisSwingImplLibrary extends AbstractLibrary { |
45 |
|
46 |
@Override
|
47 |
public void doRegistration() { |
48 |
registerAsImplementationOf(VCSGisSwingLibrary.class); |
49 |
} |
50 |
|
51 |
@Override
|
52 |
protected void doInitialize() throws LibraryException { |
53 |
VCSGisSwingLocator.registerVCSGisSwingManager(VCSGisSwingManagerImpl.class); |
54 |
} |
55 |
|
56 |
@Override
|
57 |
protected void doPostInitialize() throws LibraryException { |
58 |
VCSWorkspacePickerControllerImpl.selfRegister(); |
59 |
VCSGisJChangesImpl.selfRegister(); |
60 |
VCSGisJRegisterWorkspaceImpl.selfRegister(); |
61 |
VCSGisJCheckoutImpl.selfRegister(); |
62 |
VCSGisJCheckoutDataModelImpl.selfRegister(); |
63 |
VCSGisJInitWorkspaceImpl.selfRegister(); |
64 |
VCSGisJRevisionsController.selfRegister(); |
65 |
|
66 |
ExportFeatureTypeForVCSGisRepository.selfRegister(); |
67 |
|
68 |
ToolsSwingUtils.registerIcons( |
69 |
VCSGisSwingImplLibrary.class, |
70 |
"/org/gvsig/vcsgis/swing/impl/images",
|
71 |
ICON_PROVIDER_NAME, |
72 |
new String[]{ ICON_GROUP_NAME, "vcsgis-common-init-workspace", "vcsgis-common"}, |
73 |
new String[]{ ICON_GROUP_NAME, "vcsgis-common-checkout", "vcsgis-common"}, |
74 |
new String[]{ ICON_GROUP_NAME, "vcsgis-common-checkout-datamodel", "vcsgis-common"} |
75 |
); |
76 |
ToolsSwingUtils.registerSubgroupIconScreenshot( |
77 |
this.getClass(),
|
78 |
"vcsgis",
|
79 |
"vcsgis-common",
|
80 |
"/org/gvsig/vcsgis/swing/impl/screenshots/vcsgis-addlayer.png"
|
81 |
); |
82 |
} |
83 |
|
84 |
} |