Revision 43964
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
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/xsd/maven-4.0.0.xsd"> |
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.installer.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.231</version> |
|
12 |
</parent> |
|
13 |
|
|
14 |
<modules> |
|
15 |
<module>org.gvsig.installer.app.mainplugin</module> |
|
16 |
</modules> |
|
17 |
|
|
18 |
</project> |
|
0 | 19 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Sun Oct 14 21:04:58 CEST 2018 |
|
2 |
buildNumber=2778 |
|
0 | 3 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.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>groupId:artifactId</include> |
|
58 |
</includes> |
|
59 |
</dependencySet> |
|
60 |
</dependencySets> |
|
61 |
--> |
|
62 |
</assembly> |
|
63 |
|
|
0 | 64 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.app.mainplugin/src/main/java/org/gvsig/installer/app/extension/utils/WindowInstallerListener.java | ||
---|---|---|
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 |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
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 |
/* |
|
25 |
* AUTHORS (In addition to CIT): |
|
26 |
* 2010 {Prodevelop} {Task} |
|
27 |
*/ |
|
28 |
|
|
29 |
package org.gvsig.installer.app.extension.utils; |
|
30 |
|
|
31 |
import org.gvsig.andami.PluginServices; |
|
32 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
33 |
import org.gvsig.installer.swing.api.wizard.InstallerWizardActionListener; |
|
34 |
import org.gvsig.installer.swing.api.wizard.InstallerWizardPanel; |
|
35 |
|
|
36 |
/** |
|
37 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
38 |
*/ |
|
39 |
public class WindowInstallerListener implements InstallerWizardActionListener { |
|
40 |
|
|
41 |
private IWindow window = null; |
|
42 |
|
|
43 |
public WindowInstallerListener(IWindow window) { |
|
44 |
super(); |
|
45 |
this.window = window; |
|
46 |
} |
|
47 |
|
|
48 |
public void closeWizard() { |
|
49 |
PluginServices.getMDIManager().closeWindow(window); |
|
50 |
} |
|
51 |
|
|
52 |
public void cancel(InstallerWizardPanel installerWizard) { |
|
53 |
PluginServices.getMDIManager().closeWindow(window); |
|
54 |
} |
|
55 |
|
|
56 |
public void finish(InstallerWizardPanel installerWizard) { |
|
57 |
PluginServices.getMDIManager().closeWindow(window); |
|
58 |
} |
|
59 |
|
|
60 |
} |
|
0 | 61 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.app.mainplugin/src/main/java/org/gvsig/installer/app/extension/execution/InstallPackageWindow.java | ||
---|---|---|
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 |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
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 |
/* |
|
25 |
* AUTHORS (In addition to CIT): |
|
26 |
* 2010 {Prodevelop} {Task} |
|
27 |
*/ |
|
28 |
|
|
29 |
package org.gvsig.installer.app.extension.execution; |
|
30 |
|
|
31 |
import java.awt.BorderLayout; |
|
32 |
import java.awt.Dimension; |
|
33 |
import java.io.File; |
|
34 |
|
|
35 |
import javax.swing.JPanel; |
|
36 |
|
|
37 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
38 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
|
39 |
import org.gvsig.i18n.Messages; |
|
40 |
import org.gvsig.installer.app.extension.utils.WindowInstallerListener; |
|
41 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
42 |
import org.gvsig.installer.swing.api.SwingInstallerManager; |
|
43 |
import org.gvsig.installer.swing.api.execution.InstallPackageWizardException; |
|
44 |
import org.gvsig.installer.swing.api.execution.InstallWizardPanel; |
|
45 |
import org.gvsig.tools.locator.LocatorException; |
|
46 |
|
|
47 |
/** |
|
48 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
49 |
*/ |
|
50 |
public class InstallPackageWindow extends JPanel implements IWindow { |
|
51 |
|
|
52 |
private static final long serialVersionUID = 4719868181091291809L; |
|
53 |
WindowInfo windowInfo = null; |
|
54 |
|
|
55 |
public InstallPackageWindow(File applicationFolder, File installFolder, |
|
56 |
boolean skipBundleSelection) |
|
57 |
throws LocatorException, InstallPackageWizardException { |
|
58 |
super(); |
|
59 |
SwingInstallerManager manager = SwingInstallerLocator.getSwingInstallerManager(); |
|
60 |
InstallWizardPanel installPackageWizard = manager.createInstallPackageWizard( |
|
61 |
applicationFolder, installFolder |
|
62 |
); |
|
63 |
installPackageWizard.setWizardActionListener(new WindowInstallerListener(this)); |
|
64 |
this.setLayout(new BorderLayout()); |
|
65 |
installPackageWizard.setSkipSelectBundleWizardPage(skipBundleSelection); |
|
66 |
installPackageWizard.setSkipTypicalOrAdvancedWizardPage(true); |
|
67 |
installPackageWizard.setSelectDefaultPackages(false); |
|
68 |
|
|
69 |
add(installPackageWizard.asJComponent(), BorderLayout.CENTER); |
|
70 |
} |
|
71 |
|
|
72 |
@Override |
|
73 |
public WindowInfo getWindowInfo() { |
|
74 |
if (windowInfo == null) { |
|
75 |
windowInfo = new WindowInfo(WindowInfo.MAXIMIZABLE |
|
76 |
| WindowInfo.ICONIFIABLE | WindowInfo.RESIZABLE); |
|
77 |
Dimension dim = getPreferredSize(); |
|
78 |
windowInfo.setWidth((int) dim.getWidth()); |
|
79 |
windowInfo.setHeight((int) dim.getHeight()); |
|
80 |
windowInfo.setTitle(Messages.getText("install_package")); |
|
81 |
} |
|
82 |
return windowInfo; |
|
83 |
} |
|
84 |
|
|
85 |
@Override |
|
86 |
public Object getWindowProfile() { |
|
87 |
return WindowInfo.DIALOG_PROFILE; |
|
88 |
} |
|
89 |
|
|
90 |
} |
|
0 | 91 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.app.mainplugin/src/main/java/org/gvsig/installer/app/extension/execution/InstallPackageExtension.java | ||
---|---|---|
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 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 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2010 {Prodevelop} {Task} |
|
26 |
*/ |
|
27 |
package org.gvsig.installer.app.extension.execution; |
|
28 |
|
|
29 |
import java.io.BufferedReader; |
|
30 |
import java.io.File; |
|
31 |
import java.io.IOException; |
|
32 |
import java.io.InputStream; |
|
33 |
import java.io.InputStreamReader; |
|
34 |
import java.net.MalformedURLException; |
|
35 |
|
|
36 |
import org.gvsig.andami.IconThemeHelper; |
|
37 |
import org.gvsig.andami.PluginServices; |
|
38 |
import org.gvsig.andami.PluginsLocator; |
|
39 |
import org.gvsig.andami.PluginsManager; |
|
40 |
import org.gvsig.andami.plugins.Extension; |
|
41 |
import org.gvsig.installer.lib.api.InstallerLocator; |
|
42 |
import org.gvsig.installer.lib.api.InstallerManager; |
|
43 |
import org.gvsig.installer.lib.api.PackageInfo; |
|
44 |
import org.gvsig.installer.lib.api.Version; |
|
45 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
46 |
import org.gvsig.installer.swing.api.SwingInstallerManager; |
|
47 |
import org.slf4j.Logger; |
|
48 |
import org.slf4j.LoggerFactory; |
|
49 |
|
|
50 |
public class InstallPackageExtension extends Extension { |
|
51 |
|
|
52 |
private static final Logger logger = LoggerFactory |
|
53 |
.getLogger(InstallPackageExtension.class); |
|
54 |
|
|
55 |
@Override |
|
56 |
public void execute(String actionCommand) { |
|
57 |
this.execute(actionCommand, null); |
|
58 |
} |
|
59 |
|
|
60 |
@Override |
|
61 |
public void execute(String actionCommand, Object[] args) { |
|
62 |
|
|
63 |
if ("tools-addonsmanager".equalsIgnoreCase(actionCommand)) { |
|
64 |
// InstallerManager installManager = InstallerLocator.getInstallerManager(); |
|
65 |
// if (installManager.needAdminRights()) { |
|
66 |
// showExternalAddonsManager(); |
|
67 |
// } else { |
|
68 |
showInternalAddonsManager(args); |
|
69 |
// } |
|
70 |
} |
|
71 |
} |
|
72 |
|
|
73 |
private void showExternalAddonsManager() { |
|
74 |
InstallerManager installManager = InstallerLocator.getInstallerManager(); |
|
75 |
|
|
76 |
PluginsManager pluginManager = PluginsLocator.getManager(); |
|
77 |
|
|
78 |
String cmd; |
|
79 |
boolean useInternalAddonsManager = false; |
|
80 |
|
|
81 |
if( InstallerManager.OS.WINDOWS.equalsIgnoreCase(installManager.getOperatingSystem()) ) { |
|
82 |
cmd = "runas /noprofile /user:Administrator " + pluginManager.getApplicationFolder() + File.separator + "gvsig-package-installer.exe --install"; |
|
83 |
try { |
|
84 |
Process p = Runtime.getRuntime().exec(cmd); |
|
85 |
if( p.exitValue() != 0 ) { |
|
86 |
useInternalAddonsManager = true; |
|
87 |
} |
|
88 |
} catch (IOException ex) { |
|
89 |
logger.warn("Can't execute command '"+cmd+"'.",ex); |
|
90 |
useInternalAddonsManager = true; |
|
91 |
} |
|
92 |
} else { |
|
93 |
cmd = "pkexec " + pluginManager.getApplicationFolder() + File.separator + "/gvSIG.sh --install"; |
|
94 |
try { |
|
95 |
Process p = Runtime.getRuntime().exec(cmd); |
|
96 |
if( p.exitValue() != 0 ) { |
|
97 |
useInternalAddonsManager = true; |
|
98 |
} |
|
99 |
} catch (IOException ex) { |
|
100 |
logger.warn("Can't execute command '"+cmd+"'.",ex); |
|
101 |
useInternalAddonsManager = true; |
|
102 |
} |
|
103 |
} |
|
104 |
if( useInternalAddonsManager ) { |
|
105 |
logger.warn("Use internal addons manager."); |
|
106 |
showInternalAddonsManager(null); |
|
107 |
} |
|
108 |
} |
|
109 |
|
|
110 |
|
|
111 |
private void showInternalAddonsManager(Object[] args) { |
|
112 |
boolean skipBundleSelection = false; |
|
113 |
if (args != null && args.length > 0) { |
|
114 |
String subcmd = (String) args[0]; |
|
115 |
if ("skipBundleSelection".equalsIgnoreCase(subcmd)) { |
|
116 |
skipBundleSelection = true; |
|
117 |
} |
|
118 |
} |
|
119 |
PluginsManager manager = PluginsLocator.getManager(); |
|
120 |
try { |
|
121 |
PluginServices.getMDIManager().addCentredWindow( |
|
122 |
new InstallPackageWindow( |
|
123 |
manager.getApplicationFolder(), |
|
124 |
manager.getInstallFolder(), |
|
125 |
skipBundleSelection |
|
126 |
) |
|
127 |
); |
|
128 |
} catch (Error e) { |
|
129 |
logger.warn("Error creating the wizard to install a package ", e); |
|
130 |
} catch (Throwable e) { |
|
131 |
logger.warn("Error creating the wizard to install a package ", e); |
|
132 |
} |
|
133 |
|
|
134 |
} |
|
135 |
|
|
136 |
@Override |
|
137 |
public void initialize() { |
|
138 |
PluginsManager pm = PluginsLocator.getManager(); |
|
139 |
PackageInfo packageInfo = pm.getPackageInfo(); |
|
140 |
Version version = packageInfo.getVersion(); |
|
141 |
|
|
142 |
InstallerLocator.getInstallerManager().setVersion(version); |
|
143 |
try { |
|
144 |
IconThemeHelper.registerIcon("action", "tools-addonsmanager", this); |
|
145 |
|
|
146 |
SwingInstallerManager manager = SwingInstallerLocator |
|
147 |
.getSwingInstallerManager(); |
|
148 |
|
|
149 |
try { |
|
150 |
manager.setDefaultDownloadURL( |
|
151 |
new File( pm.getApplicationFolder(),"gvsig-installer-urls.config") |
|
152 |
); |
|
153 |
manager.setDefaultDownloadURL( |
|
154 |
new File( pm.getPlugin(this).getPluginDirectory(),"defaultDownloadsURLs") |
|
155 |
); |
|
156 |
if( packageInfo.getState().startsWith(InstallerManager.STATE.BETA) || |
|
157 |
packageInfo.getState().startsWith(InstallerManager.STATE.RC) || |
|
158 |
packageInfo.getState().equalsIgnoreCase(InstallerManager.STATE.FINAL) |
|
159 |
) { |
|
160 |
String installURL = manager.getInstallerManager().getDownloadBaseURL().toString() |
|
161 |
+ "dists/<%Version%>/builds/<%Build%>/packages.gvspki ## Official gvSIG repository (frozen in this version)"; |
|
162 |
manager.addDefaultDownloadURL(installURL); |
|
163 |
} |
|
164 |
} catch (Throwable th) { |
|
165 |
logger.info("Error. Can't select default gvspki", th); |
|
166 |
} |
|
167 |
|
|
168 |
InputStream is = this.getClass().getResourceAsStream("/defaultDownloadsURLs"); |
|
169 |
BufferedReader in = new BufferedReader(new InputStreamReader(is)); |
|
170 |
for (String line = in.readLine(); line != null; line = in.readLine()) { |
|
171 |
try { |
|
172 |
manager.addDefaultDownloadURL(line); |
|
173 |
} catch (MalformedURLException e) { |
|
174 |
logger.warn( |
|
175 |
"Error creating the default packages download URL pointing to " + line, |
|
176 |
e |
|
177 |
); |
|
178 |
} |
|
179 |
} |
|
180 |
manager.getInstallerManager().setVersion(version); |
|
181 |
} catch (Throwable e) { |
|
182 |
logger.warn( |
|
183 |
"Error reading the default packages download URL file /defaultDownloadsURLs", |
|
184 |
e |
|
185 |
); |
|
186 |
} |
|
187 |
} |
|
188 |
|
|
189 |
@Override |
|
190 |
public boolean isEnabled() { |
|
191 |
return true; |
|
192 |
} |
|
193 |
|
|
194 |
@Override |
|
195 |
public boolean isVisible() { |
|
196 |
return true; |
|
197 |
} |
|
198 |
|
|
199 |
} |
|
0 | 200 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.app.mainplugin/src/main/java/org/gvsig/installer/app/extension/creation/MakePluginPackageExtension.java | ||
---|---|---|
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 |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
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 |
/* |
|
25 |
* AUTHORS (In addition to CIT): |
|
26 |
* 2010 {Prodevelop} {Task} |
|
27 |
*/ |
|
28 |
|
|
29 |
package org.gvsig.installer.app.extension.creation; |
|
30 |
|
|
31 |
import org.gvsig.andami.PluginServices; |
|
32 |
import org.gvsig.andami.PluginsLocator; |
|
33 |
import org.gvsig.andami.PluginsManager; |
|
34 |
import org.gvsig.andami.plugins.Extension; |
|
35 |
import org.gvsig.installer.lib.api.PackageInfo; |
|
36 |
import org.gvsig.installer.lib.api.Version; |
|
37 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
38 |
import org.slf4j.Logger; |
|
39 |
import org.slf4j.LoggerFactory; |
|
40 |
|
|
41 |
/** |
|
42 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
43 |
*/ |
|
44 |
public class MakePluginPackageExtension extends Extension { |
|
45 |
|
|
46 |
private static final Logger LOG = LoggerFactory |
|
47 |
.getLogger(MakePluginPackageExtension.class); |
|
48 |
|
|
49 |
public void execute(String actionCommand) { |
|
50 |
if ("tools-devel-create-package".equalsIgnoreCase(actionCommand)) { |
|
51 |
PluginsManager manager = PluginsLocator.getManager(); |
|
52 |
|
|
53 |
try { |
|
54 |
PluginServices.getMDIManager().addCentredWindow( |
|
55 |
new MakePluginPackageWindow(manager |
|
56 |
.getApplicationFolder(), manager |
|
57 |
.getInstallFolder())); |
|
58 |
} catch (Exception e) { |
|
59 |
LOG.error("Error creating teh wizard to create an installer ", |
|
60 |
e); |
|
61 |
} |
|
62 |
} |
|
63 |
} |
|
64 |
|
|
65 |
public void initialize() { |
|
66 |
|
|
67 |
} |
|
68 |
|
|
69 |
@Override |
|
70 |
public void postInitialize() { |
|
71 |
super.postInitialize(); |
|
72 |
PluginsManager pm = PluginsLocator.getManager(); |
|
73 |
PackageInfo packageInfo = pm.getPackageInfo(); |
|
74 |
Version version = packageInfo.getVersion(); |
|
75 |
|
|
76 |
SwingInstallerLocator.getSwingInstallerManager().setApplicationVersion(version.format("%M.%m.%r")); |
|
77 |
} |
|
78 |
|
|
79 |
public boolean isEnabled() { |
|
80 |
return true; |
|
81 |
} |
|
82 |
|
|
83 |
public boolean isVisible() { |
|
84 |
return true; |
|
85 |
} |
|
86 |
|
|
87 |
} |
|
0 | 88 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.app.mainplugin/src/main/java/org/gvsig/installer/app/extension/creation/MakePluginPackageWindow.java | ||
---|---|---|
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 |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
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 |
/* |
|
25 |
* AUTHORS (In addition to CIT): |
|
26 |
* 2010 {Prodevelop} {Task} |
|
27 |
*/ |
|
28 |
|
|
29 |
package org.gvsig.installer.app.extension.creation; |
|
30 |
|
|
31 |
import java.awt.BorderLayout; |
|
32 |
import java.awt.Dimension; |
|
33 |
import java.io.File; |
|
34 |
|
|
35 |
import javax.swing.JPanel; |
|
36 |
|
|
37 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
38 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
|
39 |
import org.gvsig.i18n.Messages; |
|
40 |
import org.gvsig.installer.app.extension.utils.WindowInstallerListener; |
|
41 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
42 |
import org.gvsig.installer.swing.api.creation.MakePluginPackageWizard; |
|
43 |
import org.gvsig.installer.swing.api.creation.MakePluginPackageWizardException; |
|
44 |
import org.gvsig.tools.locator.LocatorException; |
|
45 |
|
|
46 |
/** |
|
47 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
48 |
*/ |
|
49 |
public class MakePluginPackageWindow extends JPanel implements IWindow { |
|
50 |
|
|
51 |
private static final long serialVersionUID = 3423389124323013058L; |
|
52 |
WindowInfo windowInfo = null; |
|
53 |
|
|
54 |
public MakePluginPackageWindow(File applicationFolder, File installFolder) |
|
55 |
throws LocatorException, MakePluginPackageWizardException { |
|
56 |
super(); |
|
57 |
MakePluginPackageWizard makePluginPackageWizard = SwingInstallerLocator |
|
58 |
.getSwingInstallerManager().createMakePluginPackageWizard( |
|
59 |
applicationFolder, installFolder); |
|
60 |
makePluginPackageWizard |
|
61 |
.setWizardActionListener(new WindowInstallerListener(this)); |
|
62 |
this.setLayout(new BorderLayout()); |
|
63 |
add(makePluginPackageWizard.asJComponent(), BorderLayout.CENTER); |
|
64 |
} |
|
65 |
|
|
66 |
public WindowInfo getWindowInfo() { |
|
67 |
if (windowInfo == null) { |
|
68 |
windowInfo = new WindowInfo(WindowInfo.MODELESSDIALOG |
|
69 |
| WindowInfo.ICONIFIABLE | WindowInfo.RESIZABLE); |
|
70 |
Dimension dim = getPreferredSize(); |
|
71 |
windowInfo.setWidth((int) dim.getWidth()); |
|
72 |
windowInfo.setHeight((int) dim.getHeight()); |
|
73 |
windowInfo.setTitle(Messages.getText("Create_installation_package")); |
|
74 |
} |
|
75 |
return windowInfo; |
|
76 |
} |
|
77 |
|
|
78 |
public Object getWindowProfile() { |
|
79 |
return WindowInfo.DIALOG_PROFILE; |
|
80 |
} |
|
81 |
} |
|
0 | 82 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.app.mainplugin/src/main/resources-plugin/i18n/text.properties | ||
---|---|---|
1 |
make_plugin_package=Crear paquete instalaci\u00f3n de plugin |
|
2 |
make_plugin_package_description=Crea un paquete de instalaci\u00f3n de un plugin instalado |
|
3 |
addons_manager=Administrador de complementos |
|
4 |
addons_manager_description=Muestra el administrador de complementos (plugin, traducciones, temas, etc.) de gvSIG |
|
5 |
_select_an_option=Seleccione una opci\u00f3n |
|
6 |
_Cant_install_packege=No se puede instalar el paquete |
|
7 |
_Finished=Finalizado |
|
8 |
_this_is_not_an_official_package=Este no es un paquete oficial |
|
9 |
_this_is_not_a_final_package=Este no es un paquete final |
|
10 |
_Creating_index=Creando \u00edndice |
|
11 |
_Compressing=Comprimiendo |
|
12 |
_Cant_create_package=No se puede crear el paquete |
|
13 |
_Installer_progress=Progreso de instalaci\u00f3n |
|
14 |
_Cant_download_package_files=No se pueden descargar los archivos del paquete |
|
15 |
_Downloading=Descargando |
|
16 |
_Downloading_error=Error descargando |
|
17 |
_Download_progress=Progreso de descarga |
|
18 |
_Start_download=Iniciar descarga |
|
19 |
_Create_installation_package=Crear paquete de instalacion |
|
0 | 20 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties | ||
---|---|---|
1 |
make_plugin_package=Create plugin installation package |
|
2 |
make_plugin_package_description=Create an installation package from an already installed plugin |
|
3 |
addons_manager=Addons manager |
|
4 |
addons_manager_description=Show the addons manager |
|
5 |
_select_an_option=Select an option |
|
6 |
_Cant_install_packege=Can't install package |
|
7 |
_Finished=Finished |
|
8 |
_this_is_not_an_official_package=This is not an official package |
|
9 |
_this_is_not_a_final_package=This is not a final package |
|
10 |
_Creating_index=Creating index |
|
11 |
_Compressing=Compressing |
|
12 |
_Cant_create_package=Can't create package |
|
13 |
_Installer_progress=Installation progress |
|
14 |
_Cant_download_package_files=Can't download package files |
|
15 |
_Downloading=Downloading |
|
16 |
_Downloading_error=Downloading error |
|
17 |
_Download_progress=Download progress |
|
18 |
_Start_download=Start download |
|
19 |
Create_installation_package=Create installation package |
|
0 | 20 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.app.mainplugin/src/main/resources-plugin/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<!-- |
|
3 |
|
|
4 |
gvSIG. Desktop Geographic Information System. |
|
5 |
|
|
6 |
Copyright (C) 2007-2013 gvSIG Association. |
|
7 |
|
|
8 |
This program is free software; you can redistribute it and/or |
|
9 |
modify it under the terms of the GNU General Public License |
|
10 |
as published by the Free Software Foundation; either version 3 |
|
11 |
of the License, or (at your option) any later version. |
|
12 |
|
|
13 |
This program is distributed in the hope that it will be useful, |
|
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
GNU General Public License for more details. |
|
17 |
|
|
18 |
You should have received a copy of the GNU General Public License |
|
19 |
along with this program; if not, write to the Free Software |
|
20 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
21 |
MA 02110-1301, USA. |
|
22 |
|
|
23 |
For any additional information, do not hesitate to contact us |
|
24 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
25 |
|
|
26 |
--> |
|
27 |
<plugin-config> |
|
28 |
<alternativeNames name="org.gvsig.installer.app.extension"/> |
|
29 |
<libraries library-dir="lib"/> |
|
30 |
<resourceBundle name="text"/> |
|
31 |
<extensions> |
|
32 |
<extension class-name="org.gvsig.installer.app.extension.creation.MakePluginPackageExtension" |
|
33 |
description="This extension is used to create a bundle for a plugin package from the current gvSIG application." |
|
34 |
active="true"> |
|
35 |
<action |
|
36 |
name= "tools-devel-create-package" |
|
37 |
label="Create_installation_package" |
|
38 |
tooltip="Create_installation_package" |
|
39 |
action-command="tools-devel-create-package" |
|
40 |
icon="tools-devel-create-package" |
|
41 |
position="908500200"/> |
|
42 |
|
|
43 |
<menu |
|
44 |
name="tools-devel-create-package" |
|
45 |
text="tools/Development/Create_installation_package" |
|
46 |
/> |
|
47 |
</extension> |
|
48 |
|
|
49 |
<extension class-name="org.gvsig.installer.app.extension.execution.InstallPackageExtension" |
|
50 |
description="This extension is used to install a package from a bundle in gvSIG" |
|
51 |
active="true"> |
|
52 |
|
|
53 |
<action |
|
54 |
name= "tools-addonsmanager" |
|
55 |
label="_addons_manager" |
|
56 |
tooltip="_show_the_addons_manager" |
|
57 |
action-command="tools-addonsmanager" |
|
58 |
icon="tools-addonsmanager" |
|
59 |
position="900100000"/> |
|
60 |
|
|
61 |
<menu |
|
62 |
name="tools-addonsmanager" |
|
63 |
text="tools/addons_manager" |
|
64 |
/> |
|
65 |
</extension> |
|
66 |
</extensions> |
|
67 |
</plugin-config> |
|
0 | 68 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.app.mainplugin/src/main/resources-plugin/defaultDownloadsURLs | ||
---|---|---|
1 |
http://downloads.gvsig.org/download/gvsig-desktop-testing/ ## gvSIG repository |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.installer.app/org.gvsig.installer.app.mainplugin/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<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"> |
|
3 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
<artifactId>org.gvsig.installer.app.mainplugin</artifactId> |
|
5 |
<packaging>jar</packaging> |
|
6 |
<name>${project.artifactId}</name> |
|
7 |
<parent> |
|
8 |
<groupId>org.gvsig</groupId> |
|
9 |
<artifactId>org.gvsig.installer.app</artifactId> |
|
10 |
<version>2.0.231</version> |
|
11 |
</parent> |
|
12 |
|
|
13 |
<dependencies> |
|
14 |
<!-- <dependency> --> |
|
15 |
<!-- <groupId>org.gvsig</groupId> --> |
|
16 |
<!-- <artifactId>org.gvsig.app.mainplugin</artifactId> --> |
|
17 |
<!-- <scope>compile</scope> --> |
|
18 |
<!-- </dependency> --> |
|
19 |
<dependency> |
|
20 |
<groupId>org.gvsig</groupId> |
|
21 |
<artifactId>org.gvsig.andami</artifactId> |
|
22 |
<scope>compile</scope> |
|
23 |
</dependency> |
|
24 |
<dependency> |
|
25 |
<groupId>org.gvsig</groupId> |
|
26 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
27 |
<scope>compile</scope> |
|
28 |
</dependency> |
|
29 |
<dependency> |
|
30 |
<groupId>org.gvsig</groupId> |
|
31 |
<artifactId>org.gvsig.i18n</artifactId> |
|
32 |
<scope>compile</scope> |
|
33 |
</dependency> |
|
34 |
<dependency> |
|
35 |
<groupId>org.gvsig</groupId> |
|
36 |
<artifactId>org.gvsig.installer.lib.api</artifactId> |
|
37 |
<scope>compile</scope> |
|
38 |
</dependency> |
|
39 |
<dependency> |
|
40 |
<groupId>org.gvsig</groupId> |
|
41 |
<artifactId>org.gvsig.installer.swing.api</artifactId> |
|
42 |
<scope>compile</scope> |
|
43 |
</dependency> |
|
44 |
|
|
45 |
<dependency> |
|
46 |
<groupId>org.slf4j</groupId> |
|
47 |
<artifactId>slf4j-api</artifactId> |
|
48 |
<scope>compile</scope> |
|
49 |
</dependency> |
|
50 |
|
|
51 |
</dependencies> |
|
52 |
|
|
53 |
|
|
54 |
<build> |
|
55 |
<plugins> |
|
56 |
|
|
57 |
<plugin> |
|
58 |
<!-- Skip test execution --> |
|
59 |
<groupId>org.apache.maven.plugins</groupId> |
|
60 |
<artifactId>maven-surefire-plugin</artifactId> |
|
61 |
<configuration> |
|
62 |
<skipTests>true</skipTests> |
|
63 |
</configuration> |
|
64 |
</plugin> |
|
65 |
|
|
66 |
<plugin> |
|
67 |
<groupId>org.codehaus.gmaven</groupId> |
|
68 |
<artifactId>gmaven-plugin</artifactId> |
|
69 |
<executions> |
|
70 |
<execution> |
|
71 |
<id>install-installer-urls</id> |
|
72 |
<phase>install</phase> |
|
73 |
<goals> |
|
74 |
<goal>execute</goal> |
|
75 |
</goals> |
|
76 |
<configuration> |
|
77 |
<source><![CDATA[ |
|
78 |
if( project.properties["buildNumber"] != null) { |
|
79 |
if( project.properties["gvsig.install.plugin"]=="true" ) { |
|
80 |
// Copy defaultDownloadsURLs to install root |
|
81 |
ant = new AntBuilder() |
|
82 |
source = project.properties["gvsig.product.folder.path"] + |
|
83 |
"/gvSIG/extensiones/" + |
|
84 |
project.properties["gvsig.package.info.code"] + |
|
85 |
"/defaultDownloadsURLs" |
|
86 |
|
|
87 |
target = project.properties["gvsig.product.folder.path"] + |
|
88 |
"/gvsig-installer-urls.config" |
|
89 |
log.info("Copy plugin 'gvsig-installer-urls.config' from " + source + " to " + target) |
|
90 |
ant.copy(file:source, tofile:target) |
|
91 |
} |
|
92 |
} |
|
93 |
]]></source> |
|
94 |
</configuration> |
|
95 |
</execution> |
|
96 |
|
|
97 |
</executions> |
|
98 |
</plugin> |
|
99 |
|
|
100 |
</plugins> |
|
101 |
</build> |
|
102 |
|
|
103 |
<properties> |
|
104 |
<gvsig.package.info.categories>Addon Management</gvsig.package.info.categories> |
|
105 |
<gvsig.package.info.codealias>org.gvsig.installer.app.extension</gvsig.package.info.codealias> |
|
106 |
<gvsig.package.info.official>true</gvsig.package.info.official> |
|
107 |
<gvsig.package.info.name>Add-ons manager</gvsig.package.info.name> |
|
108 |
</properties> |
|
109 |
|
|
110 |
</project> |
|
0 | 111 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.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/xsd/maven-4.0.0.xsd"> |
|
4 |
|
|
5 |
<modelVersion>4.0.0</modelVersion> |
|
6 |
<artifactId>org.gvsig.datalocator.app</artifactId> |
|
7 |
<name>${project.artifactId}</name> |
|
8 |
<packaging>pom</packaging> |
|
9 |
<parent> |
|
10 |
<groupId>org.gvsig</groupId> |
|
11 |
<artifactId>org.gvsig.desktop.plugin</artifactId> |
|
12 |
<version>2.0.231</version> |
|
13 |
</parent> |
|
14 |
|
|
15 |
<modules> |
|
16 |
<module>org.gvsig.datalocator.app.mainplugin</module> |
|
17 |
</modules> |
|
18 |
</project> |
|
0 | 19 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Sun Oct 14 21:04:54 CEST 2018 |
|
2 |
buildNumber=2778 |
|
0 | 3 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<!-- |
|
3 |
|
|
4 |
gvSIG. Desktop Geographic Information System. |
|
5 |
|
|
6 |
Copyright (C) 2007-2013 gvSIG Association. |
|
7 |
|
|
8 |
This program is free software; you can redistribute it and/or |
|
9 |
modify it under the terms of the GNU General Public License |
|
10 |
as published by the Free Software Foundation; either version 3 |
|
11 |
of the License, or (at your option) any later version. |
|
12 |
|
|
13 |
This program is distributed in the hope that it will be useful, |
|
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
GNU General Public License for more details. |
|
17 |
|
|
18 |
You should have received a copy of the GNU General Public License |
|
19 |
along with this program; if not, write to the Free Software |
|
20 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
21 |
MA 02110-1301, USA. |
|
22 |
|
|
23 |
For any additional information, do not hesitate to contact us |
|
24 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
25 |
|
|
26 |
--> |
|
27 |
<plugin-config> |
|
28 |
<libraries library-dir="lib"/> |
|
29 |
<depends plugin-name="org.gvsig.app.mainplugin"/> |
|
30 |
<resourceBundle name="text"/> |
|
31 |
<extensions> |
|
32 |
<extension class-name="org.gvsig.datalocator.DataLocatorExtension" |
|
33 |
description="Extensi?n que permite hacer zooms en funci?n de los valores de la base de datos. Tambi?n permite guardar y recuperar estos zooms." |
|
34 |
active="true"> |
|
35 |
|
|
36 |
<action |
|
37 |
name="view-navigation-locator-by-attribute" |
|
38 |
label="Localizador_por_atributo" |
|
39 |
tooltip="Localizador_por_atributo" |
|
40 |
position="650102000" |
|
41 |
action-command="view-navigation-locator-by-attribute" |
|
42 |
icon="view-navigation-locator-by-attribute" |
|
43 |
accelerator="" |
|
44 |
/> |
|
45 |
|
|
46 |
<menu |
|
47 |
name="view-navigation-locator-by-attribute" |
|
48 |
text="View/Navigation/Localizador_por_atributo" |
|
49 |
/> |
|
50 |
|
|
51 |
<tool-bar name="view_navigation"> |
|
52 |
<action-tool name="view-navigation-locator-by-attribute"/> |
|
53 |
</tool-bar> |
|
54 |
|
|
55 |
</extension> |
|
56 |
</extensions> |
|
57 |
</plugin-config> |
|
0 | 58 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/i18n/text_cs.properties | ||
---|---|---|
1 |
#Translations for language [cs] |
|
2 |
#Mon Oct 30 09:38:21 CET 2006 |
|
3 |
Campo=Pole |
|
4 |
Capa=Vrstva |
|
5 |
Localizador_por_atributo=Vyhledat podle atributu |
|
6 |
open_first_time=Otev\u0159\u00edt spole\u010dn\u011b s pohledem |
|
7 |
Salir=Konec |
|
8 |
Valor=Hodnota |
|
9 |
Vista=Pohled |
|
10 |
Zoom=Zoom |
|
0 | 11 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/i18n/text_fr.properties | ||
---|---|---|
1 |
#Translations for language [fr] |
|
2 |
#Mon Oct 30 09:38:21 CET 2006 |
|
3 |
Campo=Champ |
|
4 |
Capa=Couche |
|
5 |
Localizador_por_atributo=Localisation par attribut |
|
6 |
open_first_time=Ouvrir avec la vue |
|
7 |
Salir=Quitter |
|
8 |
Valor=Valeur |
|
9 |
Vista=Vue |
|
10 |
Zoom=Zoomer |
|
0 | 11 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/i18n/text_de.properties | ||
---|---|---|
1 |
#Translations for language [de] |
|
2 |
#Wed Oct 08 17:44:19 CEST 2008 |
|
3 |
Campo=Feld |
|
4 |
Capa=Layer |
|
5 |
com.iver.cit.gvsig.Herramientas= |
|
6 |
Localizador_por_atributo=Objekt mittels Attribut suchen |
|
7 |
open_first_time=Mit dem View \u00f6ffnen |
|
8 |
Salir=Schlie\u00dfen |
|
9 |
Valor=Wert |
|
10 |
Vista=Ansicht |
|
11 |
Zoom=Zoom |
|
0 | 12 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/i18n/text_eu.properties | ||
---|---|---|
1 |
#Translations for language [eu] |
|
2 |
#Mon Oct 30 09:38:21 CET 2006 |
|
3 |
Campo=Eremua |
|
4 |
Capa=Geruza |
|
5 |
Localizador_por_atributo=Ezaugarrien araberako bilagailua |
|
6 |
open_first_time=Bistarekin ireki |
|
7 |
Salir=Irten |
|
8 |
Valor=Balioa |
|
9 |
Vista=Bista |
|
10 |
Zoom=Zooma |
|
0 | 11 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/i18n/text_it.properties | ||
---|---|---|
1 |
#Translations for language [it] |
|
2 |
#Tue Nov 07 12:30:01 CET 2006 |
|
3 |
Campo=Campo |
|
4 |
Capa=Layer |
|
5 |
Localizador_por_atributo=Localizza per attributo |
|
6 |
open_first_time=Apri con la vista |
|
7 |
Salir=Esci |
|
8 |
Valor=Valore |
|
9 |
Vista=Vista |
|
10 |
Zoom=Zoom |
|
0 | 11 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/i18n/text.properties | ||
---|---|---|
1 |
#Translations for language [es] |
|
2 |
#Mon Oct 30 09:38:21 CET 2006 |
|
3 |
Campo=Campo |
|
4 |
Capa=Capa |
|
5 |
Localizador_por_atributo=Localizador por atributo |
|
6 |
open_first_time=Abrir este di?logo cada vez que se abre una vista |
|
7 |
Salir=Salir |
|
8 |
Valor=Valor |
|
9 |
Vista=Vista |
|
10 |
Zoom=Zoom |
|
11 |
_Close=Cerrar |
|
12 |
_Go=Ir |
|
0 | 13 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/i18n/text_zh.properties | ||
---|---|---|
1 |
#Translations for language [en] |
|
2 |
#Fri Nov 03 13:14:56 CET 2006 |
|
3 |
Campo=\u5b57\u6bb5 |
|
4 |
Capa=\u56fe\u5c42 |
|
5 |
Localizador_por_atributo=\u6839\u636e\u7279\u6027\u5b9a\u4f4d |
|
6 |
open_first_time=\u4e0e\u89c6\u56fe\u6253\u5f00 |
|
7 |
Salir=\u9000\u51fa |
|
8 |
Valor=\u6570\u636e |
|
9 |
Vista=\u89c6\u56fe |
|
10 |
Zoom=\u7f29\u653e |
|
0 | 11 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties | ||
---|---|---|
1 |
#Translations for language [en] |
|
2 |
#Mon Oct 30 09:38:21 CET 2006 |
|
3 |
Campo=Field |
|
4 |
Capa=Layer |
|
5 |
Localizador_por_atributo=Locate by attribute |
|
6 |
open_first_time=Open this dialog when a view is opened |
|
7 |
Salir=Exit |
|
8 |
Valor=Value |
|
9 |
Vista=View |
|
10 |
Zoom=Zoom |
|
11 |
_Close=Close |
|
12 |
_Go=Go |
|
0 | 13 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/i18n/text_gl.properties | ||
---|---|---|
1 |
#Translations for language [gl] |
|
2 |
#Mon Oct 30 09:38:21 CET 2006 |
|
3 |
Campo=Campo |
|
4 |
Capa=Capa |
|
5 |
Localizador_por_atributo=Localizador por atributo |
|
6 |
open_first_time=Abrir coa vista |
|
7 |
Salir=Sa\u00edr |
|
8 |
Valor=Valor |
|
9 |
Vista=Vista |
|
10 |
Zoom=Zoom |
|
0 | 11 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/i18n/text_ca.properties | ||
---|---|---|
1 |
#Translations for language [ca] |
|
2 |
#Mon Oct 30 09:38:21 CET 2006 |
|
3 |
Campo=Camp |
|
4 |
Capa=Capa |
|
5 |
Localizador_por_atributo=Localitzador per atribut |
|
6 |
open_first_time=Obrir amb la vista |
|
7 |
Salir=Eixir |
|
8 |
Valor=Valor |
|
9 |
Vista=Vista |
|
10 |
Zoom=Zoom |
|
0 | 11 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/resources-plugin/i18n/text_pt.properties | ||
---|---|---|
1 |
#Translations for language [pt] |
|
2 |
#Mon Oct 30 09:38:21 CET 2006 |
|
3 |
Campo=Campo |
|
4 |
Capa=Capa |
|
5 |
Localizador_por_atributo=Localizador por atributo |
|
6 |
open_first_time=Abrir com a vista |
|
7 |
Salir=Fechar |
|
8 |
Valor=Valor |
|
9 |
Vista=Vista |
|
10 |
Zoom=Zoom |
|
0 | 11 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.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>groupId:artifactId</include> |
|
58 |
</includes> |
|
59 |
</dependencySet> |
|
60 |
</dependencySets> |
|
61 |
--> |
|
62 |
</assembly> |
|
63 |
|
|
0 | 64 |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/java/org/gvsig/datalocator/gui/FieldsComboItem.java | ||
---|---|---|
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 |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 3 |
|
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.datalocator.gui; |
|
25 |
|
|
26 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
|
27 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
|
28 |
import org.gvsig.tools.dataTypes.DataType; |
|
29 |
|
|
30 |
|
|
31 |
/** |
|
32 |
* Utility class to use in Swing component with items that represent fields |
|
33 |
* |
|
34 |
* @author jldominguez |
|
35 |
* |
|
36 |
*/ |
|
37 |
public class FieldsComboItem { |
|
38 |
|
|
39 |
private FeatureAttributeDescriptor att = null; |
|
40 |
|
|
41 |
public FieldsComboItem(FeatureAttributeDescriptor a) { |
|
42 |
att = a; |
|
43 |
} |
|
44 |
|
|
45 |
public DataType getType() { |
|
46 |
return att.getDataType(); |
|
47 |
} |
|
48 |
|
|
49 |
public String toString() { |
|
50 |
return att == null ? "-" : att.getName(); |
|
51 |
} |
|
52 |
|
|
53 |
|
|
54 |
} |
tags/org.gvsig.desktop-2.0.231/org.gvsig.desktop.plugin/org.gvsig.datalocator.app/org.gvsig.datalocator.app.mainplugin/src/main/java/org/gvsig/datalocator/gui/LayersComboItem.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
5 |
* |
Also available in: Unified diff