Revision 9541

View differences:

org.gvsig.raster/tags/org.gvsig.raster-2.2.93/org.gvsig.raster.app/org.gvsig.raster.app.win.x86/buildNumber.properties
1
#Thu Oct 08 22:02:21 CEST 2015
2
buildNumber=26
org.gvsig.raster/tags/org.gvsig.raster-2.2.93/org.gvsig.raster.app/org.gvsig.raster.app.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
    <file>
38
    		<source>target/native/bin/jpotrace001.dll</source>
39
        <outputDirectory>install/files</outputDirectory>
40
    </file>    
41
  </files>
42

  
43
  <fileSets>
44
    <fileSet>
45
      <directory>target/org.gvsig.raster.app.common</directory>
46
      <outputDirectory>.</outputDirectory>
47
      <excludes>
48
      	<exclude>package.info</exclude>
49
      </excludes>
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.93/org.gvsig.raster.app/org.gvsig.raster.app.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.raster.app.win.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>win</gvsig.package.info.operatingSystem>
15
    <gvsig.package.info.architecture>x86</gvsig.package.info.architecture>
16
    
17
    <jpotrace.classifier>win-nt-vs8-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
  <profiles>
96
  
97
    <profile>
98
      <id>gvsig-plugin-install-raster-windows-x86</id>
99
      <activation>
100
         <os>
101
             <family>windows</family>
102
             <!-- Uncomment this when have support for amd64 -->
103
             <!-- 
104
             <arch>x86</arch>
105
             -->
106
         </os>
107
      </activation>
108
	  <properties>
109
	    <gvsig.install.plugin>true</gvsig.install.plugin>
110
	  </properties>
111
    </profile>
112
    
113
  </profiles>
114
  
115
</project>
116

  
0 117

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.93/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.93/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.93/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.93/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.93/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.93/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

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

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

  
20
    </dependencies>
21

  
22
    <build>
23
        <plugins>
24

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

  
50

  
51
        </plugins>
52
    </build>
53

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

  
59
</project>
60

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.93/org.gvsig.raster.app/org.gvsig.raster.app.mainplugin/buildNumber.properties
1
#Wed Mar 27 17:36:36 CET 2019
2
buildNumber=102
0 3

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.93/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.93/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.93/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.93/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.93/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.93/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.93/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

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.93/org.gvsig.raster.app/org.gvsig.raster.app.lin.x86/buildNumber.properties
1
#Thu Oct 08 22:02:19 CEST 2015
2
buildNumber=26
0 3

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.93/org.gvsig.raster.app/org.gvsig.raster.app.common/buildNumber.properties
1
#Wed Mar 27 17:36:36 CET 2019
2
buildNumber=103
org.gvsig.raster/tags/org.gvsig.raster-2.2.93/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.93/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.93/org.gvsig.raster.app/org.gvsig.raster.app.common/src/main/java/org/gvsig/raster/mainplugin/toolbar/BinarySearch.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.Arrays;
25
import java.util.List;
26
import java.util.Vector;
27
import org.apache.commons.lang3.StringUtils;
28

  
29
import org.gvsig.gui.beans.comboboxconfigurablelookup.ILookUp;
30
import org.gvsig.gui.beans.comboboxconfigurablelookup.JComboBoxConfigurableLookUp;
31
import org.gvsig.gui.beans.comboboxconfigurablelookup.StringComparator;
32
/**
33
 * Clase para reimplementar una nueva busqueda para el componente
34
 * {@link JComboBoxConfigurableLookUp}
35
 * 
36
 * @version 13/02/2008
37
 * @author BorSanZa - Borja S?nchez Zamorano 
38
 */
39
public class BinarySearch implements ILookUp {
40
	public List<Object> doLookUpConsideringCaseSensitive(String text, Vector<Object> sortOrderedItems, StringComparator comp) {
41
                Vector<Object> list = new Vector<Object>();
42
                for (int i = 0; i < sortOrderedItems.size(); i++) {
43
                    Object cur_o = sortOrderedItems.get(i);
44
                    if( cur_o!=null ) {
45
                        String cur_s = cur_o.toString();
46
                        if( StringUtils.isEmpty(text) ) {
47
                                list.add(cur_o);
48
                        } else {
49
                            if (cur_s.indexOf(text) != -1) {
50
                                    list.add(cur_o);
51
                            }
52
                        }
53
                    }
54
                }
55
		return Arrays.asList(list.toArray());
56
        }
57

  
58
	public List<Object> doLookUpIgnoringCaseSensitive(String text, Vector<Object> sortOrderedItems, StringComparator comp) {
59
                Vector<Object> list = new Vector<Object>();
60
                for (int i = 0; i < sortOrderedItems.size(); i++) {
61
                    Object cur_o = sortOrderedItems.get(i);
62
                    if( cur_o!=null ) {
63
                        String cur_s = cur_o.toString();
64
                        if( StringUtils.isEmpty(text) ) {
65
                                list.add(cur_o);
66
                        } else {
67
                            if (cur_s.toLowerCase().indexOf(text.toLowerCase()) != -1) {
68
                                    list.add(cur_o);
69
                            }
70
                        }
71
                    }
72
                }
73
		return Arrays.asList(list.toArray());
74
	}
75
}
org.gvsig.raster/tags/org.gvsig.raster-2.2.93/org.gvsig.raster.app/org.gvsig.raster.app.common/src/main/java/org/gvsig/raster/mainplugin/toolbar/IGenericToolBarMenuItem.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 javax.swing.Icon;
25

  
26
import org.gvsig.app.project.documents.view.toc.ITocItem;
27
import org.gvsig.fmap.mapcontext.layers.FLayer;
28

  
29
/**
30
 * Interfaz que debe implementar quien quiera aparecer en la barra de
31
 * herramientas gen?rica.
32
 * 
33
 * @version 06/02/2008
34
 * @author BorSanZa - Borja S?nchez Zamorano (borja.sanchez@iver.es)
35
 */
36
public interface IGenericToolBarMenuItem {
37
	/**
38
	 * Devuelve el nombre del grupo al que pertenece el item de menu
39
	 * @return
40
	 */
41
	public String getGroup();
42
	
43
	/**
44
	 * Devuelve el orden en el que aparecer? en el men?
45
	 * @return
46
	 */
47
	public int getOrder();
48

  
49
	/**
50
	 * Devuelve el orden en el que aparecer? en el men?
51
	 * @return
52
	 */
53
	public int getGroupOrder();
54
	
55
	/**
56
	 * Devuelve el texto que se ver? en el men?
57
	 * @return
58
	 */
59
	public String getText();
60
	
61
	/**
62
	 * Devuelve el icono del item del menu
63
	 * @return
64
	 */
65
	public Icon getIcon();
66

  
67
	/**
68
	 * Dice si es visible el item de menu para dicha entrada
69
	 * @param item
70
	 * @param selectedItems
71
	 * @return
72
	 */
73
	public boolean isVisible(ITocItem item, FLayer[] selectedItems);
74
	
75
	/**
76
	 * Dice si el item actual esta habilitado
77
	 * @param item
78
	 * @param selectedItems
79
	 * @return
80
	 */
81
	public boolean isEnabled(ITocItem item, FLayer[] selectedItems);
82
	
83
	/**
84
	 * Metodo que sera invocado cuando el item del menu sea presionado
85
	 * @param item
86
	 * @param selectedItems
87
	 */
88
	public void execute(ITocItem item, FLayer[] selectedItems);
89
}
org.gvsig.raster/tags/org.gvsig.raster-2.2.93/org.gvsig.raster.app/org.gvsig.raster.app.common/src/main/java/org/gvsig/raster/mainplugin/toolbar/ButtonItems.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.ArrayList;
25
import java.util.List;
26

  
27
import javax.swing.JButton;
28

  
29
import org.gvsig.fmap.mapcontext.layers.FLayer;
30
import org.gvsig.gui.beans.controls.combobutton.ComboButton;
31
/**
32
 * Clase para gestionar y ordenar los items de un ComboButton
33
 *  
34
 * @version 13/02/2008
35
 * @author BorSanZa - Borja S?nchez Zamorano (borja.sanchez@iver.es)
36
 */
37
public class ButtonItems {
38
	private ComboButton comboButton = null;
39
	private FLayer[] layers = null;
40
	private List<IGenericToolBarMenuItem> arrayList = new ArrayList<IGenericToolBarMenuItem>();
41
	private List<String> arrayKeys = new ArrayList<String>();
42

  
43
	public ButtonItems(ComboButton comboButton, FLayer[] layers) {
44
		this.comboButton = comboButton;
45
		this.layers = layers;
46
	}
47
	
48
	/**
49
	 * A?ade un item al ComboButton
50
	 * @param menuItem
51
	 * @param key
52
	 */
53
	public void addButton(IGenericToolBarMenuItem menuItem, String key) {
54
		int pos = 0;
55
		boolean find = false;
56
		for (int i = 0; i < arrayList.size(); i++) {
57
			pos = i;
58
			IGenericToolBarMenuItem aux = (IGenericToolBarMenuItem) arrayList.get(i);
59
			if (aux.getGroupOrder() > menuItem.getGroupOrder()) {
60
				find = true;
61
				break;
62
			}
63
			if (aux.getGroupOrder() == menuItem.getGroupOrder()) {
64
				if (aux.getOrder() > menuItem.getOrder()) {
65
					find = true;
66
					break;
67
				}
68
			}
69
		}
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff