Revision 21037

View differences:

org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.mac_10.5/buildNumber.properties
1
#Fri Mar 28 13:59:39 CET 2014
2
buildNumber=12
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.mac_10.5/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.raster.app.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.jpotrace:jar</include>
65
		</includes>
66
    </dependencySet>
67
  </dependencySets>
68

  
69
</assembly>
70

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.mac_10.5/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
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PLUGIN_FOLDER/native"
34
GVSIG_NATIVE_LIBS="$GVSIG_NATIVE_LIBS:$PLUGIN_FOLDER/native"
35

  
36

  
37

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.mac_10.5/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.raster.app.mac_10.5</artifactId>
5
  <packaging>jar</packaging>
6
   
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.raster.app</artifactId>
10
    <version>2.2.4-SNAPSHOT</version>
11
	</parent>
12

  
13
  <properties>
14
    <gvsig.package.info.operatingSystem>mac_10.5</gvsig.package.info.operatingSystem>
15
    <gvsig.package.info.architecture>x86_64</gvsig.package.info.architecture>
16
    
17
    <jpotrace.classifier>mac-10.5-gcc4-universal-dynamic</jpotrace.classifier>
18
    <jpotrace.version>2.0.0</jpotrace.version>
19
  </properties>
20

  
21
  <dependencyManagement>
22
      <dependencies>
23
        <dependency>
24
          <groupId>org.gvsig</groupId>
25
          <artifactId>org.gvsig.jpotrace</artifactId>
26
          <classifier>${jpotrace.classifier}</classifier>
27
          <version>${jpotrace.version}</version>
28
          <type>tar.gz</type>
29
        </dependency> 
30
    </dependencies>
31
  </dependencyManagement>
32

  
33
  <dependencies>
34
        <dependency>
35
          <groupId>org.gvsig</groupId>
36
          <artifactId>org.gvsig.raster.app.common</artifactId>
37
          <type>zip</type>
38
        </dependency>
39
        <dependency>
40
          <groupId>org.gvsig</groupId>
41
          <artifactId>org.gvsig.jpotrace</artifactId>
42
          <scope>compile</scope>
43
        </dependency>
44
        <dependency>
45
          <groupId>org.gvsig</groupId>
46
          <artifactId>org.gvsig.jpotrace</artifactId>
47
          <classifier>${jpotrace.classifier}</classifier>
48
          <version>${jpotrace.version}</version>
49
          <type>tar.gz</type>
50
          <scope>runtime</scope>
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.raster.app.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.jpotrace</artifactId>
79
                <classifier>${jpotrace.classifier}</classifier>
80
                <version>${jpotrace.version}</version>
81
		            <type>tar.gz</type>
82
					      <overWrite>true</overWrite>
83
					      <outputDirectory>target/native</outputDirectory>
84
	            </artifactItem>
85
	          </artifactItems>
86
	        </configuration>
87
          </execution>
88
        </executions>
89
	  </plugin>
90
  
91
  
92
    </plugins>
93
  </build>
94

  
95
  
96
</project>
97

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.mainplugin/buildNumber.properties
1
#Sun Jul 16 23:14:55 CEST 2023
2
buildNumber=258
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

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

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

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

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

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

  
25
-->
26
<assembly>
27
  <id>gvsig-plugin-package</id>
28
  <formats>
29
    <format>zip</format>
30
  </formats>
31
  <baseDirectory>${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.raster.app.common</directory>
42
      <outputDirectory>.</outputDirectory>
43
      <excludes>
44
      	<exclude>package.info</exclude>
45
      </excludes>
46
    </fileSet>
47
    <fileSet>
48
      <directory>src/main/resources-plugin</directory>
49
      <outputDirectory>.</outputDirectory>
50
    </fileSet>
51
  </fileSets>
52

  
53
<!--
54
  <dependencySets>
55
    <dependencySet>
56
      <useProjectArtifact>false</useProjectArtifact>
57
      <useTransitiveDependencies>false</useTransitiveDependencies>
58
      <outputDirectory>lib</outputDirectory>
59
		<includes>
60
		</includes>
61
    </dependencySet>
62
  </dependencySets>
63
-->
64
</assembly>
65

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.mainplugin/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.raster.app.mainplugin</artifactId>
5
    <packaging>jar</packaging>
6
  	<name>${project.artifactId} (old)</name>
7

  
8
    <parent>
9
        <groupId>org.gvsig</groupId>
10
        <artifactId>org.gvsig.raster.app</artifactId>
11
        <version>2.2.249</version>
12
    </parent>
13

  
14
    <dependencies>
15
        <dependency>
16
            <groupId>org.gvsig</groupId>
17
            <artifactId>org.gvsig.raster.app.common</artifactId>
18
            <type>zip</type>
19
        </dependency>
20

  
21
    </dependencies>
22

  
23
    <build>
24
        <plugins>
25

  
26
            <plugin>
27
                <groupId>org.apache.maven.plugins</groupId>
28
                <artifactId>maven-dependency-plugin</artifactId>
29
                <executions>
30
                    <execution>
31
                        <id>unpack</id>
32
                        <phase>process-sources</phase>
33
                        <goals>
34
                            <goal>unpack</goal>
35
                        </goals>
36
                        <configuration>
37
                            <artifactItems>
38
                                <artifactItem>
39
                                    <groupId>org.gvsig</groupId>
40
                                    <artifactId>org.gvsig.raster.app.common</artifactId>
41
                                    <type>zip</type>
42
                                    <overWrite>true</overWrite>
43
                                    <outputDirectory>target</outputDirectory>
44
                                </artifactItem>
45
                            </artifactItems>
46
                        </configuration>
47
                    </execution>
48
                </executions>
49
            </plugin>
50

  
51

  
52
        </plugins>
53
    </build>
54

  
55
    <properties>
56
        <gvsig.install.plugin>true</gvsig.install.plugin>
57
        <gvsig.package.info.name>Raster base support</gvsig.package.info.name>    
58
    </properties>
59

  
60
</project>
61

  
0 62

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.fedora.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.raster.app.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.jpotrace:jar</include>
65
		</includes>
66
    </dependencySet>
67
  </dependencySets>
68

  
69
</assembly>
70

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.fedora.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
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PLUGIN_FOLDER/native"
34
GVSIG_NATIVE_LIBS="$GVSIG_NATIVE_LIBS:$PLUGIN_FOLDER/native"
35

  
36

  
37

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.fedora.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.raster.app.fedora.x86</artifactId>
5
  <packaging>jar</packaging>
6
   
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.raster.app</artifactId>
10
    <version>2.2.4-SNAPSHOT</version>
11
	</parent>
12

  
13
  <properties>
14
    <gvsig.package.info.operatingSystem>fedora</gvsig.package.info.operatingSystem>
15
    <gvsig.package.info.architecture>x86</gvsig.package.info.architecture>
16
    
17
    <native.classifier>fedora11-i586-dynamic</native.classifier>
18
  </properties>
19

  
20
  <dependencyManagement>
21
      <dependencies>
22
        <dependency>
23
          <groupId>org.gvsig</groupId>
24
          <artifactId>org.gvsig.jpotrace</artifactId>
25
          <classifier>${native.classifier}</classifier>
26
          <type>tar.gz</type>
27
          <version>2.0.0-SNAPSHOT</version>
28
        </dependency> 
29
    </dependencies>
30
  </dependencyManagement>
31

  
32
  <dependencies>
33
        <dependency>
34
          <groupId>org.gvsig</groupId>
35
          <artifactId>org.gvsig.raster.app.common</artifactId>
36
          <type>zip</type>
37
        </dependency>
38
        <dependency>
39
          <groupId>org.gvsig</groupId>
40
          <artifactId>org.gvsig.jpotrace</artifactId>
41
          <scope>compile</scope>
42
        </dependency>
43
        <dependency>
44
          <groupId>org.gvsig</groupId>
45
          <artifactId>org.gvsig.jpotrace</artifactId>
46
          <classifier>${native.classifier}</classifier>
47
          <type>tar.gz</type>
48
          <scope>runtime</scope>
49
        </dependency>
50
  </dependencies>
51

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

  
92
  
93
</project>
94

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.fedora.x86/buildNumber.properties
1
#Fri Mar 28 13:59:39 CET 2014
2
buildNumber=12
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.lin.x86/buildNumber.properties
1
#Thu Oct 08 22:02:19 CEST 2015
2
buildNumber=26
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.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.raster.app.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.jpotrace:jar</include>
65
		</includes>
66
    </dependencySet>
67
  </dependencySets>
68

  
69
</assembly>
70

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.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
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PLUGIN_FOLDER/native"
34
GVSIG_NATIVE_LIBS="$GVSIG_NATIVE_LIBS:$PLUGIN_FOLDER/native"
35

  
36

  
37

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.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.raster.app.lin.x86</artifactId>
5
  <packaging>jar</packaging>
6
   
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.raster.app</artifactId>
10
    <version>2.2.22-SNAPSHOT</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
    
17
    <jpotrace.classifier>linux-all-gcc4-i386-dynamic</jpotrace.classifier>
18
    <jpotrace.version>2.0.0</jpotrace.version>
19
  </properties>
20

  
21
  <dependencyManagement>
22
      <dependencies>
23
        <dependency>
24
          <groupId>org.gvsig</groupId>
25
          <artifactId>org.gvsig.jpotrace</artifactId>
26
          <classifier>${jpotrace.classifier}</classifier>
27
          <version>${jpotrace.version}</version>
28
          <type>tar.gz</type>
29
        </dependency> 
30
    </dependencies>
31
  </dependencyManagement>
32

  
33
  <dependencies>
34
        <dependency>
35
          <groupId>org.gvsig</groupId>
36
          <artifactId>org.gvsig.raster.app.common</artifactId>
37
          <type>zip</type>
38
        </dependency>
39
        <dependency>
40
          <groupId>org.gvsig</groupId>
41
          <artifactId>org.gvsig.jpotrace</artifactId>
42
          <scope>compile</scope>
43
        </dependency>
44
        <dependency>
45
          <groupId>org.gvsig</groupId>
46
          <artifactId>org.gvsig.jpotrace</artifactId>
47
          <classifier>${jpotrace.classifier}</classifier>
48
          <version>${jpotrace.version}</version>
49
          <type>tar.gz</type>
50
          <scope>runtime</scope>
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.raster.app.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.jpotrace</artifactId>
79
                <classifier>${jpotrace.classifier}</classifier>
80
                <version>${jpotrace.version}</version>
81
		            <type>tar.gz</type>
82
					      <overWrite>true</overWrite>
83
					      <outputDirectory>target/native</outputDirectory>
84
	            </artifactItem>
85
	          </artifactItems>
86
	        </configuration>
87
          </execution>
88
        </executions>
89
	  </plugin>
90
  
91
  
92
    </plugins>
93
  </build>
94

  
95
  <!-- 
96
  The profiles only configure the automatic deploy of gvSIG plugin in the gvSIG
97
  configured in HOME/.gvsig-devel.properties
98
  -->
99
  <profiles>
100
  
101
    <profile>
102
      <id>gvsig-plugin-install-raster-linux-x86</id>
103
      <activation>
104
         <os>
105
             <family>unix</family>
106
             <name>linux</name>
107
             <arch>x86</arch>
108
         </os>
109
      </activation>
110
	    <properties>
111
	      <gvsig.install.plugin>true</gvsig.install.plugin>
112
	    </properties>
113
    </profile>
114

  
115
    <profile>
116
      <id>gvsig-plugin-install-raster-linux-i386</id>
117
      <activation>
118
         <os>
119
             <family>unix</family>
120
             <name>linux</name>
121
             <arch>i386</arch>
122
         </os>
123
      </activation>
124
      <properties>
125
         <gvsig.install.plugin>true</gvsig.install.plugin>
126
      </properties>
127
    </profile>
128

  
129
  </profiles>
130
  
131
</project>
132

  
0 133

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.common/buildNumber.properties
1
#Sun Jul 16 23:14:55 CEST 2023
2
buildNumber=259
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.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.raster.swing.api:jar</include>
58
		    <include>org.gvsig:org.gvsig.raster.swing.impl:jar</include>
59
		    <include>org.gvsig:org.gvsig.raster.cache.lib.api:jar</include>
60
		    <include>org.gvsig:org.gvsig.raster.cache.lib.impl:jar</include>
61
		    <include>org.gvsig:org.gvsig.raster.lib.api:jar</include>
62
		    <include>org.gvsig:org.gvsig.raster.lib.impl:jar</include>
63
		    <include>org.gvsig:org.gvsig.raster.algorithm:jar</include>
64
		    <include>org.gvsig:org.gvsig.raster.fmap:jar</include>
65
		    <!-- <include>org.gvsig:org.gvsig.timesupport.lib.api:jar</include>
66
		    <include>org.gvsig:org.gvsig.timesupport.lib.impl:jar</include>-->
67
		    <include>org.joda:joda-time:jar</include>		
68
		  </includes>
69
    </dependencySet>
70
  </dependencySets>
71

  
72
</assembly>
73

  
74

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.common/src/main/java/org/gvsig/raster/mainplugin/RasterMainPluginExtension.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
package org.gvsig.raster.mainplugin;
23

  
24
import org.gvsig.andami.IconThemeHelper;
25
import org.gvsig.andami.plugins.Extension;
26
import org.gvsig.i18n.Messages;
27
import org.gvsig.raster.mainplugin.properties.RasterPropertiesTocMenuEntry;
28
import org.gvsig.tools.ToolsLocator;
29
import org.gvsig.tools.extensionpoint.ExtensionPoint;
30
import org.gvsig.tools.extensionpoint.ExtensionPointManager;
31

  
32

  
33
/**
34
 * Main plugin for raster
35
 *
36
 * @author Nacho Brodin (nachobrodin@gmail.com)
37
 */
38
public class RasterMainPluginExtension extends Extension {
39

  
40
	public void initialize() {
41
        Messages.addResourceFamily("org.gvsig.raster.mainplugin.i18n.text",
42
        		RasterMainPluginExtension.class.getClassLoader(),
43
        		RasterMainPluginExtension.class.getClass().getName()); 
44
        
45
        IconThemeHelper.registerIcon(null, "map-ok-ico", this);
46
        IconThemeHelper.registerIcon("action", "layer-properties-raster", this);
47
        
48
		ExtensionPointManager extensionPoints = ToolsLocator.getExtensionPointManager();
49
		ExtensionPoint point = null;
50
		
51
		//Registro punto de extensi?n del cuadro de propiedades
52
		if (!extensionPoints.has("RasterSEPropertiesDialog")) {
53
			point = extensionPoints.add("RasterSEPropertiesDialog");
54
			point.setDescription("Raster Properties registrable panels (register instances of javax.swing.JPanel)");
55
		}
56

  
57
		//Entradas del men? del toc de raster
58
		if (!extensionPoints.has("View_TocActions")) {
59
			point = extensionPoints.add("View_TocActions");
60
		}
61
		point = extensionPoints.get("View_TocActions");
62
		point.append("RasterSEProperties", "Raster Properties", RasterPropertiesTocMenuEntry.getSingleton());
63
		
64
		//A?ade las propiedades de raster a la barra de herramientas. Si nadie registra paneles estar? vacio
65
		//cuando se abra
66
		
67
		point = extensionPoints.add("GenericToolBarMenu");
68
		point.append("RasterProperties", "", RasterPropertiesTocMenuEntry.getSingleton());
69
	}
70
	
71
	public void execute(String actionCommand) {
72
		
73
	}
74

  
75
	public boolean isEnabled() {
76
		return false;
77
	}
78

  
79
	public boolean isVisible() {
80
		return false;
81
	}
82

  
83
}
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.common/src/main/java/org/gvsig/raster/mainplugin/toolbar/GenericToolBarPanel.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
package org.gvsig.raster.mainplugin.toolbar;
23

  
24
import java.awt.Insets;
25
import java.awt.event.ActionEvent;
26
import java.awt.event.ActionListener;
27
import java.awt.event.ItemEvent;
28
import java.awt.event.ItemListener;
29
import java.awt.event.MouseEvent;
30
import java.awt.event.MouseListener;
31
import java.util.ArrayList;
32
import java.util.Iterator;
33
import java.util.List;
34

  
35
import javax.swing.JButton;
36
import javax.swing.JToolBar;
37

  
38
import org.gvsig.fmap.mapcontext.layers.FLayer;
39
import org.gvsig.fmap.mapcontext.layers.FLayers;
40
import org.gvsig.gui.beans.comboboxconfigurablelookup.DefaultComboBoxConfigurableLookUpModel;
41
import org.gvsig.gui.beans.comboboxconfigurablelookup.JComboBoxConfigurableLookUp;
42
import org.gvsig.gui.beans.controls.IControl;
43
import org.gvsig.gui.beans.controls.combobutton.ComboButton;
44
import org.gvsig.gui.beans.controls.combobutton.ComboButtonEvent;
45
import org.gvsig.gui.beans.controls.combobutton.ComboButtonListener;
46
import org.gvsig.tools.ToolsLocator;
47
import org.gvsig.tools.extensionpoint.ExtensionPoint;
48
import org.gvsig.tools.extensionpoint.ExtensionPointManager;
49
/**
50
 * Componente que contiene los objetos visuales de la barra de herramientas
51
 * generica
52
 *
53
 * @author BorSanZa - Borja S?nchez Zamorano 
54
 */
55
public class GenericToolBarPanel extends JToolBar implements ComboButtonListener, ActionListener, MouseListener, ItemListener, IControl {
56
	private static final long serialVersionUID = -4382962282970490523L;
57
	private JComboBoxConfigurableLookUp jCBCLU = null;
58
	private ComboButton buttonGroup = new ComboButton();
59
	private ComboButton buttonMenu = new ComboButton();
60
	private FLayers lastLayers = null;
61

  
62
	public GenericToolBarPanel() {
63
		super("GenericToolBarPanel");
64
		initialize();
65
	}
66

  
67
	/**
68
	 * Especifica que las capas de la vista han cambiado.
69
	 * @param layers
70
	 */
71
	public void setLayers(FLayers layers) {
72
		lastLayers = layers;
73

  
74
		getComboBoxConfigurableLookUp().setBlockPopupHided(true);
75
		getComboBoxConfigurableLookUp().removeAllItems();
76

  
77
		if(layers != null) {
78
			List<FLayer> lyrs = getLayerList(layers, null);
79
			for (int i = 0; i < lyrs.size(); i++)
80
				getComboBoxConfigurableLookUp().addItem(((FLayer)lyrs.get(i)).getName());
81

  
82
			if (layers.getActives().length > 0)
83
				getComboBoxConfigurableLookUp().setSelectedItem(layers.getActives()[0].getName());
84
			else if (layers.getLayersCount() > 0)
85
				getComboBoxConfigurableLookUp().setSelectedItem(layers.getLayer(0).getName());
86
		}
87
		reloadSubMenu();
88
		getComboBoxConfigurableLookUp().setBlockPopupHided(false);
89
	}
90
	
91
	/**
92
	 * Devuelve un combo de busqueda de items.
93
	 * @return
94
	 */
95
	private JComboBoxConfigurableLookUp getComboBoxConfigurableLookUp() {
96
		if (jCBCLU == null) {
97
			jCBCLU = new JComboBoxConfigurableLookUp();
98
			jCBCLU.setOnlyOneColorOnText(true);
99
			jCBCLU.setPrototypeDisplayValue(" ");
100
			if (jCBCLU.getModel() instanceof DefaultComboBoxConfigurableLookUpModel) {
101
				((DefaultComboBoxConfigurableLookUpModel) jCBCLU.getModel()).setShowAllItemsInListBox(false);
102
				((DefaultComboBoxConfigurableLookUpModel) jCBCLU.getModel()).setLookUpAgent(new BinarySearch());
103
				((DefaultComboBoxConfigurableLookUpModel) jCBCLU.getModel()).setCaseSensitive(false);
104
				jCBCLU.setToForceSelectAnItem(true);
105
				jCBCLU.setDisplayAllItemsWithArrowButton(true);
106
			}
107
			jCBCLU.addActionListener(this);
108
		}
109
		return jCBCLU;
110
	}
111

  
112
	private void initialize() {
113
		buttonGroup.addComboButtonClickedListener(this);
114
		buttonGroup.setName("Menu principal");
115
		buttonGroup.setMargin(new Insets(0, 0, 0, 0));
116
		buttonGroup.setAlwaysMenuOnClick(true);
117
		reloadMenuGroup();
118
		add(buttonGroup);
119

  
120
		buttonMenu.addComboButtonClickedListener(this);
121
		buttonMenu.setName("Submenus");
122
		buttonMenu.addMouseListener(this);
123
		buttonMenu.setMargin(new Insets(0, 0, 0, 0));
124
		reloadMenuGroup();
125
		add(buttonMenu);
126

  
127
		add(getComboBoxConfigurableLookUp());
128
		this.setRollover(true);
129
	}
130

  
131
	/**
132
	 * Recarga los items del menu global dejando seleccionado el item que habia
133
	 * previamente, en caso de que exista
134
	 */
135
	public void reloadMenuGroup() {
136
		FLayer[] layers = new FLayer[] { getLayerSelected() };
137
		ButtonItems buttonItems = new ButtonItems(buttonGroup, layers);
138

  
139
		ExtensionPointManager extensionPoints = ToolsLocator.getExtensionPointManager();
140
		ExtensionPoint point = extensionPoints.get("GenericToolBarGroup");
141
		Iterator<?> iterator = point.iterator();
142
		while (iterator.hasNext()) {
143
			ExtensionPoint.Extension extension = (ExtensionPoint.Extension) iterator.next();
144
			Object object;
145
			try {
146
				object = extension.create();
147
			} catch (Exception e) {
148
				throw new RuntimeException(e);
149
			}
150
			if (object instanceof IGenericToolBarMenuItem)
151
				buttonItems.addButton((IGenericToolBarMenuItem) object, extension.getName());
152
		}
153
		buttonItems.refresh();
154
		reloadSubMenu();
155
	}
156

  
157
	/**
158
	 * Recarga los items del submenu dejando seleccionado el item que habia
159
	 * previamente, en caso de que exista
160
	 */
161
	public void reloadSubMenu() {
162
		FLayer[] layers = new FLayer[] { getLayerSelected() };
163
		ButtonItems buttonItems = new ButtonItems(buttonMenu, layers);
164
		ExtensionPointManager extensionPoints = ToolsLocator.getExtensionPointManager();
165
		ExtensionPoint point = extensionPoints.add("GenericToolBarMenu");
166
		Iterator<?> iterator = point.iterator();
167
		while (iterator.hasNext()) {
168
			ExtensionPoint.Extension entry = (ExtensionPoint.Extension) iterator.next();
169
			Object object;
170
			try {
171
				object = entry.create();
172
			} catch (Exception e) {
173
				throw new RuntimeException(e);
174
			}
175
			if (object instanceof IGenericToolBarMenuItem) {
176
				IGenericToolBarMenuItem item = (IGenericToolBarMenuItem) object;
177
				if (!buttonGroup.getActionCommand().equals(item.getGroup()))
178
					continue;
179
				buttonItems.addButton(item, entry.getName());
180
			}
181
		}
182
		buttonItems.refresh();
183
	}
184

  
185
	/**
186
	 * Devuelve el layer seleccionado en el combobox
187
	 * @return
188
	 */
189
	public FLayer getLayerSelected() {
190
		if (lastLayers == null)
191
			return null;
192
		List<FLayer> lyrs = getLayerList(lastLayers, null);
193
		for (int i = 0; i < lyrs.size(); i++)
194
			if (((FLayer)lyrs.get(i)).getName().equals(getComboBoxConfigurableLookUp().getEditor().getItem()))
195
				return (FLayer)lyrs.get(i);
196
		return null;
197
	}
198
	
199
	public static List<FLayer> getLayerList(FLayers srcLyrs, List<FLayer> destLyrs) {
200
		if(srcLyrs == null)
201
			return null;
202
		if(destLyrs == null)
203
			destLyrs = new ArrayList<FLayer>();
204
		for (int i = 0; i < srcLyrs.getLayersCount(); i++) {
205
			if(srcLyrs.getLayer(i) instanceof FLayers)
206
				destLyrs = getLayerList((FLayers)srcLyrs.getLayer(i), destLyrs);
207
			else 
208
				destLyrs.add(srcLyrs.getLayer(i));
209
		}
210
		return destLyrs;
211
	}
212

  
213
	public void actionPerformed(ActionEvent e) {
214
		if (e.getSource() == getComboBoxConfigurableLookUp()) {
215
//			selectLayerInTOC(lastLayers, (String) getComboBoxConfigurableLookUp().getSelectedItem());
216
		}
217
	}
218

  
219
	public void actionComboButtonClicked(ComboButtonEvent e) {
220
		if (e.getSource() == buttonGroup) {
221
			reloadSubMenu();
222
			return;
223
		}
224
		if (e.getSource() == buttonMenu) {
225
			ExtensionPointManager extensionPoints =ToolsLocator.getExtensionPointManager();
226
			ExtensionPoint point=extensionPoints.add("GenericToolBarMenu");
227
			Iterator<?> iterator = point.iterator();
228
			while (iterator.hasNext()) {
229
				ExtensionPoint.Extension entry = (ExtensionPoint.Extension) iterator
230
						.next();
231
				if (!entry.getName().equals(
232
						((JButton) e.getSource()).getActionCommand()))
233
					continue;
234
				Object object;
235
				try {
236
					object = entry.create();
237
				} catch (Exception e1) {
238
					// TODO Auto-generated catch block
239
					throw new RuntimeException(e1);
240
				}
241
				if (object instanceof IGenericToolBarMenuItem) {
242
					IGenericToolBarMenuItem item = (IGenericToolBarMenuItem) object;
243

  
244
					FLayer[] layers = new FLayer[] { getLayerSelected() };
245
					if (!item.isVisible(null, layers))
246
						continue;
247
					if (!item.isEnabled(null, layers))
248
						continue;
249

  
250
					if (getLayerSelected() != null) {
251
						item.execute(null, new FLayer[] { getLayerSelected() });
252
					} else
253
						item.execute(null, null);
254
					reloadSubMenu();
255
					return;
256
				}
257
			}
258
			return;
259
		}
260
	}
261

  
262
	/**
263
	 * Selecciona una capa en el TOC
264
	 * @param layers
265
	 * @param nameLayer
266
	 */
267
//	private void selectLayerInTOC(FLayers layers, String nameLayer) {
268
//		if (layers == null)
269
//			return;
270
//		for (int i = 0; i < layers.getLayersCount(); i++) {
271
//			if (layers.getLayer(i) instanceof FLayers) {
272
//				selectLayerInTOC((FLayers) layers.getLayer(i), nameLayer);
273
//			} else {
274
//				if (layers.getLayer(i) instanceof FLayer) {
275
//					FLayer layer = ((FLayer) layers.getLayer(i));
276
//					if (layer.getName().equals(nameLayer) && !layer.isActive()) {
277
//						layer.setActive(true);
278
//					}
279
//				}
280
//			}
281
//		}
282
//	}
283

  
284
	/**
285
	 * Recargo el menu cada vez que entra el raton en el boton, para ahorrar tiempo en
286
	 * la visualizacion del mismo
287
	 */
288
	public void mouseEntered(MouseEvent e) {
289
		this.reloadSubMenu();
290
	}
291

  
292
	public void itemStateChanged(ItemEvent e) {
293
//		if (e.getStateChange() != ItemEvent.SELECTED)
294
//			return;
295
//
296
//		FLayer layer = getLayerSelected();
297
//
298
//		if (layer == null)
299
//			return;
300
//
301
//		FLayers layers = lastLayers;
302
//		for(int i = 0; i < layers.getLayersCount(); i++)
303
//			layers.getLayer(i).setActive(false);
304
//
305
//		layer.setActive(true);
306
//		View view = (View) PluginServices.getMDIManager().getActiveWindow();
307
//		JScrollBar verticalBar = view.getTOC().getJScrollPane().getVerticalScrollBar();
308
//		double widthPerEntry = verticalBar.getMaximum() / layer.getMapContext().getLayers().getLayersCount();
309
//		verticalBar.setValue((int)widthPerEntry * (layer.getMapContext().getLayers().getLayersCount() - pos - 1));
310
	}
311

  
312
	public void mouseClicked(MouseEvent e) {}
313
	public void mouseExited(MouseEvent e) {}
314
	public void mousePressed(MouseEvent e) {}
315
	public void mouseReleased(MouseEvent e) {}
316

  
317
	public void addActionListener(ActionListener listener) {
318
		
319
	}
320

  
321
	public Object getValue() {
322
		return null;
323
	}
324

  
325
	public void removeActionListener(ActionListener listener) {
326
		
327
	}
328

  
329
	public Object setValue(Object value) {
330
		return null;
331
	}
332

  
333
}
org.gvsig.raster/tags/org.gvsig.raster-2.2.249/org.gvsig.raster.app/org.gvsig.raster.app.common/src/main/java/org/gvsig/raster/mainplugin/toolbar/GenericToolBarMenuItem.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
package org.gvsig.raster.mainplugin.toolbar;
23

  
24
import java.util.Map;
25

  
26
import javax.swing.Icon;
27

  
28
import org.gvsig.andami.IconThemeHelper;
29
import org.gvsig.app.project.documents.view.toc.ITocItem;
30
import org.gvsig.fmap.mapcontext.layers.FLayer;
31
import org.gvsig.tools.extensionpoint.ExtensionBuilder;
32

  
33
/**
34
 * Clase que implementa un IGenericToolBarMenuItem para evitar tener que crear
35
 * clases para items de menu sencillas
36
 *
37
 * @version 06/02/2008
38
 * @author BorSanZa - Borja S?nchez Zamorano (borja.sanchez@iver.es)
39
 */
40
public class GenericToolBarMenuItem implements IGenericToolBarMenuItem, ExtensionBuilder {
41
	private String text  = "";
42
	private int    order = 0;
43
	private int    groupOrder = 0;
44
	private Icon   icon  = null;
45
	private String group = "";
46

  
47
	public GenericToolBarMenuItem(String text, Icon icon) {
48
		this(text, icon, "", 0);
49
	}
50

  
51
	public GenericToolBarMenuItem(String text) {
52
		this(text, IconThemeHelper.getImageIcon("blank-icon"), "", 0);
53
	}
54

  
55
	public GenericToolBarMenuItem(String text, Icon icon, String group, int order) {
56
		this.text = text;
57
		this.order = order;
58
		this.icon = icon;
59
		this.group = group;
60
	}
61

  
62
	public GenericToolBarMenuItem(String text, Icon icon, String group) {
63
		this(text, icon, group, 0);
64
	}
65

  
66
	public GenericToolBarMenuItem(String text, Icon icon, int order) {
67
		this(text, icon, "", 0);
68
	}
69

  
70
	public String getGroup() {
71
		return group;
72
	}
73

  
74
	public int getOrder() {
75
		return order;
76
	}
77

  
78
	public String getText() {
79
		return text;
80
	}
81

  
82
	public Icon getIcon() {
83
		return icon;
84
	}
85

  
86
	public boolean isEnabled(ITocItem item, FLayer[] selectedItems) {
87
		return true;
88
	}
89

  
90
	public boolean isVisible(ITocItem item, FLayer[] selectedItems) {
91
		return true;
92
	}
93

  
94
	public int getGroupOrder() {
95
		return groupOrder;
96
	}
97

  
98
	public void execute(ITocItem item, FLayer[] selectedItems) {}
99

  
100
	public Object create() {
101
		return this;
102
	}
103

  
104
	public Object create(Object[] args) {
105
		return this;
106
	}
107

  
108
	@SuppressWarnings("rawtypes")
109
	public Object create(Map args) {
110
		return this;
111
	}
112

  
113
	public boolean isEnableEvents() {
114
		return true;
115
	}
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff