Revision 255

View differences:

org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.win.x86/buildNumber.properties
1
#Sun Jul 27 22:34:56 EDT 2014
2
buildNumber=2063
0 3

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.win.x86/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>${gvsig.package.info.code}</baseDirectory>
32
  <includeBaseDirectory>true</includeBaseDirectory>
33
  <files>
34
    <file>
35
      <source>target/package.info</source>
36
    </file>
37
  </files>
38

  
39
  <fileSets>
40
    <fileSet>
41
      <directory>target/org.gvsig.projection.app.jcrs.common</directory>
42
      <outputDirectory>.</outputDirectory>
43
      <excludes>
44
      	<exclude>package.info</exclude>
45
      </excludes>
46
    </fileSet>
47
    <fileSet>
48
      <directory>target/native/bin</directory>
49
      <outputDirectory>install/files</outputDirectory>
50
    </fileSet>
51
    <fileSet>
52
      <directory>src/main/resources-plugin</directory>
53
      <outputDirectory>.</outputDirectory>
54
    </fileSet>
55
  </fileSets>
56

  
57

  
58
  <dependencySets>
59
    <dependencySet>
60
      <useProjectArtifact>false</useProjectArtifact>
61
      <useTransitiveDependencies>false</useTransitiveDependencies>
62
      <outputDirectory>lib</outputDirectory>
63
		<includes>
64
            <include>org.gvsig:org.gvsig.jproj:jar</include>
65
		</includes>
66
    </dependencySet>
67
  </dependencySets>
68

  
69
</assembly>
70

  
71

  
72

  
0 73

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.win.x86/src/main/resources-plugin/install/install.xml
1
<project name="org.gvsig.plugin1" default="main" basedir=".">
2
	<!--
3
		Predefined properties:
4
		gvsig_dir = gvSIG application root installation directory
5
		extensions_dir = gvSIG extensions directory
6
	-->
7
	<taskdef resource="net/sf/antcontrib/antlib.xml">
8
		<classpath>
9
			<pathelement location="${gvsig_dir}/lib/ant-contrib-1.0b3.jar" />
10
		</classpath>
11
	</taskdef>
12
	<target name="main" depends="copy_files"/>
13
    <target name="copy_files">
14
    	<copy todir="${gvsig_dir}">
15
    		<fileset dir="./files" includes="**"/>
16
		</copy>
17
	</target>
18
</project>
0 19

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.win.x86/pom.xml
1
<?xml version="1.0" encoding="UTF-8"?>
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.projection.app.jcrs.win.x86</artifactId>
5
  <packaging>jar</packaging>
6
   
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.projection.app.jcrs</artifactId>
10
		<version>2.1.4</version>
11
	</parent>
12

  
13
  <properties>
14
<!--     <gvsig.package.info.code>org.gvsig.crs.extension</gvsig.package.info.code> -->
15
    <gvsig.package.info.operatingSystem>win</gvsig.package.info.operatingSystem>
16
    <gvsig.package.info.architecture>x86</gvsig.package.info.architecture>
17
  </properties>
18

  
19
  <dependencyManagement>
20
      <dependencies>
21
        <dependency>
22
            <groupId>org.gvsig</groupId>
23
            <artifactId>org.gvsig.jproj</artifactId>
24
            <version>2.0.1</version>
25
        </dependency>                  
26
        <dependency>
27
            <groupId>org.gvsig</groupId>
28
            <artifactId>org.gvsig.jproj</artifactId>
29
            <version>2.0.1</version>
30
            <classifier>win-nt-vs8-i386-dynamic</classifier>
31
            <type>tar.gz</type>
32
        </dependency>                  
33
        <dependency>
34
            <groupId>org.gvsig</groupId>
35
            <artifactId>org.gvsig.jproj</artifactId>
36
            <version>2.0.1</version>
37
            <classifier>win-nt-vs8-i386-dynamic-runtime</classifier>
38
            <type>tar.gz</type>
39
        </dependency>                  
40
      </dependencies>
41
  </dependencyManagement>
42
 	 
43

  
44
  <dependencies>
45
      <dependency>
46
          <groupId>org.gvsig</groupId>
47
          <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
48
          <type>zip</type>
49
        </dependency>
50
      <dependency>
51
          <groupId>org.gvsig</groupId>
52
          <artifactId>org.gvsig.jproj</artifactId>
53
      </dependency>                  
54
      <dependency>
55
          <groupId>org.gvsig</groupId>
56
          <artifactId>org.gvsig.jproj</artifactId>
57
          <classifier>win-nt-vs8-i386-dynamic</classifier>
58
          <type>tar.gz</type>
59
      </dependency> 
60
      <dependency>
61
          <groupId>org.gvsig</groupId>
62
          <artifactId>org.gvsig.jproj</artifactId>
63
          <classifier>win-nt-vs8-i386-dynamic-runtime</classifier>
64
          <type>tar.gz</type>
65
      </dependency>   
66
    </dependencies>
67

  
68
  <build>
69
    <plugins>
70
  
71
      <plugin>
72
        <groupId>org.apache.maven.plugins</groupId>
73
        <artifactId>maven-dependency-plugin</artifactId>
74
        <executions>
75
          <execution>
76
          	<id>unpack</id>
77
	        <phase>process-sources</phase>
78
	        <goals>
79
	          <goal>unpack</goal>
80
	        </goals>
81
	        <configuration>
82
	          <artifactItems>
83
	            <artifactItem>
84
		            <groupId>org.gvsig</groupId>
85
		            <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
86
		            <type>zip</type>
87
					<overWrite>true</overWrite>
88
					<outputDirectory>target</outputDirectory>
89
	            </artifactItem>
90
	            <artifactItem>
91
		            <groupId>org.gvsig</groupId>
92
		            <artifactId>org.gvsig.jproj</artifactId>
93
		            <classifier>win-nt-vs8-i386-dynamic</classifier>
94
		            <type>tar.gz</type>
95
					<overWrite>true</overWrite>
96
					<outputDirectory>target/native</outputDirectory>
97
	            </artifactItem>
98
	            <artifactItem>
99
		            <groupId>org.gvsig</groupId>
100
		            <artifactId>org.gvsig.jproj</artifactId>
101
		            <classifier>win-nt-vs8-i386-dynamic-runtime</classifier>
102
		            <type>tar.gz</type>
103
					<overWrite>true</overWrite>
104
					<outputDirectory>target/native/bin</outputDirectory>
105
	            </artifactItem>
106
	          </artifactItems>
107
	        </configuration>
108
          </execution>
109
        </executions>
110
	  </plugin>
111
  
112
  
113
    </plugins>
114
  </build>
115

  
116
  <profiles>
117
  
118
    <profile>
119
      <id>gvsig-plugin-install-jcrs-windows-x86</id>
120
      <activation>
121
         <os>
122
             <family>windows</family>
123
             <!-- Uncomment this when have support for amd64 -->
124
             <!-- 
125
             <arch>x86</arch>
126
             -->
127
         </os>
128
      </activation>
129
	  <properties>
130
	    <gvsig.install.plugin>true</gvsig.install.plugin>
131
	  </properties>
132
    </profile>
133
  </profiles>
134
  
135
</project>
136

  
0 137

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86/pom.xml
1
<?xml version="1.0" encoding="UTF-8"?>
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.projection.app.jcrs.lin.x86</artifactId>
5
  <packaging>jar</packaging>
6
   
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.projection.app.jcrs</artifactId>
10
		<version>2.1.4</version>
11
	</parent>
12

  
13
  <properties>
14
    <gvsig.package.info.operatingSystem>lin</gvsig.package.info.operatingSystem>
15
    <gvsig.package.info.architecture>x86</gvsig.package.info.architecture>
16
  </properties>
17

  
18
  <dependencyManagement>
19
      <dependencies>
20
        <dependency>
21
            <groupId>org.gvsig</groupId>
22
            <artifactId>org.gvsig.jproj</artifactId>
23
            <version>2.0.1</version>
24
        </dependency>                  
25
        <dependency>
26
            <groupId>org.gvsig</groupId>
27
            <artifactId>org.gvsig.jproj</artifactId>
28
            <version>2.0.1</version>
29
            <classifier>linux-all-gcc4-i386-dynamic</classifier>
30
            <type>tar.gz</type>
31
        </dependency>                  
32
      </dependencies>
33
  </dependencyManagement>
34
 	 
35

  
36
  <dependencies>
37
      <dependency>
38
          <groupId>org.gvsig</groupId>
39
          <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
40
          <type>zip</type>
41
        </dependency>
42
      <dependency>
43
          <groupId>org.gvsig</groupId>
44
          <artifactId>org.gvsig.jproj</artifactId>
45
      </dependency>                  
46
      <dependency>
47
          <groupId>org.gvsig</groupId>
48
          <artifactId>org.gvsig.jproj</artifactId>
49
          <classifier>linux-all-gcc4-i386-dynamic</classifier>
50
          <type>tar.gz</type>
51
      </dependency> 
52
  </dependencies>
53

  
54
  <build>
55
    <plugins>
56
  
57
      <plugin>
58
        <groupId>org.apache.maven.plugins</groupId>
59
        <artifactId>maven-dependency-plugin</artifactId>
60
        <executions>
61
          <execution>
62
          	<id>unpack</id>
63
	        <phase>process-sources</phase>
64
	        <goals>
65
	          <goal>unpack</goal>
66
	        </goals>
67
	        <configuration>
68
	          <artifactItems>
69
	            <artifactItem>
70
		            <groupId>org.gvsig</groupId>
71
		            <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
72
		            <type>zip</type>
73
					      <overWrite>true</overWrite>
74
					      <outputDirectory>target</outputDirectory>
75
	            </artifactItem>
76
	            <artifactItem>
77
		            <groupId>org.gvsig</groupId>
78
		            <artifactId>org.gvsig.jproj</artifactId>
79
		            <classifier>linux-all-gcc4-i386-dynamic</classifier>
80
		            <type>tar.gz</type>
81
					      <overWrite>true</overWrite>
82
					      <outputDirectory>target/native</outputDirectory>
83
	            </artifactItem>
84
	          </artifactItems>
85
	        </configuration>
86
          </execution>
87
        </executions>
88
	  </plugin>
89
  
90
  
91
    </plugins>
92
  </build>
93

  
94
  <profiles>
95
  
96
    <profile>
97
      <id>gvsig-plugin-install-jcrs-linux-x86</id>
98
      <activation>
99
         <os>
100
             <family>unix</family>
101
             <name>linux</name>
102
             <arch>x86</arch>
103
         </os>
104
      </activation>
105
	    <properties>
106
	      <gvsig.install.plugin>true</gvsig.install.plugin>
107
	    </properties>
108
    </profile>
109
    <profile>
110
      <!-- Some platforms report i386 instead of x86 -->
111
      <id>gvsig-plugin-install-jcrs-linux-i386</id>
112
      <activation>
113
         <os>
114
             <family>unix</family>
115
             <name>linux</name>
116
             <arch>i386</arch>
117
         </os>
118
      </activation>
119
      <properties>
120
         <gvsig.install.plugin>true</gvsig.install.plugin>
121
      </properties>
122
    </profile>
123
  </profiles>
124
  
125
</project>
126

  
0 127

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86/buildNumber.properties
1
#Sun Jul 27 22:34:56 EDT 2014
2
buildNumber=2063
0 3

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86/src/main/resources-plugin/autorun.sh
1
#!/bin/sh
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

  
27
#
28
# Plugin autorun
29
# 
30

  
31
PLUGIN_NAME=$(basename "$PLUGIN_FOLDER")
32

  
33
# Proj4 data files
34
export PROJ_LIB="${GVSIG_HOME_FOLDER}/plugins/$PLUGIN_NAME/projlib"
35

  
36
# Temporary fix for number locale related formatting error with proj4.
37
export LC_NUMERIC=C
38

  
39
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PLUGIN_FOLDER/native"
40
GVSIG_NATIVE_LIBS="$GVSIG_NATIVE_LIBS:$PLUGIN_FOLDER/native"
41

  
42

  
43

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86/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>${gvsig.package.info.code}</baseDirectory>
32
  <includeBaseDirectory>true</includeBaseDirectory>
33
  <files>
34
    <file>
35
      <source>target/package.info</source>
36
    </file>
37
  </files>
38

  
39
  <fileSets>
40
    <fileSet>
41
      <directory>target/org.gvsig.projection.app.jcrs.common</directory>
42
      <outputDirectory>.</outputDirectory>
43
      <excludes>
44
      	<exclude>package.info</exclude>
45
      </excludes>
46
    </fileSet>
47
    <fileSet>
48
      <directory>target/native/lib</directory>
49
      <outputDirectory>native</outputDirectory>
50
    </fileSet>
51
    <fileSet>
52
      <directory>src/main/resources-plugin</directory>
53
      <outputDirectory>.</outputDirectory>
54
    </fileSet>
55
  </fileSets>
56

  
57

  
58
  <dependencySets>
59
    <dependencySet>
60
      <useProjectArtifact>false</useProjectArtifact>
61
      <useTransitiveDependencies>false</useTransitiveDependencies>
62
      <outputDirectory>lib</outputDirectory>
63
		<includes>
64
            <include>org.gvsig:org.gvsig.jproj:jar</include>
65
		</includes>
66
    </dependencySet>
67
  </dependencySets>
68

  
69
</assembly>
70

  
71

  
72

  
0 73

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/pom.xml
1
<?xml version="1.0" encoding="UTF-8"?>
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.projection.app.jcrs.common</artifactId>
5
    <packaging>jar</packaging>
6
    <name>CRS: CRS management (Proj4/Geotools based, Native)</name>
7
    <description>
8
        CRS management:
9
        - Set the reference system (CRS) by default, in views, in layers (CRS on the fly).
10
        - Selection from recent CRS, from EPSG, ESRI, IAU2000 data bases and user's defined CRS.
11
        - Create, edit and delete new CRS defined by the user (from an existing CRS, from a wkt string, or from scratch).
12
        - Consult CRS information (datum, projection, proj4 string...)
13
        - Convertion of coordinates (no datum changing)
14
        - Transformation of coordinates (datum changing) from EPSG, manual, recent, compound and grid (.gsb extension)
15
    </description>
16
   
17
    <parent>
18
        <groupId>org.gvsig</groupId>
19
        <artifactId>org.gvsig.projection.app.jcrs</artifactId>
20
        <version>2.1.4</version>
21
    </parent>
22

  
23
    <properties>
24
        <gvsig.package.info.state>testing</gvsig.package.info.state>
25
        <gvsig.package.info.official>true</gvsig.package.info.official>
26
        <gvsig.package.info.operatingSystem>all</gvsig.package.info.operatingSystem>
27
        <gvsig.package.info.architecture>all</gvsig.package.info.architecture>
28
        <gvsig.package.info.dependencies>required: org.gvsig.app.mainplugin -ge 2.1.0-A</gvsig.package.info.dependencies>
29
        <gvsig.package.info.categories />
30
        <gvsig.package.info.poolURL>http://devel.gvsig.org/download/projects/gvsig-jcrs/pool</gvsig.package.info.poolURL>
31
        <gvsig.install.plugin>false</gvsig.install.plugin>
32
        <gvsig.install.plugin.package>false</gvsig.install.plugin.package>    
33
    </properties>
34

  
35
    <dependencies>
36

  
37
        <dependency>
38
            <groupId>org.gvsig</groupId>
39
            <artifactId>org.gvsig.tools.lib</artifactId>
40
            <scope>compile</scope>
41
        </dependency>
42
        <dependency>
43
            <groupId>org.gvsig</groupId>
44
            <artifactId>org.gvsig.andami</artifactId>
45
            <scope>compile</scope>
46
        </dependency>
47
        <dependency>
48
            <groupId>org.gvsig</groupId>
49
            <artifactId>org.gvsig.ui</artifactId>
50
            <scope>compile</scope>
51
        </dependency>
52
        <dependency>
53
            <groupId>net.sf</groupId>
54
            <artifactId>jgridshiftapi</artifactId>
55
            <scope>compile</scope>
56
        </dependency>
57
        <dependency>
58
            <groupId>org.gvsig</groupId>
59
            <artifactId>org.gvsig.projection.cresques.ui</artifactId>
60
            <scope>compile</scope>
61
        </dependency>
62
        <dependency>
63
            <groupId>org.gvsig</groupId>
64
            <artifactId>org.gvsig.projection.api</artifactId>
65
            <scope>compile</scope>
66
        </dependency>
67
        <dependency>
68
            <groupId>org.gvsig</groupId>
69
            <artifactId>org.gvsig.projection.jcrs.lib</artifactId>
70
            <scope>compile</scope>
71
        </dependency>
72
        <dependency>
73
            <groupId>javax.units</groupId>
74
            <artifactId>jsr108</artifactId>
75
            <scope>compile</scope>
76
        </dependency>
77
    
78
    
79
        <dependency>
80
            <groupId>org.geotools</groupId>
81
            <artifactId>gt2-main</artifactId>
82
            <!-- Don't remove version from here, this override version  -->
83
            <!-- in org.gvsig.desktop -->
84
            <version>unknown</version>
85
            <scope>compile</scope>
86
        </dependency>
87

  
88
        <dependency>
89
            <groupId>org.opengis</groupId>
90
            <artifactId>geoapi</artifactId>
91
            <scope>compile</scope>
92
        </dependency>
93
        <dependency>
94
            <groupId>hsqldb</groupId>
95
            <artifactId>hsqldb</artifactId>
96
            <scope>compile</scope>
97
        </dependency>
98
    
99
        <!--  Runtime dependencies -->
100
        <!--  Need to include in the assembly -->
101
        <dependency>
102
            <groupId>org.gvsig</groupId>
103
            <artifactId>org.gvsig.projection.cresques.impl</artifactId>
104
            <scope>runtime</scope>
105
        </dependency>
106
        <!-- 
107
        <dependency>
108
          <groupId>org.gvsig</groupId>
109
          <artifactId>gt2-epsg-esri</artifactId>
110
          <scope>runtime</scope>
111
        </dependency>
112
        <dependency>
113
          <groupId>org.gvsig</groupId>
114
          <artifactId>gt2-epsg-hsql</artifactId>
115
          <scope>runtime</scope>
116
        </dependency>
117
        <dependency>
118
          <groupId>org.gvsig</groupId>
119
          <artifactId>gt2-epsg-iau2000</artifactId>
120
          <scope>runtime</scope>
121
        </dependency>
122
        <dependency>
123
          <groupId>org.gvsig</groupId>
124
          <artifactId>gt2-epsg-usr</artifactId>
125
          <scope>runtime</scope>
126
        </dependency>
127
        -->
128
        <dependency>
129
            <groupId>java3d</groupId>
130
            <artifactId>vecmath</artifactId>
131
            <scope>runtime</scope>
132
        </dependency>
133
    </dependencies>
134

  
135
    <build>
136
        <plugins>
137
            <!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION -->
138
            <plugin>
139
                <groupId>org.apache.maven.plugins</groupId>
140
                <artifactId>maven-surefire-plugin</artifactId>
141
                <configuration>
142
                    <skipTests>true</skipTests>
143
                </configuration>
144
            </plugin>
145
        </plugins>
146
    </build>
147

  
148
</project>
149

  
0 150

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/buildNumber.properties
1
#Sun Jul 27 22:34:55 EDT 2014
2
buildNumber=2063
0 3

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/jgridshift/JGridShiftTest.java
1
package org.gvsig.crs.jgridshift;
2

  
3
import java.io.FileNotFoundException;
4
import java.io.IOException;
5
import java.io.RandomAccessFile;
6

  
7
import au.com.objectix.jgridshift.GridShift;
8
import au.com.objectix.jgridshift.GridShiftFile;
9
import au.com.objectix.jgridshift.SubGrid;
10

  
11
public class JGridShiftTest {
12
	
13
	public static void main(String[] args){
14
		//InputStream fis = null;
15
		RandomAccessFile raf = null;
16
		try {
17
			raf = new RandomAccessFile("/home/dguerrero/Desarrollo-gvSIG/crs/workspace/extJCRS/data/sped2et.gsb","r");
18
			//fis = new FileInputStream("/home/dguerrero/Desarrollo-gvSIG/crs/workspace/extJCRS/data/sped2et.gsb");
19
		} catch (FileNotFoundException e) {
20
			// TODO Auto-generated catch block
21
			e.printStackTrace();
22
		}
23
		GridShiftFile gsf = new GridShiftFile();
24
		try {
25
			gsf.loadGridShiftFile(raf);
26
		} catch (IOException e) {
27
			// TODO Auto-generated catch block
28
			e.printStackTrace();
29
		}
30
		
31
		SubGrid subGrid[] = gsf.getSubGridTree(); 
32
		System.out.println(subGrid.length);
33
		System.out.println(subGrid[0].getMaxLat());
34
		System.out.println(subGrid[0].getMinLat());
35
		System.out.println(subGrid[0].getMaxLon());
36
		System.out.println(subGrid[0].getMinLon());
37
		GridShift gridShift = new GridShift();
38
	}
39

  
40
}
0 41

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/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

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/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

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/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

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/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;
7

  
8
/**
9
 * Test para el interfaz de EPSGPanel
10
 * @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es)
11
 *
12
 */
13
public class EPSGPanelTest {
14

  
15
	public static void main(String[] args){
16
        JFrame frame = new JFrame("UAU200 Panel Test");
17
        frame.addWindowListener(new WindowAdapter() {
18
            public void windowClosing(WindowEvent e) {System.exit(0);}
19
        });
20
        frame.getContentPane().add(new EPSGpanel());
21
        frame.setLocation(300,0);
22
        frame.pack();
23
        frame.setVisible(true);
24
   
25
}
26

  
27
}
0 28

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/panels/IAU2000PanelTest.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
 * Test para el interfaz de IAU200Panel
9
 * @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es)
10
 *
11
 */
12
public class IAU2000PanelTest {
13

  
14
	public static void main(String[] args) {
15

  
16
        JFrame frame = new JFrame("UAU200 Panel Test");
17
        //cerrar el formulario
18
        frame.addWindowListener(new WindowAdapter() {
19
            public void windowClosing(WindowEvent e) {System.exit(0);}
20
        });
21
        frame.getContentPane().add(new IAU2000panel());
22
        frame.setLocation(300,0);
23
        frame.pack();
24
        frame.setVisible(true);
25
   
26
}
27

  
28
}
0 29

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/panels/ESRIPanelTest.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 ESRIPanel
11
 * @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es)
12
 *
13
 */
14
public class ESRIPanelTest {
15

  
16

  
17
	public static void main(String[] args){
18
		
19
			JFrame frame = new JFrame("ESRI Panel Test");
20
	         //cerrar el formulario
21
	         frame.addWindowListener(new WindowAdapter() {
22
	             public void windowClosing(WindowEvent e) {System.exit(0);}
23
	         });
24
	         frame.getContentPane().add(new ESRIpanel());
25
	         frame.setLocation(300,0);
26
	         frame.pack();
27
	         frame.setVisible(true);
28
	    
29
	}
30

  
31
}
0 32

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/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

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/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

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/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

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/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

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/main/assembly/gvsig-plugin-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

  
5
    Copyright (C) 2007-2013 gvSIG Association.
6

  
7
    This program is free software; you can redistribute it and/or
8
    modify it under the terms of the GNU General Public License
9
    as published by the Free Software Foundation; either version 3
10
    of the License, or (at your option) any later version.
11

  
12
    This program is distributed in the hope that it will be useful,
13
    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
    GNU General Public License for more details.
16

  
17
    You should have received a copy of the GNU General Public License
18
    along with this program; if not, write to the Free Software
19
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
    MA  02110-1301, USA.
21

  
22
    For any additional information, do not hesitate to contact us
23
    at info AT gvsig.com, or visit our website www.gvsig.com.
24

  
25
-->
26
<assembly>
27
  <id>gvsig-plugin-package</id>
28
  <formats>
29
    <format>zip</format>
30
  </formats>
31
  <baseDirectory>${project.artifactId}</baseDirectory>
32
  <includeBaseDirectory>true</includeBaseDirectory>
33
  <files>
34
    <file>
35
      <source>target/${project.artifactId}-${project.version}.jar</source>
36
      <outputDirectory>lib</outputDirectory>
37
    </file>
38
    <file>
39
      <source>target/package.info</source>
40
    </file>
41
  </files>
42

  
43
  <fileSets>
44
    <fileSet>
45
      <directory>src/main/resources-plugin</directory>
46
      <outputDirectory>.</outputDirectory>
47
    </fileSet>
48
  </fileSets>
49

  
50

  
51
  <dependencySets>
52
    <dependencySet>
53
      <useProjectArtifact>false</useProjectArtifact>
54
      <useTransitiveDependencies>false</useTransitiveDependencies>
55
      <outputDirectory>lib</outputDirectory>
56
		<includes>
57
            <include>org.gvsig:org.gvsig.projection.jcrs.lib</include>
58
            <include>net.sf:jgridshiftapi</include>
59
            <include>org.geotools:gt2-main:jar:unknown</include>
60
            <include>hsqldb:hsqldb</include>
