Revision 608
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/prepare-workspace.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2012 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 2 |
|
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 |
<project name="org.gvsig.initial.build" default="prepare-workspace"> |
|
27 |
|
|
28 |
<dirname property="org.gvsig.initial.build.basedir" file="${ant.file.org.gvsig.initial.build}" /> |
|
29 |
|
|
30 |
<property name="workspace.basedir" value="${org.gvsig.initial.build.basedir}/.." /> |
|
31 |
<property name="build.basedir" value="${workspace.basedir}/org.gvsig.maven.base.build" description="Eclipse workspace location" /> |
|
32 |
<property name="build.jar.version" value="1.0.8-SNAPSHOT" /> |
|
33 |
<property name="build.jar.file" value="org.gvsig.maven.base.build-${build.jar.version}.jar" /> |
|
34 |
|
|
35 |
<property name="ant.libs.dir" location="${build.basedir}" description="Additional ant tasks libs folder" /> |
|
36 |
|
|
37 |
<target name="check-maven-base-build-available"> |
|
38 |
<available file="${user.home}/.m2/repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" property="maven-base-build-available" /> |
|
39 |
</target> |
|
40 |
|
|
41 |
<target name="get-maven-base-build-local" depends="check-maven-base-build-available" if="maven-base-build-available"> |
|
42 |
<!-- Unzip de build jar file from the maven repository into the workspace root folder --> |
|
43 |
<copy todir="${workspace.basedir}" preservelastmodified="false" filtering="false"> |
|
44 |
<zipfileset src="${user.home}/.m2/repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}"> |
|
45 |
<patternset> |
|
46 |
<exclude name="META-INF/**" /> |
|
47 |
</patternset> |
|
48 |
</zipfileset> |
|
49 |
</copy> |
|
50 |
</target> |
|
51 |
|
|
52 |
<target name="get-maven-base-build-remote" depends="check-maven-base-build-available" unless="maven-base-build-available"> |
|
53 |
<mkdir dir="target" /> |
|
54 |
|
|
55 |
<!-- Download the build jar file --> |
|
56 |
<get src="http://devel.gvsig.org/m2repo/j2se/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" dest="target/${build.jar.file}" verbose="true" /> |
|
57 |
|
|
58 |
<!-- Unzip de build jar file into the workspace root folder --> |
|
59 |
<copy todir="${workspace.basedir}" preservelastmodified="false" filtering="false"> |
|
60 |
<zipfileset src="target/${build.jar.file}"> |
|
61 |
<patternset> |
|
62 |
<exclude name="META-INF/**" /> |
|
63 |
</patternset> |
|
64 |
</zipfileset> |
|
65 |
</copy> |
|
66 |
|
|
67 |
</target> |
|
68 |
|
|
69 |
<target name="find.depends.natives.file"> |
|
70 |
<condition property="depends.natives.file.exists"> |
|
71 |
<available file="${org.gvsig.initial.build.basedir}/DEPENDS_ON_NATIVE_LIBRARIES"/> |
|
72 |
</condition> |
|
73 |
</target> |
|
74 |
|
|
75 |
<target name="find.gvsig.platform.properties.file" |
|
76 |
depends="find.depends.natives.file" |
|
77 |
if="depends.natives.file.exists"> |
|
78 |
<condition property="gvsig.platform.exists"> |
|
79 |
<available file="${user.home}/.gvsig.platform.properties"/> |
|
80 |
</condition> |
|
81 |
</target> |
|
82 |
|
|
83 |
<target name="check.gvsig.platform.properties" |
|
84 |
depends="find.gvsig.platform.properties.file"> |
|
85 |
<fail if="depends.natives.file.exists" unless="gvsig.platform.exists"> |
|
86 |
ERROR!! |
|
87 |
|
|
88 |
You have to define your gvSIG platform properties, |
|
89 |
by creating the file: ${user.home}/.gvsig.platform.properties |
|
90 |
with the following content: |
|
91 |
|
|
92 |
native_platform=linux |
|
93 |
native_distribution=all |
|
94 |
native_compiler=gcc4 |
|
95 |
native_arch=i386 |
|
96 |
native_libraryType=dynamic |
|
97 |
export native_classifier=${native_platform}-${native_distribution}-${native_compiler}-${native_arch}-${native_libraryType} |
|
98 |
|
|
99 |
Replace the fifth initial variables values with the ones appropiate |
|
100 |
to your platform. |
|
101 |
|
|
102 |
If you use maven in the command line, you can use the previous file also |
|
103 |
to define the MAVEN_OPTS environment variable, by adding to your |
|
104 |
.bash_rc file something like this: |
|
105 |
|
|
106 |
if [ -f "${HOME}/.gvsig.platform.properties" ] |
|
107 |
then |
|
108 |
. ${HOME}/.gvsig.platform.properties |
|
109 |
export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m -Dnative_classifier=${native_classifier}" |
|
110 |
else |
|
111 |
export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m" |
|
112 |
fi |
|
113 |
|
|
114 |
It will work if you use the bash shell. In any other case or platform, you'll |
|
115 |
have to define your MAVEN_OPTS environment variable and set the |
|
116 |
"native_classifier" parameter directly. |
|
117 |
</fail> |
|
118 |
|
|
119 |
</target> |
|
120 |
|
|
121 |
<target name="prepare-workspace" depends="get-maven-base-build-local,get-maven-base-build-remote,check.gvsig.platform.properties"> |
|
122 |
|
|
123 |
<mkdir dir="target" /> |
|
124 |
|
|
125 |
<chmod dir="${build.basedir}/maven/bin" perm="u+x" includes="m2,mvn,mvnDebug" /> |
|
126 |
|
|
127 |
<!-- Copy the maven launchers to the workspace metadata folder --> |
|
128 |
<copy todir="${workspace.basedir}/.metadata"> |
|
129 |
<fileset dir="${build.basedir}/eclipse-launchers"> |
|
130 |
<exclude name="**/org.eclipse.jdt.core.prefs" /> |
|
131 |
<exclude name="**/org.eclipse.core.variables.prefs" /> |
|
132 |
</fileset> |
|
133 |
</copy> |
|
134 |
|
|
135 |
<concat destfile="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs" append="true"> |
|
136 |
<filelist dir="${build.basedir}/eclipse-launchers/.plugins/org.eclipse.core.runtime/.settings" files="org.eclipse.jdt.core.prefs" /> |
|
137 |
</concat> |
|
138 |
<concat destfile="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs" append="true"> |
|
139 |
<filelist dir="${build.basedir}/eclipse-launchers/.plugins/org.eclipse.core.runtime/.settings" files="org.eclipse.core.variables.prefs" /> |
|
140 |
</concat> |
|
141 |
|
|
142 |
<!-- Configure the eclipse workspace --> |
|
143 |
<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-configure-eclipse-workspace" /> |
|
144 |
|
|
145 |
<!-- Configure the gvSIG profile --> |
|
146 |
<ant antfile="${build.basedir}/check-gvsig-profile.xml" /> |
|
147 |
|
|
148 |
<property name="user-settings-file-location" value="${user.home}/.m2/settings.xml" /> |
|
149 |
|
|
150 |
<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask"> |
|
151 |
<classpath> |
|
152 |
<pathelement location="${ant.libs.dir}/com.oopsconsultancy.xmltask-1.16.1.jar" /> |
|
153 |
</classpath> |
|
154 |
</taskdef> |
|
155 |
|
|
156 |
<xmltask source="${user-settings-file-location}" dest="${user-settings-file-location}"> |
|
157 |
<copy path="//:settings/:profiles/:profile[:id/text() = 'gvsig-install']/:properties/:gvsig.install.dir/text()" property="current-gvsig-location" /> |
|
158 |
</xmltask> |
|
159 |
|
|
160 |
<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" /> |
|
161 |
<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" /> |
|
162 |
|
|
163 |
<!-- Compile, install and generate eclipse projects --> |
|
164 |
<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-install-and-eclipse-eclipse" /> |
|
165 |
|
|
166 |
<echo>INFORMATION!!!</echo> |
|
167 |
<echo>Restart eclipse and then proceed to import the subprojects contained into the main project</echo> |
|
168 |
|
|
169 |
<!-- TODO: copiar al proyecto de configuración general --> |
|
170 |
</target> |
|
171 |
|
|
172 |
<target name="clean"> |
|
173 |
<delete dir="target" /> |
|
174 |
</target> |
|
175 |
|
|
176 |
</project> |
|
0 | 177 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/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/xsd/maven-4.0.0.xsd"> |
|
3 |
|
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.geoprocess</artifactId> |
|
6 |
<packaging>pom</packaging> |
|
7 |
<name>org.gvsig.geoprocess</name> |
|
8 |
<description>Geoprocessing projects</description> |
|
9 |
<version>2.2.14</version> |
|
10 |
|
|
11 |
<parent> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.raster</artifactId> |
|
14 |
<version>2.2.6</version> |
|
15 |
</parent> |
|
16 |
|
|
17 |
<scm> |
|
18 |
<connection>scm:svn:https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14</connection> |
|
19 |
<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14</developerConnection> |
|
20 |
<url>https://devel.gvsig.org/redmine/projects/gvsig-geoprocess/repository/show/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14</url> |
|
21 |
</scm> |
|
22 |
|
|
23 |
<repositories> |
|
24 |
<repository> |
|
25 |
<id>gvsig-public-http-repository</id> |
|
26 |
<name>gvSIG maven public HTTP repository</name> |
|
27 |
<url>http://devel.gvsig.org/m2repo/j2se</url> |
|
28 |
<releases> |
|
29 |
<enabled>true</enabled> |
|
30 |
<updatePolicy>daily</updatePolicy> |
|
31 |
<checksumPolicy>warn</checksumPolicy> |
|
32 |
</releases> |
|
33 |
<snapshots> |
|
34 |
<enabled>true</enabled> |
|
35 |
<updatePolicy>daily</updatePolicy> |
|
36 |
<checksumPolicy>warn</checksumPolicy> |
|
37 |
</snapshots> |
|
38 |
</repository> |
|
39 |
</repositories> |
|
40 |
|
|
41 |
<dependencyManagement> |
|
42 |
<dependencies> |
|
43 |
<dependency> |
|
44 |
<groupId>org.gvsig</groupId> |
|
45 |
<artifactId>org.gvsig.toolbox</artifactId> |
|
46 |
<version>1.0.11</version> |
|
47 |
<type>pom</type> |
|
48 |
<scope>import</scope> |
|
49 |
<optional>true</optional> |
|
50 |
</dependency> |
|
51 |
<dependency> |
|
52 |
<groupId>org.gvsig</groupId> |
|
53 |
<artifactId>org.gvsig.geoprocess.app.mainplugin</artifactId> |
|
54 |
<version>2.2.14</version> |
|
55 |
</dependency> |
|
56 |
<dependency> |
|
57 |
<groupId>org.gvsig</groupId> |
|
58 |
<artifactId>org.gvsig.geoprocess.lib.api</artifactId> |
|
59 |
<version>2.2.14</version> |
|
60 |
</dependency> |
|
61 |
<dependency> |
|
62 |
<groupId>org.gvsig</groupId> |
|
63 |
<artifactId>org.gvsig.geoprocess.lib.sextante</artifactId> |
|
64 |
<version>2.2.14</version> |
|
65 |
</dependency> |
|
66 |
<dependency> |
|
67 |
<groupId>org.gvsig</groupId> |
|
68 |
<artifactId>org.gvsig.geoprocess.algorithm.base</artifactId> |
|
69 |
<version>2.2.14</version> |
|
70 |
</dependency> |
|
71 |
<dependency> |
|
72 |
<groupId>org.gvsig</groupId> |
|
73 |
<artifactId>org.gvsig.geoprocess.algorithm.buffer</artifactId> |
|
74 |
<version>2.2.14</version> |
|
75 |
</dependency> |
|
76 |
<dependency> |
|
77 |
<groupId>org.gvsig</groupId> |
|
78 |
<artifactId>org.gvsig.geoprocess.algorithm.clip</artifactId> |
|
79 |
<version>2.2.14</version> |
|
80 |
</dependency> |
|
81 |
<dependency> |
|
82 |
<groupId>org.gvsig</groupId> |
|
83 |
<artifactId>org.gvsig.geoprocess.algorithm.convexhull</artifactId> |
|
84 |
<version>2.2.14</version> |
|
85 |
</dependency> |
|
86 |
<dependency> |
|
87 |
<groupId>org.gvsig</groupId> |
|
88 |
<artifactId>org.gvsig.geoprocess.algorithm.difference</artifactId> |
|
89 |
<version>2.2.14</version> |
|
90 |
</dependency> |
|
91 |
<dependency> |
|
92 |
<groupId>org.gvsig</groupId> |
|
93 |
<artifactId>org.gvsig.geoprocess.algorithm.dissolve</artifactId> |
|
94 |
<version>2.2.14</version> |
|
95 |
</dependency> |
|
96 |
<dependency> |
|
97 |
<groupId>org.gvsig</groupId> |
|
98 |
<artifactId>org.gvsig.geoprocess.algorithm.fusespatially</artifactId> |
|
99 |
<version>2.2.14</version> |
|
100 |
</dependency> |
|
101 |
<dependency> |
|
102 |
<groupId>org.gvsig</groupId> |
|
103 |
<artifactId>org.gvsig.geoprocess.algorithm.intersection</artifactId> |
|
104 |
<version>2.2.14</version> |
|
105 |
</dependency> |
|
106 |
<dependency> |
|
107 |
<groupId>org.gvsig</groupId> |
|
108 |
<artifactId>org.gvsig.geoprocess.algorithm.merge</artifactId> |
|
109 |
<version>2.2.14</version> |
|
110 |
</dependency> |
|
111 |
<dependency> |
|
112 |
<groupId>org.gvsig</groupId> |
|
113 |
<artifactId>org.gvsig.geoprocess.algorithm.reproject</artifactId> |
|
114 |
<version>2.2.14</version> |
|
115 |
</dependency> |
|
116 |
<dependency> |
|
117 |
<groupId>org.gvsig</groupId> |
|
118 |
<artifactId>org.gvsig.geoprocess.algorithm.spatialjoin</artifactId> |
|
119 |
<version>2.2.14</version> |
|
120 |
</dependency> |
|
121 |
<dependency> |
|
122 |
<groupId>org.gvsig</groupId> |
|
123 |
<artifactId>org.gvsig.geoprocess.algorithm.union</artifactId> |
|
124 |
<version>2.2.14</version> |
|
125 |
</dependency> |
|
126 |
<dependency> |
|
127 |
<groupId>org.gvsig</groupId> |
|
128 |
<artifactId>org.gvsig.geoprocess.algorithm.xyshift</artifactId> |
|
129 |
<version>2.2.14</version> |
|
130 |
</dependency> |
|
131 |
<dependency> |
|
132 |
<groupId>org.gvsig</groupId> |
|
133 |
<artifactId>org.gvsig.geoprocess.algorithm.groupby</artifactId> |
|
134 |
<version>2.2.14</version> |
|
135 |
</dependency> |
|
136 |
<dependency> |
|
137 |
<groupId>org.gvsig</groupId> |
|
138 |
<artifactId>org.gvsig.geoprocess.algorithm.lateralbuffer</artifactId> |
|
139 |
<version>2.2.14</version> |
|
140 |
</dependency> |
|
141 |
<dependency> |
|
142 |
<groupId>org.gvsig</groupId> |
|
143 |
<artifactId>org.gvsig.geoprocess.algorithm.splitlines</artifactId> |
|
144 |
<version>2.2.14</version> |
|
145 |
</dependency> |
|
146 |
<dependency> |
|
147 |
<groupId>org.japura</groupId> |
|
148 |
<artifactId>org.japura</artifactId> |
|
149 |
<version>1.14.0</version> |
|
150 |
</dependency> |
|
151 |
</dependencies> |
|
152 |
</dependencyManagement> |
|
153 |
|
|
154 |
<build> |
|
155 |
<plugins> |
|
156 |
<plugin> |
|
157 |
<groupId>org.apache.maven.plugins</groupId> |
|
158 |
<artifactId>maven-release-plugin</artifactId> |
|
159 |
<configuration> |
|
160 |
<tagBase>https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/</tagBase> |
|
161 |
<goals>deploy</goals> |
|
162 |
</configuration> |
|
163 |
</plugin> |
|
164 |
|
|
165 |
<plugin> |
|
166 |
<groupId>org.apache.maven.plugins</groupId> |
|
167 |
<artifactId>maven-compiler-plugin</artifactId> |
|
168 |
<version>2.0.2</version> |
|
169 |
<configuration> |
|
170 |
<source>1.6</source> |
|
171 |
<target>1.6</target> |
|
172 |
<encoding>ISO-8859-1</encoding> |
|
173 |
</configuration> |
|
174 |
</plugin> |
|
175 |
|
|
176 |
<plugin> |
|
177 |
<groupId>org.codehaus.mojo</groupId> |
|
178 |
<artifactId>animal-sniffer-maven-plugin</artifactId> |
|
179 |
<executions> |
|
180 |
<execution> |
|
181 |
<id>check-java-api</id> |
|
182 |
<phase>test</phase> |
|
183 |
<goals> |
|
184 |
<goal>check</goal> |
|
185 |
</goals> |
|
186 |
<configuration> |
|
187 |
<signature> |
|
188 |
<groupId>org.codehaus.mojo.signature |
|
189 |
</groupId> |
|
190 |
<artifactId>java16</artifactId> |
|
191 |
<version>1.0</version> |
|
192 |
</signature> |
|
193 |
</configuration> |
|
194 |
</execution> |
|
195 |
</executions> |
|
196 |
</plugin> |
|
197 |
|
|
198 |
</plugins> |
|
199 |
</build> |
|
200 |
|
|
201 |
<modules> |
|
202 |
<module>org.gvsig.geoprocess.lib</module> |
|
203 |
<module>org.gvsig.geoprocess.app</module> |
|
204 |
<module>org.gvsig.geoprocess.algorithm</module> |
|
205 |
</modules> |
|
206 |
</project> |
|
0 | 207 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/README.txt | ||
---|---|---|
1 |
==== |
|
2 |
gvSIG. Desktop Geographic Information System. |
|
3 |
|
|
4 |
Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
|
7 |
modify it under the terms of the GNU General Public License |
|
8 |
as published by the Free Software Foundation; either version 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 |
For any additional information, do not hesitate to contact us |
|
22 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
==== |
|
24 |
|
|
25 |
The first time you checkout the current project to a new workspace, |
|
26 |
you have to prepare it to be able to work easily with maven from |
|
27 |
eclipse itself. |
|
28 |
|
|
29 |
Perform the following steps: |
|
30 |
|
|
31 |
1.- Launch the *prepare-workspace.xml* ant build file. |
|
32 |
You can do it by loading the file into the ant view, |
|
33 |
and running the default task, or right-clicking the |
|
34 |
file from the package explorer or the navigator and |
|
35 |
select the option: *Run as > Ant build*. |
|
36 |
|
|
37 |
2.- Restart eclipse. |
|
38 |
|
|
39 |
3.- Import the subprojects of the project you have just checked out. |
|
40 |
|
|
41 |
Those steps are only needed once per workspace. |
|
42 |
|
|
0 | 43 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Tue Oct 28 08:43:29 EDT 2014 |
|
2 |
buildNumber=2092 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<assembly> |
|
2 |
<id>gvsig-plugin-package</id> |
|
3 |
<formats> |
|
4 |
<format>zip</format> |
|
5 |
</formats> |
|
6 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
7 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
8 |
<files> |
|
9 |
<file> |
|
10 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
11 |
<outputDirectory>lib</outputDirectory> |
|
12 |
</file> |
|
13 |
<file> |
|
14 |
<source>target/package.info</source> |
|
15 |
</file> |
|
16 |
</files> |
|
17 |
|
|
18 |
<fileSets> |
|
19 |
<fileSet> |
|
20 |
<directory>src/main/resources-plugin</directory> |
|
21 |
<outputDirectory>.</outputDirectory> |
|
22 |
</fileSet> |
|
23 |
</fileSets> |
|
24 |
|
|
25 |
|
|
26 |
<dependencySets> |
|
27 |
<dependencySet> |
|
28 |
<useProjectArtifact>false</useProjectArtifact> |
|
29 |
<useTransitiveDependencies>true</useTransitiveDependencies> |
|
30 |
<outputDirectory>lib</outputDirectory> |
|
31 |
<includes> |
|
32 |
<include>org.gvsig:org.gvsig.geoprocess.app.mainplugin</include> |
|
33 |
<include>org.gvsig:org.gvsig.geoprocess.lib.api</include> |
|
34 |
<include>org.gvsig:org.gvsig.geoprocess.lib.sextante</include> |
|
35 |
<include>org.gvsig:org.gvsig.toolbox.core</include> |
|
36 |
<include>org.gvsig:org.gvsig.toolbox.gui</include> |
|
37 |
<include>org.gvsig:org.gvsig.toolbox.math</include> |
|
38 |
<include>gnu.trove:trove</include> |
|
39 |
<include>gov.nist.math:jama</include> |
|
40 |
<include>org.nfunk:jep</include> |
|
41 |
<include>bsh:bsh:jar</include> |
|
42 |
<include>jfree:jcommon</include> |
|
43 |
<include>jfree:jfreechart</include> |
|
44 |
<include>net.sf:jgraph</include> |
|
45 |
<include>tablelayout:TableLayout</include> |
|
46 |
<include>org.japura:org.japura</include> |
|
47 |
</includes> |
|
48 |
</dependencySet> |
|
49 |
</dependencySets> |
|
50 |
</assembly> |
|
0 | 51 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/gui/DEPRECATED | ||
---|---|---|
1 |
This package is fully deprecated. |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/gui/AlgorithmOutputPanel.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.gui; |
|
25 |
|
|
26 |
/** |
|
27 |
* @author gvSIG Team |
|
28 |
* @version $Id$ |
|
29 |
* @deprecated use |
|
30 |
* org.gvsig.geoprocess.sextante.gui.algorithm.AlgorithmOutputPanel |
|
31 |
* instead |
|
32 |
*/ |
|
33 |
public class AlgorithmOutputPanel extends |
|
34 |
org.gvsig.geoprocess.sextante.gui.algorithm.AlgorithmOutputPanel { |
|
35 |
|
|
36 |
// Nothing to add |
|
37 |
} |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/core/CompositeSourceOutputChannel.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.core; |
|
25 |
|
|
26 |
|
|
27 |
/** |
|
28 |
* Parameters used in a output layer |
|
29 |
* |
|
30 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
31 |
* @author gvSIG Team |
|
32 |
* @deprecated use |
|
33 |
* org.gvsig.geoprocess.lib.sextante.outputs.CompositeSourceIOutputChannel |
|
34 |
* instead |
|
35 |
*/ |
|
36 |
public class CompositeSourceOutputChannel extends |
|
37 |
org.gvsig.geoprocess.lib.sextante.outputs.CompositeSourceIOutputChannel { |
|
38 |
|
|
39 |
public CompositeSourceOutputChannel(Object parameters) { |
|
40 |
super(parameters); |
|
41 |
} |
|
42 |
|
|
43 |
} |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/core/IProgressModel.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.core; |
|
25 |
|
|
26 |
|
|
27 |
/** |
|
28 |
* Interface to assign the bar increment |
|
29 |
* |
|
30 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
31 |
* @deprecated use {@link ProgressModel} instead |
|
32 |
*/ |
|
33 |
public interface IProgressModel { |
|
34 |
|
|
35 |
/** |
|
36 |
* Assigns the new bar position |
|
37 |
* |
|
38 |
* @param iStep |
|
39 |
*/ |
|
40 |
public void setProgress(int iStep); |
|
41 |
|
|
42 |
/** |
|
43 |
* Sets the number of steps |
|
44 |
* |
|
45 |
* @param nSteps |
|
46 |
*/ |
|
47 |
public void setTotalNumberOfSteps(int nSteps); |
|
48 |
} |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/core/gvGeoAlgorithm.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.core; |
|
25 |
|
|
26 |
import org.gvsig.geoprocess.lib.sextante.AbstractSextanteGeoProcess; |
|
27 |
|
|
28 |
/** |
|
29 |
* Base class for gvSIG algorithms |
|
30 |
* |
|
31 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
32 |
* @deprecated use {@link AbstractSextanteGeoProcess} instead |
|
33 |
*/ |
|
34 |
public abstract class gvGeoAlgorithm extends AbstractSextanteGeoProcess |
|
35 |
implements IProgressModel { |
|
36 |
|
|
37 |
public void setProgress(int iStep) { |
|
38 |
getStatus().setCurValue(iStep); |
|
39 |
} |
|
40 |
|
|
41 |
public void setTotalNumberOfSteps(int nSteps) { |
|
42 |
getStatus().setRangeOfValues(0, nSteps); |
|
43 |
} |
|
44 |
|
|
45 |
} |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/core/DEPRECATED | ||
---|---|---|
1 |
This package is fully deprecated. |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/sextante/gui/GeoprocessWindow.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.sextante.gui; |
|
25 |
|
|
26 |
import java.awt.BorderLayout; |
|
27 |
|
|
28 |
import javax.swing.JComponent; |
|
29 |
import javax.swing.JPanel; |
|
30 |
|
|
31 |
import es.unex.sextante.core.IInputFactory; |
|
32 |
import es.unex.sextante.gui.core.SextanteGUI; |
|
33 |
import es.unex.sextante.gui.toolbox.ToolboxPanel; |
|
34 |
|
|
35 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
36 |
import org.gvsig.andami.ui.mdiManager.IWindowListener; |
|
37 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
|
38 |
|
|
39 |
/** |
|
40 |
* Geoprocess modeler window. By default uses a DIALOG type window profile and |
|
41 |
* info. Also the window info uses the size from the size of the provided JPanel |
|
42 |
* to include. |
|
43 |
* |
|
44 |
* @author gvSIG Team |
|
45 |
* @version $Id$ |
|
46 |
*/ |
|
47 |
public abstract class GeoprocessWindow extends JPanel implements IWindow, |
|
48 |
IWindowListener { |
|
49 |
|
|
50 |
private static final long serialVersionUID = -677659097155651764L; |
|
51 |
|
|
52 |
private WindowInfo windowInfo; |
|
53 |
private ToolboxPanel toolboxPanel; |
|
54 |
|
|
55 |
protected JComponent mainComponent; |
|
56 |
|
|
57 |
/** |
|
58 |
* Creates a new {@link GeoprocessWindow}. |
|
59 |
* |
|
60 |
* @param toolbox |
|
61 |
* the main geoprocess selector panel |
|
62 |
*/ |
|
63 |
public GeoprocessWindow(ToolboxPanel toolbox) { |
|
64 |
toolboxPanel = toolbox; |
|
65 |
initializeDataObjects(); |
|
66 |
|
|
67 |
initializeUI(); |
|
68 |
|
|
69 |
windowInfo = createWindowInfo(); |
|
70 |
} |
|
71 |
|
|
72 |
/** |
|
73 |
* Initializes the sextante data objects. |
|
74 |
*/ |
|
75 |
protected void initializeDataObjects() { |
|
76 |
IInputFactory inputFactory = SextanteGUI.getInputFactory(); |
|
77 |
if (inputFactory.getDataObjects() == null) { |
|
78 |
inputFactory.createDataObjects(); |
|
79 |
} |
|
80 |
} |
|
81 |
|
|
82 |
/** |
|
83 |
* Initializes de window user interface. |
|
84 |
*/ |
|
85 |
protected void initializeUI() { |
|
86 |
mainComponent = getMainComponent(); |
|
87 |
this.setLayout(new BorderLayout(0, 0)); |
|
88 |
this.add(mainComponent); |
|
89 |
} |
|
90 |
|
|
91 |
/** |
|
92 |
* Initializes the window info object. |
|
93 |
*/ |
|
94 |
protected WindowInfo createWindowInfo() { |
|
95 |
WindowInfo windowInfo = |
|
96 |
new WindowInfo(WindowInfo.ICONIFIABLE | WindowInfo.RESIZABLE |
|
97 |
| WindowInfo.MAXIMIZABLE); |
|
98 |
// new WindowInfo(WindowInfo.MODALDIALOG | WindowInfo.RESIZABLE); |
|
99 |
windowInfo.setTitle(getTitle()); |
|
100 |
windowInfo.setWidth(mainComponent.getWidth()); |
|
101 |
windowInfo.setHeight(mainComponent.getHeight()); |
|
102 |
|
|
103 |
return windowInfo; |
|
104 |
} |
|
105 |
|
|
106 |
public Object getWindowProfile() { |
|
107 |
return WindowInfo.EDITOR_PROFILE; |
|
108 |
// return WindowInfo.DIALOG_PROFILE; |
|
109 |
} |
|
110 |
|
|
111 |
public WindowInfo getWindowInfo() { |
|
112 |
return windowInfo; |
|
113 |
} |
|
114 |
|
|
115 |
public void windowActivated() { |
|
116 |
// Nothing to do |
|
117 |
} |
|
118 |
|
|
119 |
public void windowClosed() { |
|
120 |
if (toolboxPanel == null) { |
|
121 |
SextanteGUI.getInputFactory().clearDataObjects(); |
|
122 |
} |
|
123 |
} |
|
124 |
|
|
125 |
/** |
|
126 |
* Return the title of the window. |
|
127 |
* |
|
128 |
* @return the title of the window |
|
129 |
*/ |
|
130 |
protected abstract String getTitle(); |
|
131 |
|
|
132 |
/** |
|
133 |
* Return the panel to show in the window. |
|
134 |
* |
|
135 |
* @return the panel to show in the window |
|
136 |
*/ |
|
137 |
protected abstract JComponent getMainComponent(); |
|
138 |
} |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/sextante/gui/history/HistoryWindow.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.sextante.gui.history; |
|
25 |
|
|
26 |
import info.clearthought.layout.TableLayout; |
|
27 |
import info.clearthought.layout.TableLayoutConstants; |
|
28 |
|
|
29 |
import java.awt.event.ActionEvent; |
|
30 |
import java.awt.event.ActionListener; |
|
31 |
|
|
32 |
import javax.swing.JButton; |
|
33 |
import javax.swing.JComponent; |
|
34 |
import javax.swing.JPanel; |
|
35 |
|
|
36 |
import es.unex.sextante.core.Sextante; |
|
37 |
import es.unex.sextante.gui.history.HistoryPanel; |
|
38 |
import es.unex.sextante.gui.toolbox.ToolboxPanel; |
|
39 |
|
|
40 |
import org.gvsig.geoprocess.sextante.gui.GeoprocessWindow; |
|
41 |
|
|
42 |
/** |
|
43 |
* Geoprocess history window. |
|
44 |
* |
|
45 |
* @author gvSIG Team |
|
46 |
* @version $Id$ |
|
47 |
*/ |
|
48 |
public class HistoryWindow extends GeoprocessWindow { |
|
49 |
|
|
50 |
private static final long serialVersionUID = -677659097155651764L; |
|
51 |
|
|
52 |
private HistoryPanel historyPanel; |
|
53 |
|
|
54 |
/** |
|
55 |
* Creates a new {@link HistoryWindow}. |
|
56 |
* |
|
57 |
* @param toolbox |
|
58 |
* the main geoprocess selector panel |
|
59 |
*/ |
|
60 |
public HistoryWindow(ToolboxPanel toolbox) { |
|
61 |
super(toolbox); |
|
62 |
} |
|
63 |
|
|
64 |
@Override |
|
65 |
protected String getTitle() { |
|
66 |
return Sextante.getText("History"); |
|
67 |
} |
|
68 |
|
|
69 |
@Override |
|
70 |
protected JComponent getMainComponent() { |
|
71 |
JPanel panel = new JPanel(); |
|
72 |
historyPanel = new HistoryPanel(); |
|
73 |
|
|
74 |
panel.setPreferredSize(new java.awt.Dimension(650, 380)); |
|
75 |
panel.setSize(new java.awt.Dimension(650, 380)); |
|
76 |
TableLayout tableLayout = |
|
77 |
new TableLayout( |
|
78 |
new double[][] { |
|
79 |
{ 7.0, TableLayoutConstants.FILL, |
|
80 |
TableLayoutConstants.FILL, TableLayoutConstants.FILL, |
|
81 |
TableLayoutConstants.FILL, 7.0 }, |
|
82 |
{ TableLayoutConstants.FILL, 3.0, 30.0, 3.0 } }); |
|
83 |
tableLayout.setHGap(5); |
|
84 |
tableLayout.setVGap(5); |
|
85 |
panel.setLayout(tableLayout); |
|
86 |
|
|
87 |
panel.add(historyPanel, "1, 0, 4, 0"); |
|
88 |
|
|
89 |
JButton clearHistoryButton = new JButton(); |
|
90 |
panel.add(clearHistoryButton, "1, 2, 2, 2"); |
|
91 |
clearHistoryButton.setText(Sextante.getText("Clear_history")); |
|
92 |
clearHistoryButton.addActionListener(new ActionListener() { |
|
93 |
|
|
94 |
public void actionPerformed(final ActionEvent evt) { |
|
95 |
historyPanel.clearHistory(); |
|
96 |
} |
|
97 |
}); |
|
98 |
|
|
99 |
JButton clearLogButton = new JButton(); |
|
100 |
panel.add(clearLogButton, "3, 2, 4, 2"); |
|
101 |
clearLogButton.setText(Sextante.getText("Clear_log")); |
|
102 |
clearLogButton.addActionListener(new ActionListener() { |
|
103 |
|
|
104 |
public void actionPerformed(final ActionEvent evt) { |
|
105 |
historyPanel.clearLog(); |
|
106 |
} |
|
107 |
}); |
|
108 |
|
|
109 |
return panel; |
|
110 |
} |
|
111 |
|
|
112 |
} |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/sextante/gui/cmd/BSHWindow.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.sextante.gui.cmd; |
|
25 |
|
|
26 |
import java.awt.BorderLayout; |
|
27 |
import java.awt.Dimension; |
|
28 |
import java.io.FileReader; |
|
29 |
|
|
30 |
import javax.swing.JComponent; |
|
31 |
import javax.swing.JPanel; |
|
32 |
|
|
33 |
import bsh.Interpreter; |
|
34 |
import bsh.util.JConsole; |
|
35 |
import es.unex.sextante.core.Sextante; |
|
36 |
import es.unex.sextante.gui.cmd.ScriptsIO; |
|
37 |
import es.unex.sextante.gui.core.SextanteGUI; |
|
38 |
import es.unex.sextante.gui.toolbox.ToolboxPanel; |
|
39 |
|
|
40 |
import org.gvsig.geoprocess.sextante.gui.GeoprocessWindow; |
|
41 |
|
|
42 |
|
|
43 |
/** |
|
44 |
* Window with a BeanShell shell to execute geoprocess. |
|
45 |
* |
|
46 |
* @author gvSIG Team |
|
47 |
* @version $Id$ |
|
48 |
*/ |
|
49 |
public class BSHWindow extends GeoprocessWindow { |
|
50 |
|
|
51 |
private static final long serialVersionUID = 3805562395822654358L; |
|
52 |
|
|
53 |
/** |
|
54 |
* Creates a new {@link BSHWindow}. |
|
55 |
* |
|
56 |
* @param toolbox |
|
57 |
* the main geoprocess selector panel |
|
58 |
*/ |
|
59 |
public BSHWindow(ToolboxPanel toolbox) { |
|
60 |
super(toolbox); |
|
61 |
SextanteGUI.setLastCommandOrigin(SextanteGUI.COMMANDLINE); |
|
62 |
// SextanteGUI.setLastCommandOriginParentDialog(this); |
|
63 |
} |
|
64 |
|
|
65 |
@Override |
|
66 |
protected String getTitle() { |
|
67 |
return Sextante.getText("Command_line"); |
|
68 |
} |
|
69 |
|
|
70 |
@Override |
|
71 |
protected JComponent getMainComponent() { |
|
72 |
JPanel panel = new JPanel(); |
|
73 |
panel.setSize(new Dimension(400, 300)); |
|
74 |
panel.setPreferredSize(new Dimension(400, 300)); |
|
75 |
panel.setLayout(new BorderLayout()); |
|
76 |
JConsole console = new JConsole(); |
|
77 |
panel.add("Center", console); |
|
78 |
Interpreter interpreter = new Interpreter(console); |
|
79 |
interpreter.getNameSpace().importCommands( |
|
80 |
"es.unex.sextante.gui.cmd.bshcommands"); |
|
81 |
String[] files = ScriptsIO.getScriptFiles(); |
|
82 |
if (files != null) { |
|
83 |
for (int i = 0; i < files.length; i++) { |
|
84 |
try { |
|
85 |
FileReader reader = new FileReader(files[i]); |
|
86 |
interpreter.eval(reader); |
|
87 |
} catch (Exception e) { |
|
88 |
// Nothing to do |
|
89 |
} |
|
90 |
} |
|
91 |
} |
|
92 |
new Thread(interpreter).start(); |
|
93 |
|
|
94 |
return panel; |
|
95 |
} |
|
96 |
|
|
97 |
} |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/sextante/gui/algorithm/ParametersPanel.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.sextante.gui.algorithm; |
|
25 |
|
|
26 |
import javax.swing.JPanel; |
|
27 |
|
|
28 |
import es.unex.sextante.core.OutputObjectsSet; |
|
29 |
import es.unex.sextante.exceptions.WrongOutputIDException; |
|
30 |
import es.unex.sextante.gui.algorithm.DefaultParametersPanel; |
|
31 |
import es.unex.sextante.gui.algorithm.OutputParameterContainer; |
|
32 |
import es.unex.sextante.gui.algorithm.ParameterContainer; |
|
33 |
import es.unex.sextante.outputs.Output; |
|
34 |
|
|
35 |
import org.gvsig.geoprocess.core.CompositeSourceOutputChannel; |
|
36 |
import org.gvsig.geoprocess.lib.sextante.dataObjects.OutputParameters; |
|
37 |
|
|
38 |
/** |
|
39 |
* Default panel for gvSIG algorithms |
|
40 |
* |
|
41 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
42 |
*/ |
|
43 |
public class ParametersPanel extends DefaultParametersPanel { |
|
44 |
|
|
45 |
private static final long serialVersionUID = 1L; |
|
46 |
|
|
47 |
@SuppressWarnings("unchecked") |
|
48 |
protected void addOutputObjects(JPanel pane) { |
|
49 |
String sDescription; |
|
50 |
OutputObjectsSet ooset = m_Algorithm.getOutputObjects(); |
|
51 |
|
|
52 |
m_iCurrentRow = 0; |
|
53 |
|
|
54 |
for (int i = 0; i < ooset.getOutputObjectsCount(); i++) { |
|
55 |
Output out = ooset.getOutput(i); |
|
56 |
|
|
57 |
sDescription = |
|
58 |
out.getDescription() + "[" + out.getTypeDescription() + "]"; |
|
59 |
addTitleLabel(pane, sDescription, m_iCurrentRow, false); |
|
60 |
|
|
61 |
AlgorithmOutputPanel algorithmOutputPanel = |
|
62 |
new AlgorithmOutputPanel(); |
|
63 |
|
|
64 |
pane.add(algorithmOutputPanel, |
|
65 |
getStringTableCoords(2, m_iCurrentRow)); |
|
66 |
m_iCurrentRow++; |
|
67 |
m_OutputParameterContainer.add(new OutputParameterContainer(out |
|
68 |
.getName(), algorithmOutputPanel)); |
|
69 |
} |
|
70 |
} |
|
71 |
|
|
72 |
public void assignParameters() { |
|
73 |
|
|
74 |
boolean bAssigningOK = true; |
|
75 |
int i; |
|
76 |
ParameterContainer parameterContainer; |
|
77 |
String sType; |
|
78 |
|
|
79 |
for (i = 0; i < m_ParameterContainer.size(); i++) { |
|
80 |
parameterContainer = |
|
81 |
(ParameterContainer) m_ParameterContainer.get(i); |
|
82 |
sType = parameterContainer.getType(); |
|
83 |
if (sType.equals("Table")) { |
|
84 |
bAssigningOK = assignInputTable(parameterContainer); |
|
85 |
} else |
|
86 |
if (sType.equals("Vector Layer") |
|
87 |
|| sType.equals("Raster Layer")) { |
|
88 |
bAssigningOK = assignInputLayer(parameterContainer); |
|
89 |
} else |
|
90 |
if (sType.equals("Numerical Value")) { |
|
91 |
bAssigningOK = |
|
92 |
assignInputNumericalValue(parameterContainer); |
|
93 |
} else |
|
94 |
if (sType.equals("String")) { |
|
95 |
bAssigningOK = |
|
96 |
assignInputString(parameterContainer); |
|
97 |
} else |
|
98 |
if (sType.equals("Boolean")) { |
|
99 |
bAssigningOK = |
|
100 |
assignInputBoolean(parameterContainer); |
|
101 |
} else |
|
102 |
if (sType.equals("Fixed Table")) { |
|
103 |
bAssigningOK = |
|
104 |
assignInputFixedTable(parameterContainer); |
|
105 |
} else |
|
106 |
if (sType.equals("Multiple Input")) { |
|
107 |
bAssigningOK = |
|
108 |
assignInputMultipleInput(parameterContainer); |
|
109 |
} else |
|
110 |
if (sType.equals("Point")) { |
|
111 |
bAssigningOK = |
|
112 |
assignInputPoint(parameterContainer); |
|
113 |
} else |
|
114 |
if (parameterContainer.getType() |
|
115 |
.equals("Filepath")) { |
|
116 |
bAssigningOK = |
|
117 |
assignInputFilepath(parameterContainer); |
|
118 |
} else |
|
119 |
if (sType.equals("Table Field") |
|
120 |
|| sType |
|
121 |
.equals("Selection") |
|
122 |
|| sType.equals("Band")) { |
|
123 |
bAssigningOK = |
|
124 |
assignInputSelection(parameterContainer); |
|
125 |
} |
|
126 |
|
|
127 |
if (!bAssigningOK) { |
|
128 |
return; |
|
129 |
} |
|
130 |
|
|
131 |
} |
|
132 |
|
|
133 |
OutputObjectsSet ooset = m_Algorithm.getOutputObjects(); |
|
134 |
for (i = 0; i < m_OutputParameterContainer.size(); i++) { |
|
135 |
OutputParameterContainer opc = |
|
136 |
(OutputParameterContainer) m_OutputParameterContainer.get(i); |
|
137 |
Output out; |
|
138 |
try { |
|
139 |
out = ooset.getOutput(opc.getName()); |
|
140 |
AlgorithmOutputPanel op = |
|
141 |
(AlgorithmOutputPanel) opc.getContainer(); |
|
142 |
Object obj = op.getOutputParameters(); |
|
143 |
if (obj == null) { |
|
144 |
return; |
|
145 |
} |
|
146 |
if (obj instanceof OutputParameters) |
|
147 |
out.setOutputChannel(new CompositeSourceOutputChannel(obj)); |
|
148 |
} catch (WrongOutputIDException e) { |
|
149 |
} |
|
150 |
} |
|
151 |
|
|
152 |
return; |
|
153 |
|
|
154 |
} |
|
155 |
} |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/sextante/gui/algorithm/AlgorithmOutputPanel.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.sextante.gui.algorithm; |
|
25 |
|
|
26 |
import java.awt.GridBagConstraints; |
|
27 |
import java.awt.GridBagLayout; |
|
28 |
|
|
29 |
import javax.swing.JPanel; |
|
30 |
|
|
31 |
import es.unex.sextante.core.GeoAlgorithm; |
|
32 |
|
|
33 |
import org.gvsig.fmap.dal.DataServerExplorer; |
|
34 |
import org.gvsig.fmap.dal.NewDataStoreParameters; |
|
35 |
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters; |
|
36 |
import org.gvsig.fmap.mapcontrol.dal.swing.datastore.DataStoreParametersCreationPanel; |
|
37 |
import org.gvsig.fmap.mapcontrol.dal.swing.datastore.DefaultDataStoreParametersCreationPanel; |
|
38 |
import org.gvsig.geoprocess.lib.sextante.dataObjects.OutputParameters; |
|
39 |
|
|
40 |
/** |
|
41 |
* |
|
42 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
43 |
*/ |
|
44 |
public class AlgorithmOutputPanel extends JPanel{ |
|
45 |
|
|
46 |
private static final long serialVersionUID = -7028024211190671537L; |
|
47 |
|
|
48 |
private DataStoreParametersCreationPanel dataStoreCreationPanel = null; |
|
49 |
|
|
50 |
public AlgorithmOutputPanel() { |
|
51 |
super(); |
|
52 |
initGUI(); |
|
53 |
} |
|
54 |
|
|
55 |
public void init(GeoAlgorithm algorithm) { |
|
56 |
//m_Algorithm = algorithm; |
|
57 |
initGUI(); |
|
58 |
} |
|
59 |
|
|
60 |
private void initGUI() { |
|
61 |
GridBagLayout gbl = new GridBagLayout(); |
|
62 |
this.setLayout(gbl); |
|
63 |
|
|
64 |
GridBagConstraints gbc = new GridBagConstraints(); |
|
65 |
gbc.fill = GridBagConstraints.HORIZONTAL; |
|
66 |
gbc.weightx = 1.0; |
|
67 |
gbc.gridx = 0; |
|
68 |
gbc.gridy = 0; |
|
69 |
this.add(getDataStoreCreationPanel(), gbc); |
|
70 |
} |
|
71 |
|
|
72 |
/** |
|
73 |
* Gets a ComboBox |
|
74 |
* @return |
|
75 |
*/ |
|
76 |
public DataStoreParametersCreationPanel getDataStoreCreationPanel() { |
|
77 |
if(dataStoreCreationPanel == null) { |
|
78 |
dataStoreCreationPanel = new DefaultDataStoreParametersCreationPanel(); |
|
79 |
} |
|
80 |
return dataStoreCreationPanel; |
|
81 |
} |
|
82 |
|
|
83 |
public Object getOutputParameters() { |
|
84 |
NewDataStoreParameters newDataStoreParameters = |
|
85 |
getDataStoreCreationPanel().getDataStoreParameters(); |
|
86 |
DataServerExplorer dataServerExplorer = |
|
87 |
getDataStoreCreationPanel().getDataServerExplorer(); |
|
88 |
if ((newDataStoreParameters != null) && (dataServerExplorer != null)){ |
|
89 |
return new OutputParameters((NewFeatureStoreParameters)newDataStoreParameters, |
|
90 |
dataServerExplorer); |
|
91 |
}else{ |
|
92 |
return null; |
|
93 |
} |
|
94 |
} |
|
95 |
} |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.14/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.mainplugin/src/main/java/org/gvsig/geoprocess/sextante/gui/toolbox/ToolboxWindow.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.sextante.gui.toolbox; |
|
25 |
|
|
26 |
import java.awt.BorderLayout; |
|
27 |
import java.beans.PropertyChangeEvent; |
|
28 |
import java.beans.PropertyChangeListener; |
|
29 |
|
|
30 |
import javax.swing.ImageIcon; |
|
31 |
import javax.swing.JDialog; |
|
32 |
import javax.swing.JPanel; |
|
33 |
import javax.swing.JScrollPane; |
|
34 |
import javax.swing.JTree; |
|
35 |
import javax.swing.JViewport; |
|
36 |
import javax.swing.event.TreeExpansionEvent; |
|
37 |
import javax.swing.event.TreeExpansionListener; |
|
38 |
import javax.swing.tree.DefaultMutableTreeNode; |
|
39 |
import javax.swing.tree.DefaultTreeModel; |
|
40 |
|
|
41 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
42 |
import org.gvsig.andami.ui.mdiManager.IWindowListener; |
|
43 |
import org.gvsig.andami.ui.mdiManager.SingletonWindow; |
|
44 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
|
45 |
import org.gvsig.app.ApplicationLocator; |
|
46 |
import org.gvsig.app.ApplicationManager; |
|
47 |
import org.gvsig.app.project.Project; |
|
48 |
import org.gvsig.app.project.documents.ProjectDocumentListener; |
|
49 |
import org.gvsig.app.project.documents.view.ViewDocument; |
|
50 |
import org.gvsig.app.project.documents.view.gui.IView; |
|
51 |
import org.gvsig.fmap.mapcontext.layers.CancelationException; |
|
52 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
|
53 |
import org.gvsig.fmap.mapcontext.layers.LayerCollectionEvent; |
|
54 |
import org.gvsig.fmap.mapcontext.layers.LayerCollectionListener; |
|
55 |
import org.gvsig.fmap.mapcontext.layers.LayerPositionEvent; |
|
56 |
import org.gvsig.i18n.Messages; |
|
57 |
|
|
58 |
import es.unex.sextante.core.IInputFactory; |
|
59 |
import es.unex.sextante.gui.core.SextanteGUI; |
|
60 |
import es.unex.sextante.gui.toolbox.AlgorithmsPanel; |
|
61 |
import es.unex.sextante.gui.toolbox.IToolboxDialog; |
|
62 |
import es.unex.sextante.gui.toolbox.ToolboxPanel; |
|
63 |
|
|
64 |
/** |
|
65 |
* Geoprocess selector window. |
|
66 |
* |
|
67 |
* @author gvSIG Team |
|
68 |
* @version $Id$ |
|
69 |
*/ |
|
70 |
public class ToolboxWindow extends JPanel implements SingletonWindow, |
|
71 |
IWindowListener, LayerCollectionListener, PropertyChangeListener, |
|
72 |
ProjectDocumentListener, IToolboxDialog, TreeExpansionListener { |
|
73 |
|
|
74 |
private static final long serialVersionUID = 2205888138813789720L; |
|
75 |
private WindowInfo windowInfo; |
|
76 |
private ToolboxPanel toolboxPanel; |
|
77 |
private ApplicationManager manager = ApplicationLocator.getManager(); |
|
78 |
|
|
79 |
/** |
|
80 |
* Default constructor. |
|
81 |
*/ |
|
82 |
public ToolboxWindow() { |
|
83 |
IInputFactory inputFactory = SextanteGUI.getInputFactory(); |
|
84 |
if (inputFactory.getDataObjects() == null) { |
|
85 |
inputFactory.createDataObjects(); |
|
86 |
} |
|
87 |
|
|
88 |
windowInfo = |
|
89 |
new WindowInfo(WindowInfo.PALETTE | WindowInfo.MAXIMIZABLE |
|
90 |
| WindowInfo.RESIZABLE | WindowInfo.ICONIFIABLE); |
|
91 |
|
|
92 |
toolboxPanel = new ToolboxPanel(this, null, new ImageIcon()); |
|
93 |
windowInfo.setWidth(toolboxPanel.getWidth()); |
|
94 |
windowInfo.setHeight(toolboxPanel.getHeight()); |
|
95 |
windowInfo.setPersistence(true); |
|
96 |
this.setLayout(new BorderLayout(0, 0)); |
|
97 |
this.add(toolboxPanel); |
|
98 |
addListeners(); |
|
99 |
// removeBaseTreeText(true); |
|
100 |
} |
|
101 |
|
|
102 |
/** |
|
103 |
* Big ?apa to remove the word "Algorithm" |
|
104 |
* @deprecated the work has been changed in the own library |
|
105 |
*/ |
|
106 |
private void removeBaseTreeText(boolean register) { |
|
107 |
for (int i = 0; i < toolboxPanel.getComponentCount(); i++) { |
|
108 |
if(toolboxPanel.getComponent(i) instanceof AlgorithmsPanel) { |
|
109 |
AlgorithmsPanel p = (AlgorithmsPanel)toolboxPanel.getComponent(i); |
|
110 |
for (int j = 0; j < p.getComponentCount(); j++) { |
|
111 |
if(p.getComponent(j) instanceof JScrollPane) { |
|
112 |
JScrollPane scrollPane = (JScrollPane)p.getComponent(j); |
|
113 |
JViewport vp = scrollPane.getViewport(); |
|
114 |
for (int k = 0; k < vp.getComponentCount(); k++) { |
|
115 |
if(vp.getComponent(k) instanceof JTree) { |
|
116 |
JTree tree = (JTree)vp.getComponent(k); |
|
117 |
if(register) |
|
118 |
tree.addTreeExpansionListener(this); |
|
119 |
DefaultTreeModel model = (DefaultTreeModel)tree.getModel(); |
|
120 |
DefaultMutableTreeNode node = (DefaultMutableTreeNode)model.getRoot(); |
|
121 |
node.setUserObject(""); |
|
122 |
} |
|
123 |
} |
|
124 |
} |
|
125 |
} |
|
126 |
} |
|
127 |
} |
|
128 |
} |
|
129 |
|
|
130 |
private void addListeners() { |
|
131 |
doForEachFLayers(new FLayersAction() { |
|
132 |
|
|
133 |
public void performAction(FLayers layers) { |
|
134 |
layers.addLayerCollectionListener(ToolboxWindow.this); |
|
135 |
} |
|
136 |
}); |
|
137 |
} |
|
138 |
|
|
139 |
private void removeListeners() { |
|
140 |
doForEachFLayers(new FLayersAction() { |
|
141 |
|
|
142 |
public void performAction(FLayers layers) { |
Also available in: Unified diff