Revision 44735
tags/org.gvsig.desktop-2.0.266/org.gvsig.desktop.plugin/org.gvsig.h2spatial.app/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.h2spatial.app</artifactId> |
|
6 |
<name>${project.artifactId}</name> |
|
7 |
<packaging>pom</packaging> |
|
8 |
<parent> |
|
9 |
<groupId>org.gvsig</groupId> |
|
10 |
<artifactId>org.gvsig.desktop.plugin</artifactId> |
|
11 |
<version>2.0.266</version> |
|
12 |
</parent> |
|
13 |
|
|
14 |
<modules> |
|
15 |
<module>org.gvsig.h2spatial.app.mainplugin</module> |
|
16 |
</modules> |
|
17 |
</project> |
tags/org.gvsig.desktop-2.0.266/org.gvsig.desktop.plugin/org.gvsig.h2spatial.app/org.gvsig.h2spatial.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Wed Jan 29 21:57:09 CET 2020 |
|
2 |
buildNumber=2812 |
tags/org.gvsig.desktop-2.0.266/org.gvsig.desktop.plugin/org.gvsig.h2spatial.app/org.gvsig.h2spatial.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
|
8 |
modify it under the terms of the GNU General Public License |
|
9 |
as published by the Free Software Foundation; either version 3 |
|
10 |
of the License, or (at your option) any later version. |
|
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
GNU General Public License for more details. |
|
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
|
18 |
along with this program; if not, write to the Free Software |
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
MA 02110-1301, USA. |
|
21 |
|
|
22 |
For any additional information, do not hesitate to contact us |
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
|
|
25 |
--> |
|
26 |
<assembly> |
|
27 |
<id>gvsig-plugin-package</id> |
|
28 |
<formats> |
|
29 |
<format>zip</format> |
|
30 |
</formats> |
|
31 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
32 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
33 |
<files> |
|
34 |
<file> |
|
35 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
36 |
<outputDirectory>lib</outputDirectory> |
|
37 |
</file> |
|
38 |
<file> |
|
39 |
<source>target/package.info</source> |
|
40 |
</file> |
|
41 |
</files> |
|
42 |
|
|
43 |
<fileSets> |
|
44 |
<fileSet> |
|
45 |
<directory>src/main/resources-plugin</directory> |
|
46 |
<outputDirectory>.</outputDirectory> |
|
47 |
</fileSet> |
|
48 |
</fileSets> |
|
49 |
|
|
50 |
|
|
51 |
<dependencySets> |
|
52 |
<dependencySet> |
|
53 |
<useProjectArtifact>false</useProjectArtifact> |
|
54 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
55 |
<outputDirectory>lib</outputDirectory> |
|
56 |
<includes> |
|
57 |
<include>org.gvsig:org.gvsig.fmap.dal.db.h2</include> |
|
58 |
<include>commons-dbcp:commons-dbcp</include> |
|
59 |
<include>commons-pool:commons-pool</include> |
|
60 |
|
|
61 |
<include>com.h2database:h2</include> |
|
62 |
<include>org.orbisgis:h2spatial</include> |
|
63 |
<include>org.orbisgis:h2spatial-api</include> |
|
64 |
<include>org.orbisgis:cts</include> |
|
65 |
<include>org.orbisgis:h2gis-ext</include> |
|
66 |
<include>org.orbisgis:h2gis-api</include> |
|
67 |
<include>org.orbisgis:h2gis-functions</include> |
|
68 |
<include>org.orbisgis:h2gis-network</include> |
|
69 |
<include>org.orbisgis:h2gis-utilities</include> |
|
70 |
<include>org.orbisgis:h2network</include> |
|
71 |
<include>org.orbisgis:java-network-analyzer</include> |
|
72 |
<include>org.orbisgis:poly2tri-core</include> |
|
73 |
<include>com.fasterxml.jackson.core:jackson-core:jar</include> |
|
74 |
<include>org.apache.commons:commons-compress:jar</include> |
|
75 |
|
|
76 |
<include>org.jgrapht:jgrapht-core</include> |
|
77 |
|
|
78 |
</includes> |
|
79 |
</dependencySet> |
|
80 |
</dependencySets> |
|
81 |
|
|
82 |
</assembly> |
|
83 |
|
tags/org.gvsig.desktop-2.0.266/org.gvsig.desktop.plugin/org.gvsig.h2spatial.app/org.gvsig.h2spatial.app.mainplugin/src/main/java/org/gvsig/h2spatial/H2SpatialExtension.java | ||
---|---|---|
1 |
|
|
2 |
package org.gvsig.h2spatial; |
|
3 |
|
|
4 |
import java.awt.event.ActionEvent; |
|
5 |
import java.awt.event.ActionListener; |
|
6 |
import java.io.File; |
|
7 |
import java.net.BindException; |
|
8 |
import java.sql.SQLException; |
|
9 |
import java.text.MessageFormat; |
|
10 |
import java.util.ArrayList; |
|
11 |
import java.util.List; |
|
12 |
import javax.swing.JOptionPane; |
|
13 |
import javax.swing.filechooser.FileNameExtensionFilter; |
|
14 |
import org.apache.commons.collections.CollectionUtils; |
|
15 |
import org.apache.commons.io.FilenameUtils; |
|
16 |
import org.apache.commons.lang3.ArrayUtils; |
|
17 |
import org.apache.commons.lang3.BooleanUtils; |
|
18 |
import org.apache.commons.lang3.StringUtils; |
|
19 |
import org.gvsig.andami.IconThemeHelper; |
|
20 |
import org.gvsig.andami.plugins.Extension; |
|
21 |
import org.gvsig.app.ApplicationLocator; |
|
22 |
import org.gvsig.app.ApplicationManager; |
|
23 |
import org.gvsig.app.project.documents.view.ViewDocument; |
|
24 |
import org.gvsig.app.project.documents.view.ViewManager; |
|
25 |
import org.gvsig.filedialogchooser.FileDialogChooser; |
|
26 |
import org.gvsig.fmap.dal.DALLocator; |
|
27 |
import org.gvsig.fmap.dal.DataManager; |
|
28 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
29 |
import org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemStoreParameters; |
|
30 |
import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer; |
|
31 |
import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters; |
|
32 |
import org.gvsig.fmap.dal.swing.DALSwingLocator; |
|
33 |
import org.gvsig.fmap.dal.swing.jdbc.JDBCConnectionPanel; |
|
34 |
import org.gvsig.fmap.geom.primitive.Envelope; |
|
35 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
|
36 |
import org.gvsig.fmap.mapcontext.MapContextManager; |
|
37 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
38 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
|
39 |
import org.gvsig.tools.ToolsLocator; |
|
40 |
import org.gvsig.tools.folders.FoldersManager; |
|
41 |
import org.gvsig.tools.i18n.I18nManager; |
|
42 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
43 |
import org.gvsig.tools.swing.api.windowmanager.Dialog; |
|
44 |
import org.gvsig.tools.swing.api.windowmanager.WindowManager; |
|
45 |
import org.gvsig.tools.swing.api.windowmanager.WindowManager_v2; |
|
46 |
import org.gvsig.webbrowser.WebBrowserFactory; |
|
47 |
import org.gvsig.webbrowser.WebBrowserPanel; |
|
48 |
import org.h2.tools.Server; |
|
49 |
|
|
50 |
|
|
51 |
public class H2SpatialExtension extends Extension { |
|
52 |
|
|
53 |
public static String DAL_EXPLORER_NAME = "H2Spatial"; |
|
54 |
|
|
55 |
@Override |
|
56 |
public void initialize() { |
|
57 |
} |
|
58 |
|
|
59 |
@Override |
|
60 |
public boolean canQueryByAction() { |
|
61 |
return true; |
|
62 |
} |
|
63 |
|
|
64 |
@Override |
|
65 |
public void postInitialize() { |
|
66 |
MapContextManager mapContextMgr = MapContextLocator.getMapContextManager(); |
|
67 |
|
|
68 |
IconThemeHelper.registerIcon("layer", "layer-icon-h2", this); |
|
69 |
mapContextMgr.registerIconLayer("H2Spatial", "layer-icon-h2"); |
|
70 |
} |
|
71 |
|
|
72 |
@Override |
|
73 |
public void execute(String actionCommand) { |
|
74 |
switch(actionCommand.toLowerCase()) { |
|
75 |
case "tools-h2spatial-show-admintool": |
|
76 |
startserver(); |
|
77 |
startbrowser(); |
|
78 |
break; |
|
79 |
|
|
80 |
case "tools-h2spatial-linklayer": |
|
81 |
linkActiveLayers(); |
|
82 |
break; |
|
83 |
|
|
84 |
case "tools-h2spatial-import": |
|
85 |
importTables(); |
|
86 |
break; |
|
87 |
|
|
88 |
case "tools-h2spatial-downloadosm": |
|
89 |
downloadOSM(); |
|
90 |
break; |
|
91 |
} |
|
92 |
} |
|
93 |
|
|
94 |
private void startserver() { |
|
95 |
try { |
|
96 |
Server server = Server.createWebServer("-webPort","8082"); |
|
97 |
server.start(); |
|
98 |
} catch (SQLException ex) { |
|
99 |
if( ex.getCause() instanceof BindException ) { |
|
100 |
logger.warn("Can't start H2 web server, ? Already running ?"); |
|
101 |
} else { |
|
102 |
logger.warn("Can't start H2 web server.",ex); |
|
103 |
} |
|
104 |
} |
|
105 |
} |
|
106 |
|
|
107 |
private List<FLyrVect> getSelectedLayers() { |
|
108 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
109 |
ViewDocument viewdoc = (ViewDocument) application.getActiveDocument(ViewManager.TYPENAME); |
|
110 |
if( viewdoc == null ) { |
|
111 |
return null; |
|
112 |
} |
|
113 |
FLayer[] layers = viewdoc.getMapContext().getLayers().getActives(); |
|
114 |
if( ArrayUtils.isEmpty(layers) ) { |
|
115 |
return null; |
|
116 |
} |
|
117 |
List<FLyrVect> r = new ArrayList<>(); |
|
118 |
for( FLayer layer : layers ) { |
|
119 |
if( layer instanceof FLyrVect ) { |
|
120 |
FeatureStore store = ((FLyrVect)layer).getFeatureStore(); |
|
121 |
if( store != null ) { |
|
122 |
if( store.getParameters() instanceof FilesystemStoreParameters && |
|
123 |
StringUtils.equalsIgnoreCase(store.getProviderName(),"Shape") ) { |
|
124 |
r.add((FLyrVect) layer); |
|
125 |
} |
|
126 |
} |
|
127 |
} |
|
128 |
} |
|
129 |
if( r.isEmpty() ) { |
|
130 |
return null; |
|
131 |
} |
|
132 |
return r; |
|
133 |
} |
|
134 |
|
|
135 |
@Override |
|
136 |
public boolean isEnabled() { |
|
137 |
return true; |
|
138 |
} |
|
139 |
|
|
140 |
@Override |
|
141 |
public boolean isVisible() { |
|
142 |
return true; |
|
143 |
} |
|
144 |
|
|
145 |
@Override |
|
146 |
public boolean isEnabled(String action) { |
|
147 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
148 |
|
|
149 |
if( "tools-h2spatial-show-admintool".equalsIgnoreCase(action) ) { |
|
150 |
return true; |
|
151 |
} |
|
152 |
if( "tools-h2spatial-linklayer".equalsIgnoreCase(action) ) { |
|
153 |
return ! CollectionUtils.isEmpty(this.getSelectedLayers()); |
|
154 |
} |
|
155 |
if( "tools-h2spatial-import".equalsIgnoreCase(action) ) { |
|
156 |
return true; |
|
157 |
} |
|
158 |
if( "tools-h2spatial-downloadosm".equalsIgnoreCase(action) ) { |
|
159 |
ViewDocument viewDoc = (ViewDocument) application.getActiveDocument(ViewManager.TYPENAME); |
|
160 |
if( viewDoc == null ) { |
|
161 |
return false; |
|
162 |
} |
|
163 |
Envelope env = viewDoc.getMapContext().getViewPort().getEnvelope(); |
|
164 |
return !(env != null && env.isEmpty()); |
|
165 |
} |
|
166 |
return false; |
|
167 |
} |
|
168 |
|
|
169 |
@Override |
|
170 |
public boolean isVisible(String action) { |
|
171 |
return true; |
|
172 |
} |
|
173 |
|
|
174 |
private void startbrowser() { |
|
175 |
WindowManager winmanager = ToolsSwingLocator.getWindowManager(); |
|
176 |
WebBrowserPanel webbrowser = WebBrowserFactory.createWebBrowserPanel(); |
|
177 |
winmanager.showWindow( |
|
178 |
webbrowser.asJComponent(), |
|
179 |
ToolsLocator.getI18nManager().getTranslation("_H2_administration_tool"), |
|
180 |
WindowManager.MODE.WINDOW |
|
181 |
); |
|
182 |
webbrowser.setPage("http://localhost:8082"); |
|
183 |
|
|
184 |
} |
|
185 |
|
|
186 |
private void importTables() { |
|
187 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
188 |
WindowManager_v2 winmanager = (WindowManager_v2) ToolsSwingLocator.getWindowManager(); |
|
189 |
final ImportTable panel = new ImportTable(); |
|
190 |
final Dialog dlg = winmanager.createDialog( |
|
191 |
panel, |
|
192 |
i18n.getTranslation("_Select_files_to_import"), |
|
193 |
i18n.getTranslation("_Select_files_to_import_as_tables_in_H2_database"), |
|
194 |
WindowManager_v2.BUTTONS_OK_CANCEL |
|
195 |
); |
|
196 |
dlg.addActionListener(new ActionListener() { |
|
197 |
@Override |
|
198 |
public void actionPerformed(ActionEvent e) { |
|
199 |
if( dlg.getAction()==WindowManager_v2.BUTTONS_OK ) { |
|
200 |
doImportTables( |
|
201 |
panel.getExplorerParameters(), |
|
202 |
panel.getFileType(), |
|
203 |
panel.getFile(), |
|
204 |
panel.getTableName(), |
|
205 |
panel.getDeleteTables() |
|
206 |
); |
|
207 |
} |
|
208 |
} |
|
209 |
}); |
|
210 |
dlg.show(WindowManager.MODE.WINDOW); |
|
211 |
} |
|
212 |
|
|
213 |
private void doImportTables(JDBCServerExplorerParameters explorerParameters, String fileType, File file, String tableName, boolean deleteTables) { |
|
214 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
215 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
216 |
|
|
217 |
StringBuilder sql = new StringBuilder(); |
|
218 |
switch(fileType.toLowerCase()) { |
|
219 |
case "gpx": |
|
220 |
sql.append("CALL GPXRead('"); |
|
221 |
sql.append(file.getAbsolutePath()); |
|
222 |
sql.append("', '"); |
|
223 |
sql.append(tableName); |
|
224 |
sql.append("');"); |
|
225 |
break; |
|
226 |
case "geojson": |
|
227 |
sql.append("CALL GeoJsonRead('"); |
|
228 |
sql.append(file.getAbsolutePath()); |
|
229 |
sql.append("', '"); |
|
230 |
sql.append(tableName); |
|
231 |
sql.append("');"); |
|
232 |
break; |
|
233 |
case "osm": |
|
234 |
sql.append("CALL OSMRead('"); |
|
235 |
sql.append(file.getAbsolutePath()); |
|
236 |
sql.append("', '"); |
|
237 |
sql.append(tableName); |
|
238 |
sql.append("', "); |
|
239 |
sql.append(BooleanUtils.toStringTrueFalse(deleteTables)); |
|
240 |
sql.append(");"); |
|
241 |
break; |
|
242 |
default: |
|
243 |
return; |
|
244 |
} |
|
245 |
try { |
|
246 |
DataManager dataManager = DALLocator.getDataManager(); |
|
247 |
JDBCServerExplorer explorer = (JDBCServerExplorer) dataManager.openServerExplorer( |
|
248 |
explorerParameters.getExplorerName(), |
|
249 |
explorerParameters |
|
250 |
); |
|
251 |
explorer.execute(sql.toString()); |
|
252 |
} catch(Exception ex) { |
|
253 |
logger.warn("Can't import file.",ex); |
|
254 |
application.messageDialog( |
|
255 |
i18n.getTranslation("_Cant_import_file.") + |
|
256 |
"\n" + |
|
257 |
i18n.getTranslation("_See_the_log_file_to_more_information"), |
|
258 |
i18n.getTranslation("_Warning"), |
|
259 |
JOptionPane.WARNING_MESSAGE |
|
260 |
); |
|
261 |
} |
|
262 |
} |
|
263 |
|
|
264 |
private void linkActiveLayers() { |
|
265 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
266 |
final List<FLyrVect> layers = this.getSelectedLayers(); |
|
267 |
if( CollectionUtils.isEmpty(layers) ) { |
|
268 |
return; |
|
269 |
} |
|
270 |
final JDBCConnectionPanel jdbcConnectionPanel = DALSwingLocator.getSwingManager().createJDBCConnectionPanel(); |
|
271 |
jdbcConnectionPanel.setConnectorFilter(new JDBCConnectionPanel.ConnectorFilter() { |
|
272 |
@Override |
|
273 |
public boolean accept(JDBCServerExplorerParameters parameters) { |
|
274 |
return StringUtils.equalsIgnoreCase(parameters.getExplorerName(), DAL_EXPLORER_NAME); |
|
275 |
} |
|
276 |
}); |
|
277 |
WindowManager_v2 winmanager = (WindowManager_v2) ToolsSwingLocator.getWindowManager(); |
|
278 |
final Dialog dlg = winmanager.createDialog( |
|
279 |
jdbcConnectionPanel.asJComponent(), |
|
280 |
i18n.getTranslation("_Select_database"), |
|
281 |
null, |
|
282 |
WindowManager_v2.BUTTONS_OK_CANCEL |
|
283 |
); |
|
284 |
dlg.addActionListener(new ActionListener() { |
|
285 |
@Override |
|
286 |
public void actionPerformed(ActionEvent e) { |
|
287 |
if( dlg.getAction()==WindowManager_v2.BUTTONS_OK ) { |
|
288 |
JDBCServerExplorerParameters params = jdbcConnectionPanel.getServerExplorerParameters(); |
|
289 |
linkLayers(layers, params); |
|
290 |
} |
|
291 |
} |
|
292 |
}); |
|
293 |
dlg.show(WindowManager.MODE.WINDOW); |
|
294 |
} |
|
295 |
|
|
296 |
private void linkLayers(List<FLyrVect> layers, JDBCServerExplorerParameters params) { |
|
297 |
try { |
|
298 |
JDBCServerExplorer explorer = (JDBCServerExplorer) DALLocator.getDataManager().openServerExplorer( |
|
299 |
params.getExplorerName(), |
|
300 |
params |
|
301 |
); |
|
302 |
for( FLyrVect layer : layers ) { |
|
303 |
FilesystemStoreParameters layerParameters = (FilesystemStoreParameters) |
|
304 |
layer.getFeatureStore().getParameters(); |
|
305 |
File f = layerParameters.getFile(); |
|
306 |
String sql = MessageFormat.format( |
|
307 |
"CALL FILE_TABLE(''{0}'', ''{1}'')", |
|
308 |
FilenameUtils.normalize(f.getAbsolutePath(), true), |
|
309 |
layer.getName() |
|
310 |
); |
|
311 |
explorer.execute(sql); |
|
312 |
} |
|
313 |
} catch (Exception ex) { |
|
314 |
} |
|
315 |
} |
|
316 |
|
|
317 |
private void downloadOSM() { |
|
318 |
|
|
319 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
320 |
FoldersManager foldersManager = ToolsLocator.getFoldersManager(); |
|
321 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
322 |
|
|
323 |
ViewDocument viewDoc = (ViewDocument) application.getActiveDocument(ViewManager.TYPENAME); |
|
324 |
if( viewDoc == null ) { |
|
325 |
return; |
|
326 |
} |
|
327 |
final Envelope env = viewDoc.getMapContext().getViewPort().getEnvelope(); |
|
328 |
final File[] files = application.showChooserDialog( |
|
329 |
i18n.getTranslation("_Select_the_file_in_which_to_save_the_data"), |
|
330 |
FileDialogChooser.SAVE_DIALOG, |
|
331 |
FileDialogChooser.FILES_ONLY, |
|
332 |
false, |
|
333 |
foldersManager.get("DataFolder"), |
|
334 |
new FileNameExtensionFilter( |
|
335 |
"OSM File (.osm, .osm.gz, .osm.bz2)", |
|
336 |
".osm", ".osm.gz", ".osm.bz2" |
|
337 |
), |
|
338 |
false |
|
339 |
); |
|
340 |
|
|
341 |
if( !ArrayUtils.isEmpty(files) ) { |
|
342 |
final JDBCConnectionPanel jdbcConnectionPanel = DALSwingLocator.getSwingManager().createJDBCConnectionPanel(); |
|
343 |
jdbcConnectionPanel.setConnectorFilter(new JDBCConnectionPanel.ConnectorFilter() { |
|
344 |
@Override |
|
345 |
public boolean accept(JDBCServerExplorerParameters parameters) { |
|
346 |
return StringUtils.equalsIgnoreCase(parameters.getExplorerName(), DAL_EXPLORER_NAME); |
|
347 |
} |
|
348 |
}); |
|
349 |
WindowManager_v2 winmanager = (WindowManager_v2) ToolsSwingLocator.getWindowManager(); |
|
350 |
final Dialog dlg = winmanager.createDialog( |
|
351 |
jdbcConnectionPanel.asJComponent(), |
|
352 |
i18n.getTranslation("_Select_database"), |
|
353 |
null, |
|
354 |
WindowManager_v2.BUTTONS_OK_CANCEL |
|
355 |
); |
|
356 |
dlg.addActionListener(new ActionListener() { |
|
357 |
@Override |
|
358 |
public void actionPerformed(ActionEvent e) { |
|
359 |
if( dlg.getAction()==WindowManager_v2.BUTTONS_OK ) { |
|
360 |
doDownloadOSM( |
|
361 |
env, |
|
362 |
files[0], |
|
363 |
jdbcConnectionPanel.getServerExplorerParameters() |
|
364 |
); |
|
365 |
} |
|
366 |
} |
|
367 |
}); |
|
368 |
dlg.show(WindowManager.MODE.WINDOW); |
|
369 |
} |
|
370 |
} |
|
371 |
|
|
372 |
private void doDownloadOSM(Envelope env, File f, JDBCServerExplorerParameters explorerParameters) { |
|
373 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
374 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
375 |
|
|
376 |
try { |
|
377 |
String sql = MessageFormat.format( |
|
378 |
"CALL ST_OSMDownloader(''{0}''::geometry, ''{1}'');", |
|
379 |
env.getGeometry().convertToWKT(), |
|
380 |
f.getAbsolutePath() |
|
381 |
); |
|
382 |
DataManager dataManager = DALLocator.getDataManager(); |
|
383 |
JDBCServerExplorer explorer = (JDBCServerExplorer) dataManager.openServerExplorer( |
|
384 |
explorerParameters.getExplorerName(), |
|
385 |
explorerParameters |
|
386 |
); |
|
387 |
explorer.execute(sql); |
|
388 |
} catch(Exception ex) { |
|
389 |
logger.warn("Can't download from OSM.",ex); |
|
390 |
application.messageDialog( |
|
391 |
i18n.getTranslation("_Cant_download_from_OSM.") + |
|
392 |
"\n" + |
|
393 |
i18n.getTranslation("_See_the_log_file_to_more_information"), |
|
394 |
i18n.getTranslation("_Warning"), |
|
395 |
JOptionPane.WARNING_MESSAGE |
|
396 |
); |
|
397 |
} |
|
398 |
} |
|
399 |
} |
tags/org.gvsig.desktop-2.0.266/org.gvsig.desktop.plugin/org.gvsig.h2spatial.app/org.gvsig.h2spatial.app.mainplugin/src/main/java/org/gvsig/h2spatial/ImportTableView.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<object classname="com.jeta.forms.store.memento.FormPackage"> |
|
4 |
<at name="fileversion"> |
|
5 |
<object classname="com.jeta.forms.store.memento.FormsVersion2"> |
|
6 |
<at name="major">2</at> |
|
7 |
<at name="minor">0</at> |
|
8 |
<at name="sub">0</at> |
|
9 |
</object> |
|
10 |
</at> |
|
11 |
<at name="form"> |
|
12 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
13 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
14 |
<at name="cellconstraints"> |
|
15 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
16 |
<at name="column">1</at> |
|
17 |
<at name="row">1</at> |
|
18 |
<at name="colspan">1</at> |
|
19 |
<at name="rowspan">1</at> |
|
20 |
<at name="halign">default</at> |
|
21 |
<at name="valign">default</at> |
|
22 |
<at name="insets" object="insets">0,0,0,0</at> |
|
23 |
</object> |
|
24 |
</at> |
|
25 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
26 |
</super> |
|
27 |
<at name="id">/home/jjdelcerro/datos/devel/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.h2spatial.app/org.gvsig.h2spatial.app.mainplugin/src/main/java/org/gvsig/h2spatial/importTableView.xml</at> |
|
28 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE</at> |
|
29 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE</at> |
|
30 |
<at name="components"> |
|
31 |
<object classname="java.util.LinkedList"> |
|
32 |
<item > |
|
33 |
<at name="value"> |
|
34 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
35 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
36 |
<at name="cellconstraints"> |
|
37 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
38 |
<at name="column">2</at> |
|
39 |
<at name="row">2</at> |
|
40 |
<at name="colspan">1</at> |
|
41 |
<at name="rowspan">1</at> |
|
42 |
<at name="halign">default</at> |
|
43 |
<at name="valign">default</at> |
|
44 |
<at name="insets" object="insets">0,0,0,0</at> |
|
45 |
</object> |
|
46 |
</at> |
|
47 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
48 |
</super> |
|
49 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
50 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
51 |
<at name="beanproperties"> |
|
52 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
53 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
54 |
<at name="properties"> |
|
55 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
56 |
<at name="border"> |
|
57 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
58 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
59 |
<at name="name">border</at> |
|
60 |
</super> |
|
61 |
<at name="borders"> |
|
62 |
<object classname="java.util.LinkedList"> |
|
63 |
<item > |
|
64 |
<at name="value"> |
|
65 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
66 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
67 |
<at name="name">border</at> |
|
68 |
</super> |
|
69 |
</object> |
|
70 |
</at> |
|
71 |
</item> |
|
72 |
</object> |
|
73 |
</at> |
|
74 |
</object> |
|
75 |
</at> |
|
76 |
<at name="name">lblConnection</at> |
|
77 |
<at name="width">75</at> |
|
78 |
<at name="text">Connection</at> |
|
79 |
<at name="fill"> |
|
80 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
81 |
<at name="name">fill</at> |
|
82 |
</object> |
|
83 |
</at> |
|
84 |
<at name="height">14</at> |
|
85 |
</object> |
|
86 |
</at> |
|
87 |
</object> |
|
88 |
</at> |
|
89 |
</object> |
|
90 |
</at> |
|
91 |
</item> |
|
92 |
<item > |
|
93 |
<at name="value"> |
|
94 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
95 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
96 |
<at name="cellconstraints"> |
|
97 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
98 |
<at name="column">2</at> |
|
99 |
<at name="row">4</at> |
|
100 |
<at name="colspan">1</at> |
|
101 |
<at name="rowspan">1</at> |
|
102 |
<at name="halign">default</at> |
|
103 |
<at name="valign">default</at> |
|
104 |
<at name="insets" object="insets">0,0,0,0</at> |
|
105 |
</object> |
|
106 |
</at> |
|
107 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
108 |
</super> |
|
109 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
110 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
111 |
<at name="beanproperties"> |
|
112 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
113 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
114 |
<at name="properties"> |
|
115 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
116 |
<at name="border"> |
|
117 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
118 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
119 |
<at name="name">border</at> |
|
120 |
</super> |
|
121 |
<at name="borders"> |
|
122 |
<object classname="java.util.LinkedList"> |
|
123 |
<item > |
|
124 |
<at name="value"> |
|
125 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
126 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
127 |
<at name="name">border</at> |
|
128 |
</super> |
|
129 |
</object> |
|
130 |
</at> |
|
131 |
</item> |
|
132 |
</object> |
|
133 |
</at> |
|
134 |
</object> |
|
135 |
</at> |
|
136 |
<at name="name">lblFileType</at> |
|
137 |
<at name="width">75</at> |
|
138 |
<at name="text">File type</at> |
|
139 |
<at name="fill"> |
|
140 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
141 |
<at name="name">fill</at> |
|
142 |
</object> |
|
143 |
</at> |
|
144 |
<at name="height">14</at> |
|
145 |
</object> |
|
146 |
</at> |
|
147 |
</object> |
|
148 |
</at> |
|
149 |
</object> |
|
150 |
</at> |
|
151 |
</item> |
|
152 |
<item > |
|
153 |
<at name="value"> |
|
154 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
155 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
156 |
<at name="cellconstraints"> |
|
157 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
158 |
<at name="column">2</at> |
|
159 |
<at name="row">6</at> |
|
160 |
<at name="colspan">1</at> |
|
161 |
<at name="rowspan">1</at> |
|
162 |
<at name="halign">default</at> |
|
163 |
<at name="valign">default</at> |
|
164 |
<at name="insets" object="insets">0,0,0,0</at> |
|
165 |
</object> |
|
166 |
</at> |
|
167 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
168 |
</super> |
|
169 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
170 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
171 |
<at name="beanproperties"> |
|
172 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
173 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
174 |
<at name="properties"> |
|
175 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
176 |
<at name="border"> |
|
177 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
178 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
179 |
<at name="name">border</at> |
|
180 |
</super> |
|
181 |
<at name="borders"> |
|
182 |
<object classname="java.util.LinkedList"> |
|
183 |
<item > |
|
184 |
<at name="value"> |
|
185 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
186 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
187 |
<at name="name">border</at> |
|
188 |
</super> |
|
189 |
</object> |
|
190 |
</at> |
|
191 |
</item> |
|
192 |
</object> |
|
193 |
</at> |
|
194 |
</object> |
|
195 |
</at> |
|
196 |
<at name="name">lblFile</at> |
|
197 |
<at name="width">75</at> |
|
198 |
<at name="text">File</at> |
|
199 |
<at name="fill"> |
|
200 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
201 |
<at name="name">fill</at> |
|
202 |
</object> |
|
203 |
</at> |
|
204 |
<at name="height">14</at> |
|
205 |
</object> |
|
206 |
</at> |
|
207 |
</object> |
|
208 |
</at> |
|
209 |
</object> |
|
210 |
</at> |
|
211 |
</item> |
|
212 |
<item > |
|
213 |
<at name="value"> |
|
214 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
215 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
216 |
<at name="cellconstraints"> |
|
217 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
218 |
<at name="column">2</at> |
|
219 |
<at name="row">8</at> |
|
220 |
<at name="colspan">1</at> |
|
221 |
<at name="rowspan">1</at> |
|
222 |
<at name="halign">default</at> |
|
223 |
<at name="valign">default</at> |
|
224 |
<at name="insets" object="insets">0,0,0,0</at> |
|
225 |
</object> |
|
226 |
</at> |
|
227 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
228 |
</super> |
|
229 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
230 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
231 |
<at name="beanproperties"> |
|
232 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
233 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
234 |
<at name="properties"> |
|
235 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
236 |
<at name="border"> |
|
237 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
238 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
239 |
<at name="name">border</at> |
|
240 |
</super> |
|
241 |
<at name="borders"> |
|
242 |
<object classname="java.util.LinkedList"> |
|
243 |
<item > |
|
244 |
<at name="value"> |
|
245 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
246 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
247 |
<at name="name">border</at> |
|
248 |
</super> |
|
249 |
</object> |
|
250 |
</at> |
|
251 |
</item> |
|
252 |
</object> |
|
253 |
</at> |
|
254 |
</object> |
|
255 |
</at> |
|
256 |
<at name="name">lblTableName</at> |
|
257 |
<at name="width">75</at> |
|
258 |
<at name="text">Table name</at> |
|
259 |
<at name="fill"> |
|
260 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
261 |
<at name="name">fill</at> |
|
262 |
</object> |
|
263 |
</at> |
|
264 |
<at name="height">14</at> |
|
265 |
</object> |
|
266 |
</at> |
|
267 |
</object> |
|
268 |
</at> |
|
269 |
</object> |
|
270 |
</at> |
|
271 |
</item> |
|
272 |
<item > |
|
273 |
<at name="value"> |
|
274 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
275 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
276 |
<at name="cellconstraints"> |
|
277 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
278 |
<at name="column">2</at> |
|
279 |
<at name="row">10</at> |
|
280 |
<at name="colspan">1</at> |
|
281 |
<at name="rowspan">1</at> |
|
282 |
<at name="halign">default</at> |
|
283 |
<at name="valign">default</at> |
|
284 |
<at name="insets" object="insets">0,0,0,0</at> |
|
285 |
</object> |
|
286 |
</at> |
|
287 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
288 |
</super> |
|
289 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
290 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
291 |
<at name="beanproperties"> |
|
292 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
293 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
294 |
<at name="properties"> |
|
295 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
296 |
<at name="border"> |
|
297 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
298 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
299 |
<at name="name">border</at> |
|
300 |
</super> |
|
301 |
<at name="borders"> |
|
302 |
<object classname="java.util.LinkedList"> |
|
303 |
<item > |
|
304 |
<at name="value"> |
|
305 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
306 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
307 |
<at name="name">border</at> |
|
308 |
</super> |
|
309 |
</object> |
|
310 |
</at> |
|
311 |
</item> |
|
312 |
</object> |
|
313 |
</at> |
|
314 |
</object> |
|
315 |
</at> |
|
316 |
<at name="name">lblDeleteTables</at> |
|
317 |
<at name="width">75</at> |
|
318 |
<at name="text">Delete tables</at> |
|
319 |
<at name="fill"> |
|
320 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
321 |
<at name="name">fill</at> |
|
322 |
</object> |
|
323 |
</at> |
|
324 |
<at name="height">14</at> |
|
325 |
</object> |
|
326 |
</at> |
|
327 |
</object> |
|
328 |
</at> |
|
329 |
</object> |
|
330 |
</at> |
|
331 |
</item> |
|
332 |
<item > |
|
333 |
<at name="value"> |
|
334 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
335 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
336 |
<at name="cellconstraints"> |
|
337 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
338 |
<at name="column">4</at> |
|
339 |
<at name="row">2</at> |
|
340 |
<at name="colspan">1</at> |
|
341 |
<at name="rowspan">1</at> |
|
342 |
<at name="halign">default</at> |
|
343 |
<at name="valign">default</at> |
|
344 |
<at name="insets" object="insets">0,0,0,0</at> |
|
345 |
</object> |
|
346 |
</at> |
|
347 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
348 |
</super> |
|
349 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
350 |
<at name="beanclass">javax.swing.JComboBox</at> |
|
351 |
<at name="beanproperties"> |
|
352 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
353 |
<at name="classname">javax.swing.JComboBox</at> |
|
354 |
<at name="properties"> |
|
355 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
356 |
<at name="border"> |
|
357 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
358 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
359 |
<at name="name">border</at> |
|
360 |
</super> |
|
361 |
<at name="borders"> |
|
362 |
<object classname="java.util.LinkedList"> |
|
363 |
<item > |
|
364 |
<at name="value"> |
|
365 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
366 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
367 |
<at name="name">border</at> |
|
368 |
</super> |
|
369 |
</object> |
|
370 |
</at> |
|
371 |
</item> |
|
372 |
</object> |
|
373 |
</at> |
|
374 |
</object> |
|
375 |
</at> |
|
376 |
<at name="name">cboConnection</at> |
|
377 |
<at name="width">392</at> |
|
378 |
<at name="items"> |
|
379 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
|
380 |
<at name="name">items</at> |
|
381 |
</object> |
|
382 |
</at> |
|
383 |
<at name="height">20</at> |
|
384 |
</object> |
|
385 |
</at> |
|
386 |
</object> |
|
387 |
</at> |
|
388 |
</object> |
|
389 |
</at> |
|
390 |
</item> |
|
391 |
<item > |
|
392 |
<at name="value"> |
|
393 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
394 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
395 |
<at name="cellconstraints"> |
|
396 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
397 |
<at name="column">6</at> |
|
398 |
<at name="row">2</at> |
|
399 |
<at name="colspan">1</at> |
|
400 |
<at name="rowspan">1</at> |
|
401 |
<at name="halign">default</at> |
|
402 |
<at name="valign">default</at> |
|
403 |
<at name="insets" object="insets">0,0,0,0</at> |
|
404 |
</object> |
|
405 |
</at> |
|
406 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
407 |
</super> |
|
408 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
409 |
<at name="beanclass">javax.swing.JButton</at> |
|
410 |
<at name="beanproperties"> |
|
411 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
412 |
<at name="classname">javax.swing.JButton</at> |
|
413 |
<at name="properties"> |
|
414 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
415 |
<at name="border"> |
|
416 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
417 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
418 |
<at name="name">border</at> |
|
419 |
</super> |
|
420 |
<at name="borders"> |
|
421 |
<object classname="java.util.LinkedList"> |
|
422 |
<item > |
|
423 |
<at name="value"> |
|
424 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
425 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
426 |
<at name="name">border</at> |
|
427 |
</super> |
|
428 |
</object> |
|
429 |
</at> |
|
430 |
</item> |
|
431 |
</object> |
|
432 |
</at> |
|
433 |
</object> |
|
434 |
</at> |
|
435 |
<at name="actionCommand">...</at> |
|
436 |
<at name="name">btnConnection</at> |
|
437 |
<at name="width">44</at> |
|
438 |
<at name="text">...</at> |
|
439 |
<at name="height">22</at> |
|
440 |
</object> |
|
441 |
</at> |
|
442 |
</object> |
|
443 |
</at> |
|
444 |
</object> |
|
445 |
</at> |
|
446 |
</item> |
|
447 |
<item > |
|
448 |
<at name="value"> |
|
449 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
450 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
451 |
<at name="cellconstraints"> |
|
452 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
453 |
<at name="column">4</at> |
|
454 |
<at name="row">4</at> |
|
455 |
<at name="colspan">3</at> |
|
456 |
<at name="rowspan">1</at> |
|
457 |
<at name="halign">default</at> |
|
458 |
<at name="valign">default</at> |
|
459 |
<at name="insets" object="insets">0,0,0,0</at> |
|
460 |
</object> |
|
461 |
</at> |
|
462 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
463 |
</super> |
|
464 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
465 |
<at name="beanclass">javax.swing.JComboBox</at> |
|
466 |
<at name="beanproperties"> |
|
467 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
468 |
<at name="classname">javax.swing.JComboBox</at> |
|
469 |
<at name="properties"> |
|
470 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
471 |
<at name="border"> |
|
472 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
473 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
474 |
<at name="name">border</at> |
|
475 |
</super> |
|
476 |
<at name="borders"> |
|
477 |
<object classname="java.util.LinkedList"> |
|
478 |
<item > |
|
479 |
<at name="value"> |
|
480 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
481 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
482 |
<at name="name">border</at> |
|
483 |
</super> |
|
484 |
</object> |
|
485 |
</at> |
|
486 |
</item> |
|
487 |
</object> |
|
488 |
</at> |
|
489 |
</object> |
|
490 |
</at> |
|
491 |
<at name="name">cboFileType</at> |
|
492 |
<at name="width">447</at> |
|
493 |
<at name="items"> |
|
494 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
|
495 |
<at name="name">items</at> |
|
496 |
</object> |
|
497 |
</at> |
|
498 |
<at name="height">20</at> |
|
499 |
</object> |
|
500 |
</at> |
|
501 |
</object> |
|
502 |
</at> |
|
503 |
</object> |
|
504 |
</at> |
|
505 |
</item> |
|
506 |
<item > |
|
507 |
<at name="value"> |
|
508 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
509 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
510 |
<at name="cellconstraints"> |
|
511 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
512 |
<at name="column">4</at> |
|
513 |
<at name="row">6</at> |
|
514 |
<at name="colspan">1</at> |
|
515 |
<at name="rowspan">1</at> |
|
516 |
<at name="halign">default</at> |
|
517 |
<at name="valign">default</at> |
|
518 |
<at name="insets" object="insets">0,0,0,0</at> |
|
519 |
</object> |
|
520 |
</at> |
|
521 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
522 |
</super> |
|
523 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
524 |
<at name="beanclass">javax.swing.JTextField</at> |
|
525 |
<at name="beanproperties"> |
|
526 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
527 |
<at name="classname">javax.swing.JTextField</at> |
|
528 |
<at name="properties"> |
|
529 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
530 |
<at name="border"> |
|
531 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
532 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
533 |
<at name="name">border</at> |
|
534 |
</super> |
|
535 |
<at name="borders"> |
|
536 |
<object classname="java.util.LinkedList"> |
|
537 |
<item > |
|
538 |
<at name="value"> |
|
539 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
540 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
541 |
<at name="name">border</at> |
|
542 |
</super> |
|
543 |
</object> |
|
544 |
</at> |
|
545 |
</item> |
|
546 |
</object> |
|
547 |
</at> |
|
548 |
</object> |
|
549 |
</at> |
|
550 |
<at name="background" object="color">236,233,216</at> |
|
551 |
<at name="editable">false</at> |
|
552 |
<at name="name">txtFile</at> |
|
553 |
<at name="width">392</at> |
|
554 |
<at name="height">20</at> |
|
555 |
</object> |
|
556 |
</at> |
|
557 |
</object> |
|
558 |
</at> |
|
559 |
</object> |
|
560 |
</at> |
|
561 |
</item> |
|
562 |
<item > |
|
563 |
<at name="value"> |
|
564 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
565 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
566 |
<at name="cellconstraints"> |
|
567 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
568 |
<at name="column">6</at> |
|
569 |
<at name="row">6</at> |
|
570 |
<at name="colspan">1</at> |
|
571 |
<at name="rowspan">1</at> |
|
572 |
<at name="halign">default</at> |
|
573 |
<at name="valign">default</at> |
|
574 |
<at name="insets" object="insets">0,0,0,0</at> |
|
575 |
</object> |
|
576 |
</at> |
|
577 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
578 |
</super> |
|
579 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
580 |
<at name="beanclass">javax.swing.JButton</at> |
|
581 |
<at name="beanproperties"> |
|
582 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
583 |
<at name="classname">javax.swing.JButton</at> |
|
584 |
<at name="properties"> |
|
585 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
586 |
<at name="border"> |
|
587 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
588 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
589 |
<at name="name">border</at> |
|
590 |
</super> |
|
591 |
<at name="borders"> |
|
592 |
<object classname="java.util.LinkedList"> |
|
593 |
<item > |
|
594 |
<at name="value"> |
|
595 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
596 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
597 |
<at name="name">border</at> |
|
598 |
</super> |
|
599 |
</object> |
|
600 |
</at> |
|
601 |
</item> |
|
602 |
</object> |
|
603 |
</at> |
|
604 |
</object> |
|
605 |
</at> |
|
606 |
<at name="actionCommand">...</at> |
|
607 |
<at name="name">btnFile</at> |
|
608 |
<at name="width">44</at> |
|
609 |
<at name="text">...</at> |
|
610 |
<at name="height">22</at> |
|
611 |
</object> |
|
612 |
</at> |
|
613 |
</object> |
|
614 |
</at> |
|
615 |
</object> |
|
616 |
</at> |
|
617 |
</item> |
|
618 |
<item > |
|
619 |
<at name="value"> |
|
620 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
621 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
622 |
<at name="cellconstraints"> |
|
623 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
624 |
<at name="column">4</at> |
|
625 |
<at name="row">8</at> |
|
626 |
<at name="colspan">3</at> |
|
627 |
<at name="rowspan">1</at> |
|
628 |
<at name="halign">default</at> |
|
629 |
<at name="valign">default</at> |
|
630 |
<at name="insets" object="insets">0,0,0,0</at> |
|
631 |
</object> |
|
632 |
</at> |
|
633 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
634 |
</super> |
|
635 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
636 |
<at name="beanclass">javax.swing.JTextField</at> |
|
637 |
<at name="beanproperties"> |
|
638 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
639 |
<at name="classname">javax.swing.JTextField</at> |
|
640 |
<at name="properties"> |
|
641 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
642 |
<at name="border"> |
|
643 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
644 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
645 |
<at name="name">border</at> |
|
646 |
</super> |
|
647 |
<at name="borders"> |
|
648 |
<object classname="java.util.LinkedList"> |
|
649 |
<item > |
|
650 |
<at name="value"> |
|
651 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
652 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
653 |
<at name="name">border</at> |
|
654 |
</super> |
|
655 |
</object> |
|
656 |
</at> |
|
657 |
</item> |
|
658 |
</object> |
|
659 |
</at> |
|
660 |
</object> |
|
661 |
</at> |
|
662 |
<at name="name">txtTableName</at> |
|
663 |
<at name="width">447</at> |
|
664 |
<at name="height">20</at> |
|
665 |
</object> |
|
666 |
</at> |
|
667 |
</object> |
|
668 |
</at> |
|
669 |
</object> |
|
670 |
</at> |
|
671 |
</item> |
|
672 |
<item > |
|
673 |
<at name="value"> |
|
674 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
675 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
676 |
<at name="cellconstraints"> |
|
677 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
678 |
<at name="column">4</at> |
|
679 |
<at name="row">10</at> |
|
680 |
<at name="colspan">3</at> |
|
681 |
<at name="rowspan">1</at> |
|
682 |
<at name="halign">default</at> |
|
683 |
<at name="valign">default</at> |
|
684 |
<at name="insets" object="insets">0,0,0,0</at> |
|
685 |
</object> |
|
686 |
</at> |
|
687 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
688 |
</super> |
|
689 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
690 |
<at name="beanclass">javax.swing.JCheckBox</at> |
|
691 |
<at name="beanproperties"> |
|
692 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
693 |
<at name="classname">javax.swing.JCheckBox</at> |
|
694 |
<at name="properties"> |
|
695 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
696 |
<at name="border"> |
|
697 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
698 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
699 |
<at name="name">border</at> |
|
700 |
</super> |
|
701 |
<at name="borders"> |
|
702 |
<object classname="java.util.LinkedList"> |
|
703 |
<item > |
|
704 |
<at name="value"> |
|
705 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
706 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
707 |
<at name="name">border</at> |
|
708 |
</super> |
|
709 |
</object> |
|
710 |
</at> |
|
711 |
</item> |
|
712 |
</object> |
|
713 |
</at> |
|
714 |
</object> |
|
715 |
</at> |
|
716 |
<at name="name">chkDeleteTables</at> |
|
717 |
<at name="width">447</at> |
|
718 |
<at name="selected">true</at> |
|
719 |
<at name="height">15</at> |
|
720 |
</object> |
|
721 |
</at> |
|
722 |
</object> |
|
723 |
</at> |
|
724 |
</object> |
|
725 |
</at> |
|
726 |
</item> |
|
727 |
</object> |
|
728 |
</at> |
|
729 |
<at name="properties"> |
|
730 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
731 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
732 |
<at name="properties"> |
|
733 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
734 |
<at name="border"> |
|
735 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
736 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
737 |
<at name="name">border</at> |
|
738 |
</super> |
|
739 |
<at name="borders"> |
|
740 |
<object classname="java.util.LinkedList"/> |
|
741 |
</at> |
|
742 |
</object> |
|
743 |
</at> |
|
744 |
<at name="name"></at> |
|
745 |
<at name="fill"> |
|
746 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
747 |
<at name="name">fill</at> |
|
748 |
</object> |
|
749 |
</at> |
|
750 |
<at name="scollBars"> |
|
751 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
752 |
<at name="name">scollBars</at> |
|
753 |
<at name="verticalpolicy">21</at> |
|
754 |
<at name="horizontalpolicy">31</at> |
|
755 |
<at name="border"> |
|
756 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
757 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
758 |
<at name="name">border</at> |
|
759 |
</super> |
|
760 |
<at name="borders"> |
|
761 |
<object classname="java.util.LinkedList"> |
|
762 |
<item > |
|
763 |
<at name="value"> |
|
764 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
765 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
766 |
<at name="name">border</at> |
|
767 |
</super> |
|
768 |
</object> |
|
769 |
</at> |
|
770 |
</item> |
|
771 |
</object> |
|
772 |
</at> |
|
773 |
</object> |
|
774 |
</at> |
|
775 |
</object> |
|
776 |
</at> |
|
777 |
</object> |
|
778 |
</at> |
|
779 |
</object> |
|
780 |
</at> |
|
781 |
<at name="cellpainters"> |
|
782 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
783 |
<at name="rows"> |
|
784 |
<object classname="[Ljava.lang.Object;" size="11"> |
|
785 |
<at name="item" index="0"> |
|
786 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
787 |
</at> |
|
788 |
<at name="item" index="1"> |
|
789 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
790 |
</at> |
|
791 |
<at name="item" index="2"> |
|
792 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
793 |
</at> |
|
794 |
<at name="item" index="3"> |
|
795 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
796 |
</at> |
|
797 |
<at name="item" index="4"> |
|
798 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
799 |
</at> |
|
800 |
<at name="item" index="5"> |
|
801 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
802 |
</at> |
|
803 |
<at name="item" index="6"> |
|
804 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
805 |
</at> |
|
806 |
<at name="item" index="7"> |
|
807 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
808 |
</at> |
|
809 |
<at name="item" index="8"> |
|
810 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
811 |
</at> |
|
812 |
<at name="item" index="9"> |
|
813 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
814 |
</at> |
|
815 |
<at name="item" index="10"> |
|
816 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
817 |
</at> |
|
818 |
</object> |
|
819 |
</at> |
|
820 |
</object> |
|
821 |
</at> |
|
822 |
<at name="rowgroups"> |
|
823 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
824 |
<at name="groups"> |
|
825 |
<object classname="java.util.HashMap"/> |
|
826 |
</at> |
|
827 |
</object> |
|
828 |
</at> |
|
829 |
<at name="colgroups"> |
|
830 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
831 |
<at name="groups"> |
|
832 |
<object classname="java.util.HashMap"/> |
|
833 |
</at> |
|
834 |
</object> |
|
835 |
</at> |
|
836 |
</object> |
|
837 |
</at> |
|
838 |
</object> |
tags/org.gvsig.desktop-2.0.266/org.gvsig.desktop.plugin/org.gvsig.h2spatial.app/org.gvsig.h2spatial.app.mainplugin/src/main/java/org/gvsig/h2spatial/ImportTableView.java | ||
---|---|---|
1 |
package org.gvsig.h2spatial; |
|
2 |
|
|
3 |
import com.jeta.open.i18n.I18NUtils; |
|
4 |
import com.jgoodies.forms.layout.CellConstraints; |
|
5 |
import com.jgoodies.forms.layout.FormLayout; |
|
6 |
import java.awt.BorderLayout; |
|
7 |
import java.awt.Color; |
|
8 |
import java.awt.ComponentOrientation; |
|
9 |
import java.awt.Container; |
|
10 |
import java.awt.Dimension; |
|
11 |
import java.awt.event.WindowAdapter; |
|
12 |
import java.awt.event.WindowEvent; |
|
13 |
import javax.swing.Box; |
|
14 |
import javax.swing.ImageIcon; |
|
15 |
import javax.swing.JButton; |
|
16 |
import javax.swing.JCheckBox; |
|
17 |
import javax.swing.JComboBox; |
|
18 |
import javax.swing.JFrame; |
|
19 |
import javax.swing.JLabel; |
|
20 |
import javax.swing.JPanel; |
|
21 |
import javax.swing.JTextField; |
|
22 |
|
|
23 |
|
|
24 |
public class ImportTableView extends JPanel |
|
25 |
{ |
|
26 |
JLabel lblConnection = new JLabel(); |
|
27 |
JLabel lblFileType = new JLabel(); |
|
28 |
JLabel lblFile = new JLabel(); |
|
29 |
JLabel lblTableName = new JLabel(); |
|
30 |
JLabel lblDeleteTables = new JLabel(); |
|
31 |
JComboBox cboConnection = new JComboBox(); |
|
32 |
JButton btnConnection = new JButton(); |
|
33 |
JComboBox cboFileType = new JComboBox(); |
|
34 |
JTextField txtFile = new JTextField(); |
|
35 |
JButton btnFile = new JButton(); |
|
36 |
JTextField txtTableName = new JTextField(); |
|
37 |
JCheckBox chkDeleteTables = new JCheckBox(); |
|
38 |
|
|
39 |
/** |
|
40 |
* Default constructor |
|
41 |
*/ |
|
42 |
public ImportTableView() |
|
43 |
{ |
|
44 |
initializePanel(); |
|
45 |
} |
|
46 |
|
|
47 |
/** |
|
48 |
* Main method for panel |
|
49 |
*/ |
|
50 |
public static void main(String[] args) |
|
51 |
{ |
|
52 |
JFrame frame = new JFrame(); |
|
53 |
frame.setSize(600, 400); |
|
54 |
frame.setLocation(100, 100); |
|
55 |
frame.getContentPane().add(new ImportTableView()); |
|
56 |
frame.setVisible(true); |
|
57 |
|
|
58 |
frame.addWindowListener( new WindowAdapter() |
|
59 |
{ |
|
60 |
public void windowClosing( WindowEvent evt ) |
|
61 |
{ |
|
62 |
System.exit(0); |
|
63 |
} |
|
64 |
}); |
|
65 |
} |
|
66 |
|
|
67 |
/** |
|
68 |
* Adds fill components to empty cells in the first row and first column of the grid. |
|
69 |
* This ensures that the grid spacing will be the same as shown in the designer. |
|
70 |
* @param cols an array of column indices in the first row where fill components should be added. |
|
71 |
* @param rows an array of row indices in the first column where fill components should be added. |
|
72 |
*/ |
|
73 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
|
74 |
{ |
|
75 |
Dimension filler = new Dimension(10,10); |
|
76 |
|
|
77 |
boolean filled_cell_11 = false; |
|
78 |
CellConstraints cc = new CellConstraints(); |
|
79 |
if ( cols.length > 0 && rows.length > 0 ) |
|
80 |
{ |
|
81 |
if ( cols[0] == 1 && rows[0] == 1 ) |
|
82 |
{ |
|
83 |
/** add a rigid area */ |
|
84 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
|
85 |
filled_cell_11 = true; |
|
86 |
} |
|
87 |
} |
|
88 |
|
|
89 |
for( int index = 0; index < cols.length; index++ ) |
|
90 |
{ |
|
91 |
if ( cols[index] == 1 && filled_cell_11 ) |
|
92 |
{ |
|
93 |
continue; |
|
94 |
} |
|
95 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
|
96 |
} |
|
97 |
|
|
98 |
for( int index = 0; index < rows.length; index++ ) |
|
99 |
{ |
|
100 |
if ( rows[index] == 1 && filled_cell_11 ) |
|
101 |
{ |
|
102 |
continue; |
|
103 |
} |
|
104 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
|
105 |
} |
|
106 |
|
|
107 |
} |
|
108 |
|
|
109 |
/** |
|
110 |
* Helper method to load an image file from the CLASSPATH |
|
111 |
* @param imageName the package and name of the file to load relative to the CLASSPATH |
|
112 |
* @return an ImageIcon instance with the specified image file |
|
113 |
* @throws IllegalArgumentException if the image resource cannot be loaded. |
|
114 |
*/ |
|
115 |
public ImageIcon loadImage( String imageName ) |
|
116 |
{ |
|
117 |
try |
|
118 |
{ |
|
119 |
ClassLoader classloader = getClass().getClassLoader(); |
|
120 |
java.net.URL url = classloader.getResource( imageName ); |
|
121 |
if ( url != null ) |
|
122 |
{ |
|
123 |
ImageIcon icon = new ImageIcon( url ); |
|
124 |
return icon; |
|
125 |
} |
|
126 |
} |
|
127 |
catch( Exception e ) |
|
128 |
{ |
|
129 |
e.printStackTrace(); |
|
130 |
} |
|
131 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
|
132 |
} |
Also available in: Unified diff