61
            <include>javax.units:jsr108</include>
62
            <include>java3d:vecmath</include>
63
            <include>org.opengis:geoapi</include>
64
            
65
            <include>org.gvsig:org.gvsig.projection.api</include>
66
            <include>org.gvsig:org.gvsig.projection.cresques.ui</include>
67
            <include>org.gvsig:org.gvsig.projection.cresques.impl</include>
68
		</includes>
69
    </dependencySet>
70
  </dependencySets>
71

  
72
</assembly>
73

  
74

  
75

  
0 76

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.4/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/main/java/org/gvsig/crs/InitialWarningExtension.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41

  
42
/* CVS MESSAGES:
43
*
44
* $Id: InitialWarningExtension.java 8765 2006-11-15 00:08:29Z jjdelcerro $
45
* $Log$
46
* Revision 1.3.4.1  2006-11-15 00:08:08  jjdelcerro
47
* *** empty log message ***
48
*
49
* Revision 1.4  2006/10/02 13:52:34  jaume
50
* organize impots
51
*
52
* Revision 1.3  2006/08/29 07:56:27  cesar
53
* Rename the *View* family of classes to *Window* (ie: SingletonView to SingletonWindow, ViewInfo to WindowInfo, etc)
54
*
55
* Revision 1.2  2006/08/29 07:13:53  cesar
56
* Rename class com.iver.andami.ui.mdiManager.View to com.iver.andami.ui.mdiManager.IWindow
57
*
58
* Revision 1.1  2006/05/25 16:27:21  jaume
59
* *** empty log message ***
60
*
61
*
62
*/
63
package org.gvsig.crs;
64

  
65
import java.awt.Color;
66
import java.awt.Window;
67

  
68
import javax.swing.JButton;
69
import javax.swing.JCheckBox;
70
import javax.swing.JLabel;
71
import javax.swing.JPanel;
72
import javax.swing.JWindow;
73
import javax.swing.border.TitledBorder;
74

  
75
import org.gvsig.andami.PluginServices;
76
import org.gvsig.andami.plugins.Extension;
77
import org.gvsig.andami.ui.mdiManager.WindowInfo;
78

  
79

  
80
public class InitialWarningExtension extends Extension {
81
//	public static Preferences fPrefs = Preferences.userRoot().node( "gvsig.initial_warkning" );
82
//	private boolean show = fPrefs.getBoolean( "show_panel", true);
83
	private DlgWaring dlgWarning;
84
    /**
85
	 * @see org.gvsig.andami.plugins.IExtension#isEnabled()
86
	 */
87
	public boolean isEnabled() {
88
		return true;
89
	}
90

  
91
	/**
92
	 * @see com.iver.mdiApp.plugins.IExtension#isVisible()
93
	 */
94
	public boolean isVisible() {
95
		return true;
96
	}
97

  
98
	/**
99
	 * @see org.gvsig.andami.plugins.IExtension#initialize()
100
	 */
101
	public void initialize() {
102
		dlgWarning = new DlgWaring();
103
		dlgWarning.setText(PluginServices.getText(this, "initial_jcrs_warning"));
104
		dlgWarning.setVisible(true);
105
	}
106

  
107
	/**
108
	 * @see org.gvsig.andami.plugins.IExtension#execute(java.lang.String)
109
	 */
110
	public void execute(String actionCommand) {
111
	}
112
    
113
	private class DlgWaring extends JWindow{
114

  
115
		private JButton btnOk = null;
116
		private JCheckBox chkBoxShowAgain = null;
117
		private JLabel lblText = null;
118
		private JPanel panel=null;
119
		private JPanel panel2;
120
		/**
121
		 * This is the default constructor
122
		 */
123
		public DlgWaring() {
124
			super((Window)PluginServices.getMainFrame());
125
			Window window=(Window)PluginServices.getMainFrame();
126
			setLocation(window.getWidth()/2+window.getX()-150,window.getHeight()/2+window.getY()-150);
127
			initialize();
128
			this.setAlwaysOnTop(true);
129
		}
130

  
131
		public void setText(String string) {
132
			lblText.setText(string);
133
		}
134

  
135
		/**
136
		 * This method initializes this
137
		 *
138
		 * @return void
139
		 */
140
		private void initialize() {
141
			panel=new JPanel();
142
			panel.setBackground(Color.black);
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff