Revision 35601
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/buildNumber.properties | ||
---|---|---|
1 |
#maven.buildNumber.plugin properties file |
|
2 |
#Fri Jun 24 13:52:58 CEST 2011 |
|
3 |
buildNumber=2035 |
tags/v2_0_0_Build_2028/extensions/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" |
|
4 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
5 |
<modelVersion>4.0.0</modelVersion> |
|
6 |
<groupId>org.gvsig</groupId> |
|
7 |
<artifactId>org.gvsig.installer.app</artifactId> |
|
8 |
<packaging>pom</packaging> |
|
9 |
<version>2.0-SNAPSHOT</version> |
|
10 |
<name>org.gvsig.installer.app</name> |
|
11 |
<description>gvSIG plugin to create a installers or install plugins in gvSIG</description> |
|
12 |
<url>http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/docs/reference/org.gvsig.installer.app/${project.version}</url> |
|
13 |
<parent> |
|
14 |
<groupId>org.gvsig</groupId> |
|
15 |
<artifactId>gvsig-base-extension-pom</artifactId> |
|
16 |
<version>2.0-SNAPSHOT</version> |
|
17 |
</parent> |
|
18 |
|
|
19 |
<scm> |
|
20 |
<connection>scm:svn:https://svn.forge.osor.eu/svn/gvsig-desktop/branches/v2_0_0_prep/extensions/org.gvsig.installer.app</connection> |
|
21 |
<developerConnection>scm:svn:https://svn.forge.osor.eu/svn/gvsig-desktop/branches/v2_0_0_prep/extensions/org.gvsig.installer.app</developerConnection> |
|
22 |
<url>https://forge.osor.eu/plugins/scmsvn/viewcvs.php/branches/v2_0_0_prep/extensions/org.gvsig.installer.app/?root=gvsig-desktop</url> |
|
23 |
</scm> |
|
24 |
|
|
25 |
<developers> |
|
26 |
<developer> |
|
27 |
<id>jjdelcerro</id> |
|
28 |
<name>Joaqu?n Jos? del Cerro</name> |
|
29 |
<email>jjdelcerro@gvsig.org</email> |
|
30 |
<roles> |
|
31 |
<role>Architect</role> |
|
32 |
</roles> |
|
33 |
</developer> |
|
34 |
<developer> |
|
35 |
<id>jpiera</id> |
|
36 |
<name>Jorge Piera Llodr?</name> |
|
37 |
<email>jpiera@gvsig.org</email> |
|
38 |
<roles> |
|
39 |
<role>Architect</role> |
|
40 |
<role>Developer</role> |
|
41 |
</roles> |
|
42 |
</developer> |
|
43 |
</developers> |
|
44 |
|
|
45 |
<distributionManagement> |
|
46 |
<site> |
|
47 |
<id>gvsig-repository</id> |
|
48 |
<url>scp://shell.forge.osor.eu/home/groups/gvsig-desktop/www/downloads/pub/projects/gvSIG-desktop/docs/reference/org.gvsig.installer.app/${project.version}</url> |
|
49 |
</site> |
|
50 |
</distributionManagement> |
|
51 |
<repositories> |
|
52 |
<repository> |
|
53 |
<id>gvsig-public-http-repository</id> |
|
54 |
<name>gvSIG maven public HTTP repository</name> |
|
55 |
<url>http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/maven-repository</url> |
|
56 |
<releases> |
|
57 |
<enabled>true</enabled> |
|
58 |
<updatePolicy>daily</updatePolicy> |
|
59 |
<checksumPolicy>warn</checksumPolicy> |
|
60 |
</releases> |
|
61 |
<snapshots> |
|
62 |
<enabled>true</enabled> |
|
63 |
<updatePolicy>daily</updatePolicy> |
|
64 |
<checksumPolicy>warn</checksumPolicy> |
|
65 |
</snapshots> |
|
66 |
</repository> |
|
67 |
</repositories> |
|
68 |
<build> |
|
69 |
<plugins> |
|
70 |
<plugin> |
|
71 |
<groupId>org.apache.maven.plugins</groupId> |
|
72 |
<artifactId>maven-release-plugin</artifactId> |
|
73 |
<configuration> |
|
74 |
<tagBase>https://svn.forge.osor.eu/svn/gvsig-desktop/tags</tagBase> |
|
75 |
</configuration> |
|
76 |
</plugin> |
|
77 |
</plugins> |
|
78 |
</build> |
|
79 |
|
|
80 |
<modules> |
|
81 |
<module>org.gvsig.installer.app.extension</module> |
|
82 |
</modules> |
|
83 |
|
|
84 |
<properties> |
|
85 |
<build-dir>${basedir}/../build</build-dir> |
|
86 |
</properties> |
|
87 |
</project> |
|
0 | 88 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/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" |
|
4 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
5 |
<modelVersion>4.0.0</modelVersion> |
|
6 |
<artifactId>org.gvsig.installer.app.extension</artifactId> |
|
7 |
<packaging>jar</packaging> |
|
8 |
<name>Add-ons manager</name> |
|
9 |
<parent> |
|
10 |
<groupId>org.gvsig</groupId> |
|
11 |
<artifactId>org.gvsig.installer.app</artifactId> |
|
12 |
<version>2.0-SNAPSHOT</version> |
|
13 |
</parent> |
|
14 |
<profiles> |
|
15 |
<profile> |
|
16 |
<id>gvsig-install</id> |
|
17 |
<activation> |
|
18 |
<activeByDefault>true</activeByDefault> |
|
19 |
</activation> |
|
20 |
<properties> |
|
21 |
<!-- gvSIG installation folder --> |
|
22 |
<gvsig.install.dir>${basedir}/../../build/product</gvsig.install.dir> |
|
23 |
</properties> |
|
24 |
</profile> |
|
25 |
</profiles> |
|
26 |
<dependencies> |
|
27 |
<dependency> |
|
28 |
<groupId>org.gvsig</groupId> |
|
29 |
<artifactId>org.gvsig.app</artifactId> |
|
30 |
<version>2.0-SNAPSHOT</version> |
|
31 |
<scope>compile</scope> |
|
32 |
</dependency> |
|
33 |
<dependency> |
|
34 |
<groupId>org.gvsig</groupId> |
|
35 |
<artifactId>org.gvsig.andami</artifactId> |
|
36 |
<scope>compile</scope> |
|
37 |
</dependency> |
|
38 |
<dependency> |
|
39 |
<groupId>org.gvsig</groupId> |
|
40 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
41 |
<scope>compile</scope> |
|
42 |
</dependency> |
|
43 |
<dependency> |
|
44 |
<groupId>org.gvsig</groupId> |
|
45 |
<artifactId>org.gvsig.i18n</artifactId> |
|
46 |
<scope>compile</scope> |
|
47 |
</dependency> |
|
48 |
<dependency> |
|
49 |
<groupId>org.gvsig</groupId> |
|
50 |
<artifactId>org.gvsig.installer.lib.api</artifactId> |
|
51 |
<version>1.0.1-SNAPSHOT</version> |
|
52 |
<scope>compile</scope> |
|
53 |
</dependency> |
|
54 |
<dependency> |
|
55 |
<groupId>org.gvsig</groupId> |
|
56 |
<artifactId>org.gvsig.installer.lib.impl</artifactId> |
|
57 |
<version>1.0.1-SNAPSHOT</version> |
|
58 |
<scope>runtime</scope> |
|
59 |
</dependency> |
|
60 |
<dependency> |
|
61 |
<groupId>org.gvsig</groupId> |
|
62 |
<artifactId>org.gvsig.installer.lib.spi</artifactId> |
|
63 |
<version>1.0.1-SNAPSHOT</version> |
|
64 |
<scope>compile</scope> |
|
65 |
</dependency> |
|
66 |
<dependency> |
|
67 |
<groupId>org.gvsig</groupId> |
|
68 |
<artifactId>org.gvsig.installer.prov.plugin</artifactId> |
|
69 |
<version>1.0.1-SNAPSHOT</version> |
|
70 |
<scope>compile</scope> |
|
71 |
</dependency> |
|
72 |
<dependency> |
|
73 |
<groupId>org.gvsig</groupId> |
|
74 |
<artifactId>org.gvsig.installer.swing.api</artifactId> |
|
75 |
<version>1.0.1-SNAPSHOT</version> |
|
76 |
<scope>compile</scope> |
|
77 |
</dependency> |
|
78 |
<dependency> |
|
79 |
<groupId>org.gvsig</groupId> |
|
80 |
<artifactId>org.gvsig.installer.swing.impl</artifactId> |
|
81 |
<version>1.0.1-SNAPSHOT</version> |
|
82 |
<scope>runtime</scope> |
|
83 |
</dependency> |
|
84 |
<dependency> |
|
85 |
<groupId>org.slf4j</groupId> |
|
86 |
<artifactId>slf4j-api</artifactId> |
|
87 |
<scope>compile</scope> |
|
88 |
</dependency> |
|
89 |
</dependencies> |
|
90 |
<properties> |
|
91 |
<build-dir>${basedir}/../../build</build-dir> |
|
92 |
</properties> |
|
93 |
</project> |
|
0 | 94 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/distribution/distribution.xml | ||
---|---|---|
1 |
<assembly> |
|
2 |
<id>distribution</id> |
|
3 |
<formats> |
|
4 |
<format>dir</format> |
|
5 |
</formats> |
|
6 |
<fileSets> |
|
7 |
<fileSet> |
|
8 |
<directory>src/main/resources/config</directory> |
|
9 |
<outputDirectory>${extension.install.dir.name} |
|
10 |
</outputDirectory> |
|
11 |
</fileSet> |
|
12 |
<fileSet> |
|
13 |
<directory>src/main/resources/images</directory> |
|
14 |
<outputDirectory>${extension.install.dir.name}/images |
|
15 |
</outputDirectory> |
|
16 |
</fileSet> |
|
17 |
<fileSet> |
|
18 |
<directory>src/main/resources/about</directory> |
|
19 |
<outputDirectory>${extension.install.dir.name} |
|
20 |
</outputDirectory> |
|
21 |
</fileSet> |
|
22 |
<fileSet> |
|
23 |
<directory>src/main/resources/locale</directory> |
|
24 |
<outputDirectory>${extension.install.dir.name} |
|
25 |
</outputDirectory> |
|
26 |
</fileSet> |
|
27 |
</fileSets> |
|
28 |
<files> |
|
29 |
<file> |
|
30 |
<source>package.info</source> |
|
31 |
<outputDirectory>${extension.install.dir.name} |
|
32 |
</outputDirectory> |
|
33 |
</file> |
|
34 |
</files> |
|
35 |
<dependencySets> |
|
36 |
<dependencySet> |
|
37 |
<outputDirectory>${extension.install.dir.name}/${library-dir} |
|
38 |
</outputDirectory> |
|
39 |
<includes> |
|
40 |
<include>org.gvsig:org.gvsig.installer.app.extension:jar</include> |
|
41 |
</includes> |
|
42 |
</dependencySet> |
|
43 |
</dependencySets> |
|
44 |
</assembly> |
|
0 | 45 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/buildNumber.properties | ||
---|---|---|
1 |
#maven.buildNumber.plugin properties file |
|
2 |
#Fri Jun 24 13:52:58 CEST 2011 |
|
3 |
buildNumber=2028 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/utils/WindowInstallerListener.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2010 {Prodevelop} {Task} |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.installer.app.extension.utils; |
|
29 |
|
|
30 |
import org.gvsig.andami.PluginServices; |
|
31 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
32 |
import org.gvsig.installer.swing.api.wizard.InstallerWizardActionListener; |
|
33 |
import org.gvsig.installer.swing.api.wizard.InstallerWizardPanel; |
|
34 |
|
|
35 |
/** |
|
36 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
37 |
*/ |
|
38 |
public class WindowInstallerListener implements InstallerWizardActionListener { |
|
39 |
|
|
40 |
private IWindow window = null; |
|
41 |
|
|
42 |
public WindowInstallerListener(IWindow window) { |
|
43 |
super(); |
|
44 |
this.window = window; |
|
45 |
} |
|
46 |
|
|
47 |
public void closeWizard() { |
|
48 |
PluginServices.getMDIManager().closeWindow(window); |
|
49 |
} |
|
50 |
|
|
51 |
public void cancel(InstallerWizardPanel installerWizard) { |
|
52 |
PluginServices.getMDIManager().closeWindow(window); |
|
53 |
} |
|
54 |
|
|
55 |
public void finish(InstallerWizardPanel installerWizard) { |
|
56 |
PluginServices.getMDIManager().closeWindow(window); |
|
57 |
} |
|
58 |
|
|
59 |
} |
|
0 | 60 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/execution/InstallPackageExtension.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2010 {Prodevelop} {Task} |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.installer.app.extension.execution; |
|
29 |
|
|
30 |
import java.net.MalformedURLException; |
|
31 |
import java.net.URL; |
|
32 |
|
|
33 |
import javax.swing.JOptionPane; |
|
34 |
|
|
35 |
import org.slf4j.Logger; |
|
36 |
import org.slf4j.LoggerFactory; |
|
37 |
|
|
38 |
import org.gvsig.andami.PluginServices; |
|
39 |
import org.gvsig.andami.PluginsLocator; |
|
40 |
import org.gvsig.andami.PluginsManager; |
|
41 |
import org.gvsig.andami.plugins.Extension; |
|
42 |
import org.gvsig.app.ApplicationLocator; |
|
43 |
import org.gvsig.app.extension.Version; |
|
44 |
import org.gvsig.i18n.Messages; |
|
45 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
46 |
|
|
47 |
/** |
|
48 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
49 |
*/ |
|
50 |
public class InstallPackageExtension extends Extension { |
|
51 |
|
|
52 |
private static final Logger LOG = LoggerFactory |
|
53 |
.getLogger(InstallPackageExtension.class); |
|
54 |
|
|
55 |
public void execute(String actionCommand) { |
|
56 |
// int resp = JOptionPane.showConfirmDialog( |
|
57 |
// null, |
|
58 |
// Messages.getText("install_package_extension_warning"), |
|
59 |
// Messages.getText("select_an_option"), |
|
60 |
// JOptionPane.YES_NO_OPTION); |
|
61 |
// if (resp!=JOptionPane.OK_OPTION){ |
|
62 |
// return; |
|
63 |
// } |
|
64 |
|
|
65 |
PluginsManager manager = PluginsLocator.getManager(); |
|
66 |
try { |
|
67 |
PluginServices.getMDIManager().addCentredWindow( |
|
68 |
new InstallPackageWindow(manager.getApplicationFolder(), |
|
69 |
manager.getPluginsFolder().getAbsoluteFile(), manager |
|
70 |
.getInstallFolder())); |
|
71 |
} catch (Error e) { |
|
72 |
LOG.error("Error creating the wizard to install a package ", e); |
|
73 |
} catch (Exception e) { |
|
74 |
LOG.error("Error creating the wizard to install a package ", e); |
|
75 |
} |
|
76 |
} |
|
77 |
|
|
78 |
public void initialize() { |
|
79 |
Version version = ApplicationLocator.getManager().getVersion(); |
|
80 |
|
|
81 |
// TODO: move to user preferences or an external configuration file |
|
82 |
String packageDownloadURL = |
|
83 |
"http://gvsig-desktop.forge.osor.eu/gvSIG-desktop/dists/" |
|
84 |
+ version.getFormat() + "/packages.gvspki"; |
|
85 |
|
|
86 |
try { |
|
87 |
SwingInstallerLocator.getSwingInstallerManager() |
|
88 |
.setDefaultDownloadURL(new URL(packageDownloadURL)); |
|
89 |
} catch (MalformedURLException e) { |
|
90 |
LOG.error( |
|
91 |
"Error creating the default packages download URL pointing to" |
|
92 |
+ packageDownloadURL, e); |
|
93 |
} |
|
94 |
} |
|
95 |
|
|
96 |
public boolean isEnabled() { |
|
97 |
return true; |
|
98 |
} |
|
99 |
|
|
100 |
public boolean isVisible() { |
|
101 |
return true; |
|
102 |
} |
|
103 |
|
|
104 |
} |
|
0 | 105 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/execution/InstallPackageWindow.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2010 {Prodevelop} {Task} |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.installer.app.extension.execution; |
|
29 |
|
|
30 |
import java.awt.BorderLayout; |
|
31 |
import java.awt.Dimension; |
|
32 |
import java.io.File; |
|
33 |
|
|
34 |
import javax.swing.JPanel; |
|
35 |
|
|
36 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
37 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
|
38 |
import org.gvsig.i18n.Messages; |
|
39 |
import org.gvsig.installer.app.extension.utils.WindowInstallerListener; |
|
40 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
41 |
import org.gvsig.installer.swing.api.execution.AbstractInstallPackageWizard; |
|
42 |
import org.gvsig.installer.swing.api.execution.InstallPackageWizardException; |
|
43 |
import org.gvsig.tools.locator.LocatorException; |
|
44 |
|
|
45 |
/** |
|
46 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
47 |
*/ |
|
48 |
public class InstallPackageWindow extends JPanel implements IWindow { |
|
49 |
|
|
50 |
private static final long serialVersionUID = 4719868181091291809L; |
|
51 |
WindowInfo windowInfo = null; |
|
52 |
|
|
53 |
public InstallPackageWindow(File applicationFolder, File pluginsFolder, |
|
54 |
File installFolder) throws LocatorException, |
|
55 |
InstallPackageWizardException { |
|
56 |
super(); |
|
57 |
AbstractInstallPackageWizard installPackageWizard = |
|
58 |
SwingInstallerLocator.getSwingInstallerManager() |
|
59 |
.createInstallPackageWizard(applicationFolder, pluginsFolder, |
|
60 |
installFolder); |
|
61 |
installPackageWizard |
|
62 |
.setWizardActionListener(new WindowInstallerListener(this)); |
|
63 |
this.setLayout(new BorderLayout()); |
|
64 |
add(installPackageWizard, BorderLayout.CENTER); |
|
65 |
} |
|
66 |
|
|
67 |
public WindowInfo getWindowInfo() { |
|
68 |
if (windowInfo == null) { |
|
69 |
windowInfo = |
|
70 |
new WindowInfo(WindowInfo.MODELESSDIALOG |
|
71 |
| WindowInfo.ICONIFIABLE | WindowInfo.RESIZABLE); |
|
72 |
Dimension dim = getPreferredSize(); |
|
73 |
windowInfo.setWidth((int) dim.getWidth()); |
|
74 |
windowInfo.setHeight((int) dim.getHeight()); |
|
75 |
windowInfo.setTitle(Messages.getText("install_package")); |
|
76 |
} |
|
77 |
return windowInfo; |
|
78 |
} |
|
79 |
|
|
80 |
public Object getWindowProfile() { |
|
81 |
return WindowInfo.DIALOG_PROFILE; |
|
82 |
} |
|
83 |
|
|
84 |
} |
|
0 | 85 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/creation/MakePluginPackageExtension.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2010 {Prodevelop} {Task} |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.installer.app.extension.creation; |
|
29 |
|
|
30 |
import org.slf4j.Logger; |
|
31 |
import org.slf4j.LoggerFactory; |
|
32 |
|
|
33 |
import org.gvsig.andami.PluginServices; |
|
34 |
import org.gvsig.andami.PluginsLocator; |
|
35 |
import org.gvsig.andami.PluginsManager; |
|
36 |
import org.gvsig.andami.plugins.Extension; |
|
37 |
import org.gvsig.app.ApplicationLocator; |
|
38 |
import org.gvsig.app.extension.Version; |
|
39 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
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 |
PluginsManager manager = PluginsLocator.getManager(); |
|
51 |
|
|
52 |
try { |
|
53 |
PluginServices.getMDIManager().addCentredWindow( |
|
54 |
new MakePluginPackageWindow(manager.getApplicationFolder(), |
|
55 |
manager.getPluginsFolder().getAbsoluteFile(), manager |
|
56 |
.getInstallFolder())); |
|
57 |
} catch (Exception e) { |
|
58 |
LOG.error("Error creating teh wizard to create an installer ", e); |
|
59 |
} |
|
60 |
} |
|
61 |
|
|
62 |
public void initialize() { |
|
63 |
|
|
64 |
} |
|
65 |
|
|
66 |
@Override |
|
67 |
public void postInitialize() { |
|
68 |
super.postInitialize(); |
|
69 |
Version version = ApplicationLocator.getManager().getVersion(); |
|
70 |
SwingInstallerLocator.getSwingInstallerManager().setApplicationVersion( |
|
71 |
version.getFormat()); |
|
72 |
} |
|
73 |
|
|
74 |
public boolean isEnabled() { |
|
75 |
return true; |
|
76 |
} |
|
77 |
|
|
78 |
public boolean isVisible() { |
|
79 |
return true; |
|
80 |
} |
|
81 |
|
|
82 |
} |
|
0 | 83 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/creation/MakePluginPackageWindow.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2010 {Prodevelop} {Task} |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.installer.app.extension.creation; |
|
29 |
|
|
30 |
import java.awt.BorderLayout; |
|
31 |
import java.awt.Dimension; |
|
32 |
import java.io.File; |
|
33 |
|
|
34 |
import javax.swing.JPanel; |
|
35 |
|
|
36 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
37 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
|
38 |
import org.gvsig.i18n.Messages; |
|
39 |
import org.gvsig.installer.app.extension.utils.WindowInstallerListener; |
|
40 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
41 |
import org.gvsig.installer.swing.api.creation.MakePluginPackageWizard; |
|
42 |
import org.gvsig.installer.swing.api.creation.MakePluginPackageWizardException; |
|
43 |
import org.gvsig.tools.locator.LocatorException; |
|
44 |
|
|
45 |
/** |
|
46 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
47 |
*/ |
|
48 |
public class MakePluginPackageWindow extends JPanel implements IWindow { |
|
49 |
|
|
50 |
private static final long serialVersionUID = 3423389124323013058L; |
|
51 |
WindowInfo windowInfo = null; |
|
52 |
|
|
53 |
public MakePluginPackageWindow(File applicationFolder, File pluginsFolder, |
|
54 |
File installFolder) throws LocatorException, |
|
55 |
MakePluginPackageWizardException { |
|
56 |
super(); |
|
57 |
MakePluginPackageWizard makePluginPackageWizard = |
|
58 |
SwingInstallerLocator.getSwingInstallerManager() |
|
59 |
.createMakePluginPackageWizard(applicationFolder, |
|
60 |
pluginsFolder, installFolder); |
|
61 |
makePluginPackageWizard |
|
62 |
.setWizardActionListener(new WindowInstallerListener(this)); |
|
63 |
this.setLayout(new BorderLayout()); |
|
64 |
add(makePluginPackageWizard, BorderLayout.CENTER); |
|
65 |
} |
|
66 |
|
|
67 |
public WindowInfo getWindowInfo() { |
|
68 |
if (windowInfo == null) { |
|
69 |
windowInfo = |
|
70 |
new WindowInfo(WindowInfo.MODELESSDIALOG |
|
71 |
| WindowInfo.ICONIFIABLE | WindowInfo.RESIZABLE); |
|
72 |
Dimension dim = getPreferredSize(); |
|
73 |
windowInfo.setWidth((int) dim.getWidth()); |
|
74 |
windowInfo.setHeight((int) dim.getHeight()); |
|
75 |
windowInfo.setTitle(Messages.getText("make_plugin_package")); |
|
76 |
} |
|
77 |
return windowInfo; |
|
78 |
} |
|
79 |
|
|
80 |
public Object getWindowProfile() { |
|
81 |
return WindowInfo.DIALOG_PROFILE; |
|
82 |
} |
|
83 |
} |
|
0 | 84 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/resources/config/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<libraries library-dir="lib"/> |
|
4 |
<depends plugin-name="org.gvsig.app"/> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<extension class-name="org.gvsig.installer.app.extension.creation.MakePluginPackageExtension" |
|
8 |
description="This extension is used to create a bundle for a plugin package from the current gvSIG application." |
|
9 |
active="true"> |
|
10 |
<menu text="tools/Development/make_plugin_package" |
|
11 |
tooltip="make_plugin_package_description" |
|
12 |
position= "7009075" |
|
13 |
action-command="" /> |
|
14 |
</extension> |
|
15 |
<extension class-name="org.gvsig.installer.app.extension.execution.InstallPackageExtension" |
|
16 |
description="This extension is used to install a package from a bundle in gvSIG" |
|
17 |
active="true"> |
|
18 |
<menu text="tools/addons_manager" |
|
19 |
tooltip="addons_manager_description" |
|
20 |
position= "7009070" |
|
21 |
icon="images/system-software-update.png" |
|
22 |
action-command="" /> |
|
23 |
</extension> |
|
24 |
</extensions> |
|
25 |
</plugin-config> |
|
0 | 26 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/resources/locale/text.properties | ||
---|---|---|
1 |
make_plugin_package=Crear paquete instalaci?n de plugin |
|
2 |
make_plugin_package_description=Crea un paquete de instalaci?n 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?n |
|
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 ?ndice |
|
11 |
_Compressing=Comprimiendo |
|
12 |
_Cant_create_package=No se puede crear el paquete |
|
13 |
_Installer_progress=Progreso de instalaci?n |
|
14 |
_Cant_download_package_files=No se pueden descargar los archivos del paquete |
|
15 |
_Downloading=Descargando |
|
16 |
_Download_progress=Progreso de descarga |
|
17 |
_Start_download=Iniciar descarga |
|
0 | 18 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/resources/locale/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 |
_Download_progress=Download progress |
|
17 |
_Start_download=Start download |
|
18 |
|
|
0 | 19 |
tags/v2_0_0_Build_2028/extensions/org.gvsig.installer.app/distribution/distribution.xml | ||
---|---|---|
1 |
<assembly> |
|
2 |
</assembly> |
|
0 | 3 |
tags/v2_0_0_Build_2028/extensions/extJCRS/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" |
|
4 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 |
|
5 |
http://maven.apache.org/maven-v4_0_0.xsd"> |
|
6 |
<modelVersion>4.0.0</modelVersion> |
|
7 |
<groupId>org.gvsig</groupId> |
|
8 |
<artifactId>org.gvsig.crs.extension</artifactId> |
|
9 |
<packaging>jar</packaging> |
|
10 |
<version>2.0-SNAPSHOT</version> |
|
11 |
<name>CRS management tool</name> |
|
12 |
<description>Advanced CRS management: |
|
13 |
- Set the reference system (CRS) by default, in views, in layers (CRS on the fly). |
|
14 |
- Selection from recent CRS, from EPSG, ESRI, IAU2000 data bases and user's defined CRS. |
|
15 |
- Create, edit and delete new CRS defined by the user (from an existing CRS, from a wkt string, or from scratch). |
|
16 |
- Consult CRS information (datum, projection, proj4 string...) |
|
17 |
- Convertion of coordinates (no datum changing) |
|
18 |
- Transformation of coordinates (datum changing) from EPSG, manual, recent, compound and grid (.gsb extension)</description> |
|
19 |
<url>http://maven.apache.org</url> |
|
20 |
<parent> |
|
21 |
<groupId>org.gvsig</groupId> |
|
22 |
<artifactId>gvsig-base-extension-pom</artifactId> |
|
23 |
<version>2.0-SNAPSHOT</version> |
|
24 |
</parent> |
|
25 |
<distributionManagement> |
|
26 |
<site> |
|
27 |
<id>gvsig-repository</id> |
|
28 |
<url>${site-repository}/</url> |
|
29 |
</site> |
|
30 |
</distributionManagement> |
|
31 |
|
|
32 |
<dependencies> |
|
33 |
<dependency> |
|
34 |
<groupId>org.gvsig</groupId> |
|
35 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
36 |
<scope>compile</scope> |
|
37 |
</dependency> |
|
38 |
<dependency> |
|
39 |
<groupId>org.gvsig</groupId> |
|
40 |
<artifactId>org.gvsig.ui</artifactId> |
|
41 |
<scope>compile</scope> |
|
42 |
</dependency> |
|
43 |
<dependency> |
|
44 |
<groupId>org.gvsig</groupId> |
|
45 |
<artifactId>org.gvsig.fmap.control</artifactId> |
|
46 |
<scope>compile</scope> |
|
47 |
</dependency> |
|
48 |
<dependency> |
|
49 |
<groupId>org.gvsig</groupId> |
|
50 |
<artifactId>org.gvsig.utils</artifactId> |
|
51 |
<scope>compile</scope> |
|
52 |
</dependency> |
|
53 |
<dependency> |
|
54 |
<groupId>org.gvsig</groupId> |
|
55 |
<artifactId>org.gvsig.projection</artifactId> |
|
56 |
<scope>compile</scope> |
|
57 |
</dependency> |
|
58 |
<dependency> |
|
59 |
<groupId>org.gvsig</groupId> |
|
60 |
<artifactId>org.gvsig.andami</artifactId> |
|
61 |
<scope>compile</scope> |
|
62 |
</dependency> |
|
63 |
<dependency> |
|
64 |
<groupId>org.gvsig</groupId> |
|
65 |
<artifactId>org.gvsig.crs</artifactId> |
|
66 |
<version>2.0.1-SNAPSHOT</version> |
|
67 |
<scope>compile</scope> |
|
68 |
</dependency> |
|
69 |
<dependency> |
|
70 |
<groupId>org.gvsig</groupId> |
|
71 |
<artifactId>org.gvsig.projection</artifactId> |
|
72 |
<classifier>cresques-ui</classifier> |
|
73 |
<scope>compile</scope> |
|
74 |
</dependency> |
|
75 |
<dependency> |
|
76 |
<groupId>org.gvsig</groupId> |
|
77 |
<artifactId>org.gvsig.app</artifactId> |
|
78 |
<version>2.0-SNAPSHOT</version> |
|
79 |
<scope>compile</scope> |
|
80 |
</dependency> |
|
81 |
<dependency> |
|
82 |
<groupId>org.geotools</groupId> |
|
83 |
<artifactId>gt2-main</artifactId> |
|
84 |
<scope>compile</scope> |
|
85 |
</dependency> |
|
86 |
<dependency> |
|
87 |
<groupId>net.sf</groupId> |
|
88 |
<artifactId>jgridshiftapi</artifactId> |
|
89 |
<scope>compile</scope> |
|
90 |
</dependency> |
|
91 |
<dependency> |
|
92 |
<groupId>hsqldb</groupId> |
|
93 |
<artifactId>hsqldb</artifactId> |
|
94 |
<scope>compile</scope> |
|
95 |
</dependency> |
|
96 |
<dependency> |
|
97 |
<groupId>java3d</groupId> |
|
98 |
<artifactId>vecmath</artifactId> |
|
99 |
<scope>compile</scope> |
|
100 |
</dependency> |
|
101 |
<dependency> |
|
102 |
<groupId>org.gvsig</groupId> |
|
103 |
<artifactId>org.gvsig.about.api</artifactId> |
|
104 |
<scope>compile</scope> |
|
105 |
</dependency> |
|
106 |
<dependency> |
|
107 |
<groupId>org.opengis</groupId> |
|
108 |
<artifactId>geoapi</artifactId> |
|
109 |
<scope>compile</scope> |
|
110 |
</dependency> |
|
111 |
<dependency> |
|
112 |
<groupId>javax.units</groupId> |
|
113 |
<artifactId>jsr108</artifactId> |
|
114 |
<version>0.01</version> |
|
115 |
<scope>compile</scope> |
|
116 |
</dependency> |
|
117 |
</dependencies> |
|
118 |
<properties> |
|
119 |
<build-dir>${basedir}/../build</build-dir> |
|
120 |
<eclipse.project.name>extJCRS</eclipse.project.name> |
|
121 |
</properties> |
|
122 |
<build> |
|
123 |
<sourceDirectory>src</sourceDirectory> |
|
124 |
<!-- <testSourceDirectory>src-test</testSourceDirectory> --> |
|
125 |
<plugins> |
|
126 |
<!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION --> |
|
127 |
<plugin> |
|
128 |
<groupId>org.apache.maven.plugins</groupId> |
|
129 |
<artifactId>maven-surefire-plugin</artifactId> |
|
130 |
<configuration> |
|
131 |
<skipTests>true</skipTests> |
|
132 |
</configuration> |
|
133 |
</plugin> |
|
134 |
</plugins> |
|
135 |
</build> |
|
136 |
</project> |
tags/v2_0_0_Build_2028/extensions/extJCRS/distribution/distribution.xml | ||
---|---|---|
1 |
<assembly> |
|
2 |
<id>distribution</id> |
|
3 |
<formats> |
|
4 |
<format>dir</format> |
|
5 |
</formats> |
|
6 |
<fileSets> |
|
7 |
<!-- Extructure for the extension --> |
|
8 |
<fileSet> |
|
9 |
<directory>config</directory> |
|
10 |
<outputDirectory>${extension.install.dir.name} |
|
11 |
</outputDirectory> |
|
12 |
</fileSet> |
|
13 |
<fileSet> |
|
14 |
<directory>data</directory> |
|
15 |
<outputDirectory>${extension.install.dir.name}/data |
|
16 |
</outputDirectory> |
|
17 |
</fileSet> |
|
18 |
<fileSet> |
|
19 |
<directory>images</directory> |
|
20 |
<outputDirectory>/${extension.install.dir.name}/images |
|
21 |
</outputDirectory> |
|
22 |
</fileSet> |
|
23 |
<!-- Extructure for the native libraries --> |
|
24 |
<!-- <fileSet>--> |
|
25 |
<!-- <directory>${basedir}/../binaries/linux/3D/</directory>--> |
|
26 |
<!-- <outputDirectory>/linux/lib</outputDirectory>--> |
|
27 |
<!-- </fileSet>--> |
|
28 |
</fileSets> |
|
29 |
<files> |
|
30 |
<file> |
|
31 |
<source>package.info</source> |
|
32 |
<outputDirectory>${extension.install.dir.name} |
|
33 |
</outputDirectory> |
|
34 |
</file> |
|
35 |
</files> |
|
36 |
<!-- |
|
37 |
*********************************************************************** |
|
38 |
--> |
|
39 |
<!-- * *--> |
|
40 |
<!-- |
|
41 |
*********************************************************************** |
|
42 |
--> |
|
43 |
<dependencySets> |
|
44 |
<dependencySet> |
|
45 |
<outputDirectory>${extension.install.dir.name}/${library-dir} |
|
46 |
</outputDirectory> |
|
47 |
<includes> |
|
48 |
<include>org.gvsig:org.gvsig.crs.extension</include> |
|
49 |
</includes> |
|
50 |
</dependencySet> |
|
51 |
<dependencySet> |
|
52 |
<outputDirectory>${gvsig.extension.install.dir.name}/lib |
|
53 |
</outputDirectory> |
|
54 |
<includes> |
|
55 |
<include>org.gvsig:org.gvsig.crs</include> |
|
56 |
<include>org.gvsig:org.gvsig.projection</include> |
|
57 |
<include>net.sf:jgridshiftapi</include> |
|
58 |
<include>org.geotools:gt2-epsg-hsql</include> |
|
59 |
<include>org.geotools:gt2-epsg-esri</include> |
|
60 |
<include>org.geotools:gt2-epsg-iau2000</include> |
|
61 |
<include>org.geotools:gt2-epsg-usr</include> |
|
62 |
<include>hsqldb:hsqldb</include> |
|
63 |
<include>java3d:vecmath</include> |
|
64 |
</includes> |
|
65 |
</dependencySet> |
|
66 |
</dependencySets> |
|
67 |
</assembly> |
tags/v2_0_0_Build_2028/extensions/extJCRS/buildNumber.properties | ||
---|---|---|
1 |
#maven.buildNumber.plugin properties file |
|
2 |
#Fri Jun 24 13:53:18 CEST 2011 |
|
3 |
buildNumber=2028 |
tags/v2_0_0_Build_2028/extensions/extJCRS/src-test/org/gvsig/crs/gui/wizard/FrameDefinicionCRS.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.wizard; |
|
2 |
|
|
3 |
|
|
4 |
import java.awt.event.WindowAdapter; |
|
5 |
import java.awt.event.WindowEvent; |
|
6 |
|
|
7 |
import javax.swing.JFrame; |
|
8 |
import javax.swing.JPanel; |
|
9 |
import javax.swing.UIManager; |
|
10 |
import javax.swing.UnsupportedLookAndFeelException; |
|
11 |
|
|
12 |
import org.gvsig.crs.gui.panels.wizard.DefCrsUsr; |
|
13 |
|
|
14 |
public class FrameDefinicionCRS { |
|
15 |
|
|
16 |
|
|
17 |
/** |
|
18 |
* @param args |
|
19 |
* @throws UnsupportedLookAndFeelException |
|
20 |
* @throws IllegalAccessException |
|
21 |
* @throws InstantiationException |
|
22 |
* @throws ClassNotFoundException |
|
23 |
*/ |
|
24 |
public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { |
|
25 |
|
|
26 |
/* |
|
27 |
com.sun.java.swing.plaf.motif.MotifLookAndFeel |
|
28 |
com.sun.java.swing.plaf.windows.WindowsLookAndFeel |
|
29 |
javax.swing.plaf.metal.MetalLookAndFeel |
|
30 |
*/ |
|
31 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
32 |
JFrame frame = new JFrame("Definicin de CRS por el usuario"); |
|
33 |
//cerrar el formulario |
|
34 |
frame.addWindowListener(new WindowAdapter() { |
|
35 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
36 |
}); |
|
37 |
|
|
38 |
frame.getContentPane().add(new DefCrsUsr(null)); |
|
39 |
frame.setSize(300,500); |
|
40 |
//colocar en la pantalla |
|
41 |
frame.setLocation(300,300); |
|
42 |
frame.pack(); |
|
43 |
frame.setVisible(true); |
|
44 |
|
|
45 |
} |
|
46 |
|
|
47 |
} |
|
0 | 48 |
tags/v2_0_0_Build_2028/extensions/extJCRS/src-test/org/gvsig/crs/gui/wizard/FrameMain.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.wizard; |
|
2 |
|
|
3 |
|
|
4 |
import java.awt.event.WindowAdapter; |
|
5 |
import java.awt.event.WindowEvent; |
|
6 |
|
|
7 |
import javax.swing.ImageIcon; |
|
8 |
import javax.swing.JFrame; |
|
9 |
import javax.swing.JPanel; |
|
10 |
import javax.swing.UIManager; |
|
11 |
import javax.swing.UnsupportedLookAndFeelException; |
|
12 |
|
|
13 |
import org.gvsig.crs.gui.panels.wizard.DefCrsUsr; |
|
14 |
import org.gvsig.crs.gui.panels.wizard.MainPanel; |
|
15 |
|
|
16 |
public class FrameMain { |
|
17 |
|
|
18 |
|
|
19 |
/** |
|
20 |
* @param args |
|
21 |
* @throws UnsupportedLookAndFeelException |
|
22 |
* @throws IllegalAccessException |
|
23 |
* @throws InstantiationException |
|
24 |
* @throws ClassNotFoundException |
|
25 |
*/ |
|
26 |
public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { |
|
27 |
|
|
28 |
/* |
|
29 |
com.sun.java.swing.plaf.motif.MotifLookAndFeel |
|
30 |
com.sun.java.swing.plaf.windows.WindowsLookAndFeel |
|
31 |
javax.swing.plaf.metal.MetalLookAndFeel |
|
32 |
*/ |
|
33 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
34 |
JFrame frame = new JFrame("Asistente de Definicin de Crs"); |
|
35 |
//cerrar el formulario |
|
36 |
frame.addWindowListener(new WindowAdapter() { |
|
37 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
38 |
}); |
|
39 |
frame.getContentPane().add(new MainPanel(null)); |
|
40 |
frame.setSize(300,500); |
|
41 |
//colocar en la pantalla |
|
42 |
frame.setLocation(300,0); |
|
43 |
frame.pack(); |
|
44 |
frame.setVisible(true); |
|
45 |
|
|
46 |
} |
|
47 |
|
|
48 |
} |
|
0 | 49 |
tags/v2_0_0_Build_2028/extensions/extJCRS/src-test/org/gvsig/crs/gui/wizard/FramDefinirDatum.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.wizard; |
|
2 |
|
|
3 |
|
|
4 |
import java.awt.event.WindowAdapter; |
|
5 |
import java.awt.event.WindowEvent; |
|
6 |
|
|
7 |
import javax.swing.JFrame; |
|
8 |
import javax.swing.UIManager; |
|
9 |
import javax.swing.UnsupportedLookAndFeelException; |
|
10 |
|
|
11 |
import org.gvsig.crs.gui.panels.wizard.DefinirDatum; |
|
12 |
|
|
13 |
public class FramDefinirDatum { |
|
14 |
|
|
15 |
|
|
16 |
/** |
|
17 |
* @param args |
|
18 |
*/ |
|
19 |
public static void main(String[] args) { |
|
20 |
|
|
21 |
JFrame frame = new JFrame("Definicin del Datum"); |
|
22 |
/* |
|
23 |
com.sun.java.swing.plaf.motif.MotifLookAndFeel |
|
24 |
com.sun.java.swing.plaf.windows.WindowsLookAndFeel |
|
25 |
javax.swing.plaf.metal.MetalLookAndFeel |
|
26 |
*/ |
|
27 |
try { |
|
28 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
29 |
} catch (ClassNotFoundException e1) { |
|
30 |
// TODO Auto-generated catch block |
|
31 |
e1.printStackTrace(); |
|
32 |
} catch (InstantiationException e1) { |
|
33 |
// TODO Auto-generated catch block |
|
34 |
e1.printStackTrace(); |
|
35 |
} catch (IllegalAccessException e1) { |
|
36 |
// TODO Auto-generated catch block |
|
37 |
e1.printStackTrace(); |
|
38 |
} catch (UnsupportedLookAndFeelException e1) { |
|
39 |
// TODO Auto-generated catch block |
|
40 |
e1.printStackTrace(); |
|
41 |
} |
|
42 |
//cerrar el formulario |
|
43 |
frame.addWindowListener(new WindowAdapter() { |
|
44 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
45 |
}); |
|
46 |
|
|
47 |
frame.getContentPane().add(new DefinirDatum()); |
|
48 |
frame.setSize(300,500); |
|
49 |
//colocar en la pantalla |
|
50 |
frame.setLocation(300,0); |
|
51 |
frame.pack(); |
|
52 |
frame.setVisible(true); |
|
53 |
|
|
54 |
} |
|
55 |
|
|
56 |
} |
|
0 | 57 |
tags/v2_0_0_Build_2028/extensions/extJCRS/src-test/org/gvsig/crs/gui/wizard/FrameSistemaCoordenadas.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.wizard; |
|
2 |
|
|
3 |
|
|
4 |
import java.awt.event.WindowAdapter; |
|
5 |
import java.awt.event.WindowEvent; |
|
6 |
|
|
7 |
import javax.swing.JFrame; |
|
8 |
import org.gvsig.crs.gui.panels.wizard.DefSistCoordenadas; |
|
9 |
|
|
10 |
/** |
|
11 |
* Test para el interfaz del wizard de elecci?n del sistema de coordenadas |
|
12 |
* @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es) |
|
13 |
* |
|
14 |
*/ |
|
15 |
public class FrameSistemaCoordenadas { |
|
16 |
|
|
17 |
public static void main(String[] args) { |
|
18 |
|
|
19 |
JFrame frame = new JFrame("Definicion del Sistema de Coordenadas"); |
|
20 |
|
|
21 |
//cerrar el formulario |
|
22 |
frame.addWindowListener(new WindowAdapter() { |
|
23 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
24 |
}); |
|
25 |
|
|
26 |
frame.getContentPane().add(new DefSistCoordenadas()); |
|
27 |
frame.setSize(300,500); |
|
28 |
//colocar en la pantalla |
|
29 |
frame.setLocation(300,300); |
|
30 |
frame.pack(); |
|
31 |
frame.setVisible(true); |
|
32 |
|
|
33 |
} |
|
34 |
|
|
35 |
} |
|
0 | 36 |
tags/v2_0_0_Build_2028/extensions/extJCRS/src-test/org/gvsig/crs/gui/panels/CrsRecentsPanelTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.panels; |
|
2 |
|
|
3 |
import java.awt.event.WindowAdapter; |
|
4 |
import java.awt.event.WindowEvent; |
|
5 |
|
|
6 |
import javax.swing.JFrame; |
|
7 |
|
|
8 |
|
|
9 |
/** |
|
10 |
* Test para el interfaz de CRSs Recientes |
|
11 |
* @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es) |
|
12 |
* |
|
13 |
*/ |
|
14 |
public class CrsRecentsPanelTest { |
|
15 |
|
|
16 |
public static void main(String[] args) { |
|
17 |
JFrame frame = new JFrame("CrsRecents Test"); |
|
18 |
//cerrar el formulario |
|
19 |
frame.addWindowListener(new WindowAdapter() { |
|
20 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
21 |
}); |
|
22 |
frame.getContentPane().add(new CrsRecentsPanel()); |
|
23 |
frame.setLocation(300,0); |
|
24 |
frame.pack(); |
|
25 |
frame.setVisible(true); |
|
26 |
|
|
27 |
} |
|
28 |
} |
|
29 |
|
|
30 |
|
|
0 | 31 |
tags/v2_0_0_Build_2028/extensions/extJCRS/src-test/org/gvsig/crs/gui/panels/TransformationCapaPanelTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.panels; |
|
2 |
|
|
3 |
|
|
4 |
import java.awt.event.WindowAdapter; |
|
5 |
import java.awt.event.WindowEvent; |
|
6 |
|
|
7 |
import javax.swing.JFrame; |
|
8 |
/** |
|
9 |
* Test para el interfaz de Transformaci?n de la capa dentro de la transformacion compuesta |
|
10 |
* @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es) |
|
11 |
* |
|
12 |
*/ |
|
13 |
|
|
14 |
public class TransformationCapaPanelTest { |
|
15 |
|
|
16 |
|
|
17 |
public static void main(String[] args) { |
|
18 |
|
|
19 |
JFrame frame = new JFrame("Transformaci?n de la Capa"); |
|
20 |
//cerrar el formulario |
|
21 |
frame.addWindowListener(new WindowAdapter() { |
|
22 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
23 |
}); |
|
24 |
|
|
25 |
frame.getContentPane().add(new TransformationCapaPanel("",null)); |
|
26 |
frame.setSize(300,500); |
|
27 |
//colocar en la pantalla |
|
28 |
frame.setLocation(300,0); |
|
29 |
frame.pack(); |
|
30 |
frame.setVisible(true); |
|
31 |
|
|
32 |
} |
|
33 |
} |
|
0 | 34 |
tags/v2_0_0_Build_2028/extensions/extJCRS/src-test/org/gvsig/crs/gui/panels/TransformationVistaPanelTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.panels; |
|
2 |
|
|
3 |
import java.awt.event.WindowAdapter; |
|
4 |
import java.awt.event.WindowEvent; |
|
5 |
|
|
6 |
import javax.swing.JFrame; |
|
7 |
|
|
8 |
/** |
|
9 |
* Test para el interfaz de transformaci?n de la vista dentro de la transformacion compuesta |
|
10 |
* @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es) |
|
11 |
* |
|
12 |
*/ |
|
13 |
public class TransformationVistaPanelTest { |
|
14 |
|
|
15 |
public static void main(String[] args) { |
|
16 |
JFrame frame = new JFrame("Transformaci?n de la Capa"); |
|
17 |
|
|
18 |
// //cerrar el formulario |
|
19 |
frame.addWindowListener(new WindowAdapter() { |
|
20 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
21 |
}); |
|
22 |
|
|
23 |
frame.getContentPane().add(new TransformationVistaPanel("",null)); |
|
24 |
frame.setSize(300,500); |
|
25 |
//colocar en la pantalla |
|
26 |
frame.setLocation(300,0); |
|
27 |
frame.pack(); |
|
28 |
frame.setVisible(true); |
|
29 |
|
|
30 |
} |
|
31 |
} |
|
0 | 32 |
tags/v2_0_0_Build_2028/extensions/extJCRS/src-test/org/gvsig/crs/gui/panels/EPSGPanelTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.panels; |
|
2 |
|
|
3 |
import java.awt.event.WindowAdapter; |
|
4 |
import java.awt.event.WindowEvent; |
|
5 |
|
|
6 |
import javax.swing.JFrame; |
Also available in: Unified diff