Revision 2279
org.gvsig.vectorediting/tags/org.gvsig.vectorediting-1.0.131/org.gvsig.vectorediting.app/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
|
|
3 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<groupId>org.gvsig</groupId> |
|
6 |
<artifactId>org.gvsig.vectorediting.app</artifactId> |
|
7 |
<packaging>pom</packaging> |
|
8 |
<version>1.0.131</version> |
|
9 |
<name>${project.artifactId}</name> |
|
10 |
<description>This plugin add to gvSIG a tool to show Vectorediting messages</description> |
|
11 |
<parent> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.vectorediting</artifactId> |
|
14 |
<version>1.0.131</version> |
|
15 |
</parent> |
|
16 |
<dependencyManagement> |
|
17 |
<dependencies> |
|
18 |
|
|
19 |
</dependencies> |
|
20 |
</dependencyManagement> |
|
21 |
|
|
22 |
<modules> |
|
23 |
<module>org.gvsig.vectorediting.app.mainplugin</module> |
|
24 |
</modules> |
|
25 |
|
|
26 |
</project> |
org.gvsig.vectorediting/tags/org.gvsig.vectorediting-1.0.131/org.gvsig.vectorediting.app/maven-howto.rst | ||
---|---|---|
1 |
|
|
2 |
================================== |
|
3 |
Usefull maven "howtos" and FAQs |
|
4 |
================================== |
|
5 |
|
|
6 |
.. contents:: |
|
7 |
|
|
8 |
How to reduce the process of "install" to run as fast as possible. |
|
9 |
------------------------------------------------------------------- |
|
10 |
|
|
11 |
Can reduce install execution skiping test execution and compilation, |
|
12 |
javadoc generation, test signature checking, license checking, and |
|
13 |
attach sources in jar. |
|
14 |
|
|
15 |
mvn -Danimal.sniffer.skip=true -Dmaven.test.skip=true -Dsource.skip=true -DskipTests -Dmaven.javadoc.skip=true install |
|
16 |
|
|
17 |
How to increment the build number of gvSIG plugins |
|
18 |
---------------------------------------------------- |
|
19 |
|
|
20 |
To increase the build number of gvSIG plugins, yo can do: |
|
21 |
|
|
22 |
mvn -Dincrease-build-number process-sources |
|
23 |
|
|
24 |
How to deploy a package of a gvSIG plugin |
|
25 |
-------------------------------------------- |
|
26 |
|
|
27 |
Yo can deploy the package of a gvSIG plugin with: |
|
28 |
|
|
29 |
mvn -Ddeploy-package -Duser=USER -Dpassword=PASSWORD install |
|
30 |
|
|
31 |
Notes: |
|
32 |
- Require that the gvsig.package.info.poolURL property that this set to the correct value. |
|
33 |
- The process uses WEBDAV to upload the packages, gvspkg and gvspki, and require |
|
34 |
access to write in the location specified by gvsig.package.info.poolURL |
|
35 |
- If "user" or "password" is not present, the process ask its each time it need. |
|
36 |
- If folder specified in gvsig.package.info.poolURL does not exist, the process try to create it. |
|
37 |
- The process create a file "addon-request.txt" in the target with the information to |
|
38 |
add to the ticket to request the update of the package in the main repository of |
|
39 |
packages of gvSIG. |
|
40 |
|
|
41 |
How to skip attach sources in jar from command line |
|
42 |
------------------------------------------------------ |
|
43 |
|
|
44 |
If in the project is enabled by default the generation of jar whith |
|
45 |
the sources of the project, you can disable this setting the property |
|
46 |
"source.skip" to true in the command line:: |
|
47 |
|
|
48 |
mvn -Dsource.skip=true install |
|
49 |
|
|
50 |
How to skip test compile from command line |
|
51 |
-------------------------------------------- |
|
52 |
|
|
53 |
You can skip the compilation of test setting the propety "maven.test.skip" |
|
54 |
to true in the command line:: |
|
55 |
|
|
56 |
mvn -Dmaven.test.skip=true install |
|
57 |
|
|
58 |
|
|
59 |
How to skip test execution from command line |
|
60 |
---------------------------------------------- |
|
61 |
|
|
62 |
You can skip the tests execution setting the propety "skipTests" to true |
|
63 |
in the command line:: |
|
64 |
|
|
65 |
mvn -DskipTests install |
|
66 |
|
|
67 |
How to skip javadoc generation from command line |
|
68 |
-------------------------------------------------- |
|
69 |
|
|
70 |
You can skip the javadoc generation setting the property |
|
71 |
"maven.javadoc.skip" to true in the command line:: |
|
72 |
|
|
73 |
mvn -Dmaven.javadoc.skip=true install |
|
74 |
|
|
75 |
How to skip test signature cheks from command line |
|
76 |
--------------------------------------------------- |
|
77 |
|
|
78 |
You can skip the signature check setting the property |
|
79 |
"animal.sniffer.skip" to true in the command line:: |
|
80 |
|
|
81 |
mvn -Danimal.sniffer.skip=true install |
|
82 |
|
|
83 |
How to install a project without install submodules |
|
84 |
---------------------------------------------------------- |
|
85 |
|
|
86 |
To install a project with submodules and only install the |
|
87 |
parent project without submodules use the option "--non-recursive" :: |
|
88 |
|
|
89 |
mvn --non-recursive install |
|
90 |
|
|
91 |
|
|
92 |
How to skip test compilation |
|
93 |
-------------------------------- |
|
94 |
|
|
95 |
To configure a project to don't run the compilation |
|
96 |
of test you can add to this pom the next configuration of |
|
97 |
the plugin "maven-compiler-plugin":: |
|
98 |
|
|
99 |
<build> |
|
100 |
<plugins> |
|
101 |
... |
|
102 |
<plugin> |
|
103 |
<!-- Skip compilation tests --> |
|
104 |
<groupId>org.apache.maven.plugins</groupId> |
|
105 |
<artifactId>maven-compiler-plugin</artifactId> |
|
106 |
<executions> |
|
107 |
<execution> |
|
108 |
<id>default-testCompile</id> |
|
109 |
<phase>process-test-sources</phase> |
|
110 |
<goals> |
|
111 |
<goal>testCompile</goal> |
|
112 |
</goals> |
|
113 |
<configuration> |
|
114 |
<skip>true</skip> |
|
115 |
</configuration> |
|
116 |
</execution> |
|
117 |
</executions> |
|
118 |
</plugin> |
|
119 |
... |
|
120 |
</plugins> |
|
121 |
</build> |
|
122 |
|
|
123 |
Skip test execution |
|
124 |
---------------------- |
|
125 |
|
|
126 |
To configure a project to don't run the execution |
|
127 |
of test you can add to this pom the next configuration of |
|
128 |
the plugin "maven-surefire-plugin":: |
|
129 |
|
|
130 |
|
|
131 |
<build> |
|
132 |
<plugins> |
|
133 |
... |
|
134 |
<plugin> |
|
135 |
<!-- Skip test execution --> |
|
136 |
<groupId>org.apache.maven.plugins</groupId> |
|
137 |
<artifactId>maven-surefire-plugin</artifactId> |
|
138 |
<configuration> |
|
139 |
<skipTests>true</skipTests> |
|
140 |
</configuration> |
|
141 |
</plugin> |
|
142 |
... |
|
143 |
</plugins> |
|
144 |
</build> |
|
145 |
|
|
146 |
Continue on test failure |
|
147 |
----------------------------- |
|
148 |
|
|
149 |
You can configure a project to continue on test execution |
|
150 |
failure. To do this add to the pom of the project the next |
|
151 |
configuration of plugin "maven-surefire-plugin" :: |
|
152 |
|
|
153 |
<build> |
|
154 |
<plugins> |
|
155 |
... |
|
156 |
<plugin> |
|
157 |
<!-- Continue on test failure --> |
|
158 |
<groupId>org.apache.maven.plugins</groupId> |
|
159 |
<artifactId>maven-surefire-plugin</artifactId> |
|
160 |
<configuration> |
|
161 |
<testFailureIgnore>true</testFailureIgnore> |
|
162 |
</configuration> |
|
163 |
</plugin> |
|
164 |
... |
|
165 |
</plugins> |
|
166 |
</build> |
|
167 |
|
|
168 |
|
|
169 |
Set java compatibility |
|
170 |
-------------------------- |
|
171 |
|
|
172 |
To set the compatibility with a java version add to the |
|
173 |
pom of the project the next configuration of plugin |
|
174 |
"maven-compiler-plugin" :: |
|
175 |
|
|
176 |
<build> |
|
177 |
<plugins> |
|
178 |
... |
|
179 |
<plugin> |
|
180 |
<!-- Set java compatibility --> |
|
181 |
<groupId>org.apache.maven.plugins</groupId> |
|
182 |
<artifactId>maven-compiler-plugin</artifactId> |
|
183 |
<configuration> |
|
184 |
<source>1.5</source> |
|
185 |
<target>1.5</target> |
|
186 |
<encoding>ISO-8859-1</encoding> |
|
187 |
</configuration> |
|
188 |
</plugin> |
|
189 |
... |
|
190 |
</plugins> |
|
191 |
</build> |
|
192 |
|
|
193 |
Packaging tests in jar |
|
194 |
------------------------ |
|
195 |
|
|
196 |
Test classes do not packaging in jar by default. |
|
197 |
To packing add to pom:: |
|
198 |
|
|
199 |
<build> |
|
200 |
<plugins> |
|
201 |
... |
|
202 |
<plugin> |
|
203 |
<!-- Packaging tests in jar --> |
|
204 |
<groupId>org.apache.maven.plugins</groupId> |
|
205 |
<artifactId>maven-jar-plugin</artifactId> |
|
206 |
<executions> |
|
207 |
<!-- Generates a jar file only with the test classes --> |
|
208 |
<execution> |
|
209 |
<goals> |
|
210 |
<goal>test-jar</goal> |
|
211 |
</goals> |
|
212 |
<configuration> |
|
213 |
<includes> |
|
214 |
<include>**/**</include> |
|
215 |
</includes> |
|
216 |
</configuration> |
|
217 |
</execution> |
|
218 |
</executions> |
|
219 |
</plugin> |
|
220 |
... |
|
221 |
</plugins> |
|
222 |
</build> |
|
223 |
|
|
224 |
How to set a dependency with tests jar |
|
225 |
----------------------------------------- |
|
226 |
|
|
227 |
You can set a dependency with a test jar adding to |
|
228 |
the declaration of the dependency the scope of |
|
229 |
test and the type of "test-jar":: |
|
230 |
|
|
231 |
<dependency> |
|
232 |
<groupId>...</groupId> |
|
233 |
<artifactId>...</artifactId> |
|
234 |
<type>test-jar</type> |
|
235 |
<scope>test</scope> |
|
236 |
</dependency> |
|
237 |
|
|
238 |
How use ant in maven |
|
239 |
------------------------- |
|
240 |
|
|
241 |
You can use ant embed in the pom of you project. |
|
242 |
To do this use:: |
|
243 |
|
|
244 |
<plugin> |
|
245 |
<artifactId>maven-antrun-plugin</artifactId> |
|
246 |
<version>1.7</version> |
|
247 |
<executions> |
|
248 |
<execution> |
|
249 |
<phase>generate-sources</phase> |
|
250 |
<configuration> |
|
251 |
<target> |
|
252 |
<echo>Hello world!</echo> |
|
253 |
</target> |
|
254 |
</configuration> |
|
255 |
<goals> |
|
256 |
<goal>run</goal> |
|
257 |
</goals> |
|
258 |
</execution> |
|
259 |
</executions> |
|
260 |
</plugin> |
|
261 |
|
|
262 |
Fail when execute "mvn deploy" with "No connector available" |
|
263 |
------------------------------------------------------------- |
|
264 |
|
|
265 |
When execute a "mvn deploy" fail with the error:: |
|
266 |
|
|
267 |
[INFO] ------------------------------------------------------------------------ |
|
268 |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy |
|
269 |
(default-deploy) on project org.gvsig.desktop: Failed to deploy artifacts/metadata: |
|
270 |
No connector available to access repository gvsig-repository (dav:https://devel.gvsig.org/m2repo/j2se) |
|
271 |
of type default using the available factories WagonRepositoryConnectorFactory -> [Help 1] |
|
272 |
[ERROR] |
|
273 |
|
|
274 |
This happens to be configured the webdav wagon as an extension in the section "build":: |
|
275 |
|
|
276 |
... |
|
277 |
<build> |
|
278 |
<extensions> |
|
279 |
<extension> |
|
280 |
<groupId>org.apache.maven.wagon</groupId> |
|
281 |
<artifactId>wagon-webdav-jackrabbit</artifactId> |
|
282 |
<version>1.0-beta-7</version> |
|
283 |
</extension> |
|
284 |
</extensions> |
|
285 |
... |
|
286 |
|
|
287 |
Fail when execute "mvn release: prepare" with "svn command failed... Could not authenticate" |
|
288 |
------------------------------------------------------------------------------------------------ |
|
289 |
|
|
290 |
When running "mvn release: prepare" updates poms, compiles, and then |
|
291 |
fails with the following error :: |
|
292 |
|
|
293 |
[INFO] ------------------------------------------------------------------------ |
|
294 |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:prepare |
|
295 |
(default-cli) on project org.gvsig.desktop: Unable to commit files |
|
296 |
[ERROR] Provider message: |
|
297 |
[ERROR] The svn command failed. |
|
298 |
[ERROR] Command output: |
|
299 |
[ERROR] svn: Commit failed (details follow): |
|
300 |
[ERROR] svn: MKACTIVITY of '/svn/gvsig-desktop/!svn/act/931a27bc-57e8-45d9-adcd-5a2cf54a7045': |
|
301 |
authorization failed: Could not authenticate to server: rejected Basic challenge (https://devel.gvsig.org) |
|
302 |
[ERROR] -> [Help 1] |
|
303 |
[ERROR] |
|
304 |
[ERROR] |
|
305 |
|
|
306 |
Apparently maven in linux system use the svn of system and if you're not |
|
307 |
authenticated when trying to access to the repository, svn fails. |
|
308 |
|
|
309 |
This is solved by executing a commit from the command line on |
|
310 |
some file of the project (only if you have not enabled the option |
|
311 |
"store-passwords = no" in $ HOME / .subversion / config). For example, you |
|
312 |
can add or remove at the end of "pom.xml" a blank line and then run |
|
313 |
from the command line :: |
|
314 |
|
|
315 |
svn ci -m "" pom.xml |
|
316 |
|
|
317 |
Another option that works on Windows in declaring the user and password in the command: |
|
318 |
|
|
319 |
mvn release:prepare -Dusername=[username] -Dpassword=[password] |
|
320 |
|
|
321 |
|
org.gvsig.vectorediting/tags/org.gvsig.vectorediting-1.0.131/org.gvsig.vectorediting.app/org.gvsig.vectorediting.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Thu Oct 29 13:53:22 CET 2020 |
|
2 |
buildNumber=137 |
org.gvsig.vectorediting/tags/org.gvsig.vectorediting-1.0.131/org.gvsig.vectorediting.app/org.gvsig.vectorediting.app.mainplugin/src/test/resources/README.txt | ||
---|---|---|
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 |
|
|
27 |
Put into this folder the resources needed by your test classes. |
|
28 |
|
|
29 |
This folder is added to the Tests classpath, so you can load any resources |
|
30 |
through the ClassLoader. |
|
31 |
|
|
32 |
By default, in this folder you can find an example of log4j configuration, |
|
33 |
prepared to log messages through the console, so logging works when you |
|
34 |
run your tests classes. |
org.gvsig.vectorediting/tags/org.gvsig.vectorediting-1.0.131/org.gvsig.vectorediting.app/org.gvsig.vectorediting.app.mainplugin/src/test/resources/log4j.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1" ?> |
|
2 |
<!-- |
|
3 |
|
|
4 |
gvSIG. Desktop Geographic Information System. |
|
5 |
|
|
6 |
Copyright (C) 2007-2012 gvSIG Association. |
|
7 |
|
|
8 |
This program is free software; you can redistribute it and/or |
|
9 |
modify it under the terms of the GNU General Public License |
|
10 |
as published by the Free Software Foundation; either version 2 |
|
11 |
of the License, or (at your option) any later version. |
|
12 |
|
|
13 |
This program is distributed in the hope that it will be useful, |
|
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
GNU General Public License for more details. |
|
17 |
|
|
18 |
You should have received a copy of the GNU General Public License |
|
19 |
along with this program; if not, write to the Free Software |
|
20 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
21 |
MA 02110-1301, USA. |
|
22 |
|
|
23 |
For any additional information, do not hesitate to contact us |
|
24 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
25 |
|
|
26 |
--> |
|
27 |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> |
|
28 |
|
|
29 |
<!-- |
|
30 |
Log4J configuration file for unit tests execution. |
|
31 |
--> |
|
32 |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> |
|
33 |
|
|
34 |
<!-- Appender configuration to show logging messages through the console --> |
|
35 |
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> |
|
36 |
<layout class="org.apache.log4j.PatternLayout"> |
|
37 |
<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n %m%n" /> |
|
38 |
</layout> |
|
39 |
</appender> |
|
40 |
|
|
41 |
<!-- |
|
42 |
Activate logging messages of DEBUG level of higher only for the |
|
43 |
org.gvsig.tools packages. |
|
44 |
You can put full classes names or packages instead, to configure |
|
45 |
logging for all the classes and subpackages of the package. |
|
46 |
--> |
|
47 |
<category name="org.gvsig.tools"> |
|
48 |
<priority value="DEBUG" /> |
|
49 |
</category> |
|
50 |
<category name="org.gvsig.vectorediting"> |
|
51 |
<priority value="DEBUG" /> |
|
52 |
</category> |
|
53 |
|
|
54 |
<!-- |
|
55 |
By default, show only logging messages of INFO level or higher, |
|
56 |
through the previously configured CONSOLE appender. |
|
57 |
--> |
|
58 |
<root> |
|
59 |
<priority value="INFO" /> |
|
60 |
<appender-ref ref="CONSOLE" /> |
|
61 |
</root> |
|
62 |
</log4j:configuration> |
org.gvsig.vectorediting/tags/org.gvsig.vectorediting-1.0.131/org.gvsig.vectorediting.app/org.gvsig.vectorediting.app.mainplugin/src/main/resources-plugin/i18n/text.properties | ||
---|---|---|
1 |
start_editing = Comenzar edici\u00f3n |
|
2 |
end_editing = Terminar edici\u00f3n |
|
3 |
insert_point = Insertar punto |
|
4 |
insert_multipoint = Insertar MultiPunto |
|
5 |
insert_line = Insertar l\u00ednea |
|
6 |
insert_arc = Insertar arco |
|
7 |
insert_arc_by_center = Insertar arco seg\u00fan centro |
|
8 |
insert_arc_three_points = Insertar arco seg\u00fan tres puntos |
|
9 |
insert_circle_cr = Insertar c\u00edrculo (centro y radio) |
|
10 |
insert_circumference_cr = Insertar circunferencia (centro y radio) |
|
11 |
insert_circle_3p = Insertar c\u00edrculo (tres puntos) |
|
12 |
insert_circle_tantanradius = Insertar c\u00edrculo (tan, tan, radio) |
|
13 |
insert_circumference_3p = Insertar circunferencia (tres puntos) |
|
14 |
insert_circumference_tantanradius = Insertar circunferencia (tan, tan, radio) |
|
15 |
insert_circle_2tg1p = Insertar c\u00edrculo (2 tangentes y 1 punto) |
|
16 |
insert_circumference_2tg1p = Insertar circunferencia (2 tangentes y 1 punto) |
|
17 |
insert_ellipse = Insertar elipse |
|
18 |
insert_filled_ellipse = Insertar elipse rellena |
|
19 |
insert_ellipse_center_axes = Insertar elipse (centro y ejes) |
|
20 |
insert_filled_ellipse_center_axes = Insertar elipse rellena (centro y ejes) |
|
21 |
insert_polyline = Insertar polil\u00ednea |
|
22 |
insert_polygon = Insertar pol\u00edgono |
|
23 |
insert_regular_polygon = Insertar pol\u00edgono regular |
|
24 |
insert_filled_regular_polygon = Insertar pol\u00edgono regular relleno |
|
25 |
insert_rectangle = Insertar rect\u00e1ngulo |
|
26 |
insert_filled_rectangle = Insertar rect\u00e1ngulo relleno |
|
27 |
insert_spline= Insertar curva spline |
|
28 |
insert_filled_spline = Insertar curva spline rellena |
|
29 |
insert_rectangular_matrix = Matriz rectangular de geometr\u00edas |
|
30 |
insert_polar_matrix = Matriz polar de geometr\u00edas |
|
31 |
modify_internal_polygon = Pol\u00edgono interno |
|
32 |
modify_explode_geometry = Descomponer geometr\u00eda |
|
33 |
modify_move = Mover geometr\u00eda |
|
34 |
modify_rotate = Rotar geometr\u00eda |
|
35 |
modify_duplicate = Duplicar geometr\u00eda |
|
36 |
modify_split_line = Partir linea por un punto |
|
37 |
modify_split = Partir geometr\u00eda |
|
38 |
modify_scale = Escalar geometr\u00eda |
|
39 |
modify_simplify = Simplificar geometr\u00eda |
|
40 |
modify_join = Unir geometr\u00edas |
|
41 |
insert_autopolygon = Insertar autopol\u00edgono |
|
42 |
modify_stretch = Estirar geometr\u00eda |
|
43 |
modify_extend_line = Alargar l\u00ednea hasta objeto |
|
44 |
modify_trim_line = Recortar l\u00ednea por un objeto |
|
45 |
modify_edit_vertex = Editar v\u00e9rtice |
|
46 |
modify_convert_to_polyline= Convertir a polil\u00ednea |
|
47 |
modify_reverse_direction=Invertir direcci\u00f3n |
|
48 |
uniqueselection = Seleccione una \u00fanica geometr\u00eda |
|
49 |
selectvertex = Seleccione un v\u00e9rtice |
|
50 |
new_position = Nueva posici\u00f3n |
|
51 |
new_position_or_z_value = Nueva posici\u00f3n o valor Z |
|
52 |
insert_vertex = Insertar v\u00e9rtice |
|
53 |
remove_vertex = Eliminar v\u00e9rtice |
|
54 |
selection=Selecci\u00f3n |
|
55 |
invalid_option=Opci\u00f3n no v\u00e1lida |
|
56 |
center=Centro |
|
57 |
radius=Radio |
|
58 |
save_changes_performed=Guardar cambios realizados |
|
59 |
discard= Descartar |
|
60 |
discard_and_loose_changes= Descartar cambios y perder los cambios |
|
61 |
continue= Continuar |
|
62 |
do_not_save_yet_stay_in_editing_mode= No guardar los cambios y seguir en modo edici\u00f3n |
|
63 |
indicate_new_point= Indique un nuevo punto |
|
64 |
arc_mode = Modo arco |
|
65 |
line_mode = Modo l\u00ednea |
|
66 |
select_new_tool= Seleccione una nueva herramienta |
|
67 |
draw_geometry_to_internal_polygon= Seleccione una herramienta para dibujar un pol\u00edgono interno |
|
68 |
draw_geometry_to_autopolygon = Seleccione una herramienta para dibujar un autopol\u00edgono |
|
69 |
draw_geometry_to_split = Seleccione una herramienta para partir las geometr\u00edas |
|
70 |
draw_geometry_to_select_vertex = Seleccione una herramienta poligonal para seleccionar v\u00e9rtices |
|
71 |
save = Guardar |
|
72 |
discard = Descartar |
|
73 |
continue = Continuar |
|
74 |
export = Exportar |
|
75 |
ask_save_layer = \u00bfDesea guardar la capa |
|
76 |
can_not_write_layer = No existe writer para este formato de capa o no tiene permisos de escritura.\n\u00bfQu\u00e9 desea hacer? |
|
77 |
save_changes_performed = Guardar cambios realizados |
|
78 |
discard_and_loose_changes = Descartar y perder los cambios |
|
79 |
export_to_another_format = Exportar a otro formato |
|
80 |
do_not_save_yet_stay_in_editing_mode = No guardar los cambios y seguir editando |
|
81 |
first_point= Primer punto |
|
82 |
second_point= Segundo punto |
|
83 |
third_point= Tercer punto |
|
84 |
start_point= Punto de inicio |
|
85 |
middle_point= Punto medio |
|
86 |
end_point= Punto final |
|
87 |
first_point_A_axis = Primer punto del eje A |
|
88 |
second_point_A_axis = Segundo punto del eje A |
|
89 |
length_of_B_axis= Longitud del eje B |
|
90 |
length_of_B_semiaxis= Longitud del semieje B |
|
91 |
point_A_axis = Punto del eje A |
|
92 |
inscribed = Inscrito |
|
93 |
circumscribed = Circunscrito |
|
94 |
sides_of_regular_polygon = Indique los lados del poligono regular |
|
95 |
center_of_regular_polygon = Centro del pol\u00edguno regular |
|
96 |
point_of_circle = Punto del c\u00edrculo del pol\u00edgono |
|
97 |
first_point_of_the_first_line = Primer punto de la primera l\u00ednea |
|
98 |
second_point_of_the_first_line = Segundo punto de la primera l\u00ednea |
|
99 |
first_point_of_the_second_line = Primer punto de la segunda l\u00ednea |
|
100 |
second_point_of_the_second_line = Segundo punto de la segunda l\u00ednea |
|
101 |
point_near_center = Punto cercano al centro |
|
102 |
point_near_tangent_in_first_geometry = Punto cercano a la tangente en la primera geometr\u00eda |
|
103 |
point_near_tangent_in_second_geometry = Punto cercano a la tangente en la segunda geometr\u00eda |
|
104 |
radius = Radio |
|
105 |
sides = Lados |
|
106 |
key_arc_mode = A |
|
107 |
key_line_mode = L |
|
108 |
key_close = C |
|
109 |
key_finish = F |
|
110 |
key_inscribed = I |
|
111 |
key_circumscribed = C |
|
112 |
key_remove_last_point = Q |
|
113 |
remove_last_point = Quitar \u00faltimo punto |
|
114 |
close_polyline = Cerrar polil\u00ednea |
|
115 |
close_spline = Cerrar curva spline |
|
116 |
new_point = Nuevo punto |
|
117 |
new_value = Nuevo valor |
|
118 |
finished = finalizada |
|
119 |
center_of_rotation = Centro de rotaci\u00f3n |
|
120 |
angle_of_rotation = \u00c1ngulo de rotaci\u00f3n (grados) |
|
121 |
origin_point = Origen |
|
122 |
scale_factor_or_reference_point = Factor de escala o punto de referencia |
|
123 |
second_scale_point = Segundo punto para la escala |
|
124 |
tolerance = Tolerancia |
|
125 |
line_to_extend = Seleccione l\u00ednea para alargar |
|
126 |
line_to_trim = Seleccione l\u00ednea para partir |
|
127 |
modify_smooth_line = Suavizar l\u00ednea |
|
128 |
intermediate_steps_1_9 = Pasos intermedios [1,9] |
|
129 |
algorithm = algoritmo |
|
130 |
natural_cubic_splines = Splines c\u00fabicos naturales |
|
131 |
bezier_curves = Curvas B\u00e9zier |
|
132 |
b_splines = B-splines |
|
133 |
key_natural_cubic_splines = 1 |
|
134 |
key_bezier_curves = 2 |
|
135 |
key_b_splines = 3 |
|
136 |
columns_number = N\u00famero de columnas |
|
137 |
rows_number = N\u00famero de filas |
|
138 |
distance_between_columns = Distancia entre columnas |
|
139 |
distance_between_rows = Distancia entre filas |
|
140 |
key_yes= S |
|
141 |
key_no = N |
|
142 |
yes = Si |
|
143 |
no = No |
|
144 |
number_of_total_elements = N\u00famero de elementos totales |
|
145 |
rotate_elements = Rotar elementos? |
|
146 |
angle_between_elements = Angulo entre elementos |
|
147 |
modify = modificar |
|
148 |
insert = insertar |
|
149 |
Modify = Modificar |
|
150 |
Insert = Insertar |
|
151 |
_The_layer_is_reproyected_on_the_fly_Not_all_editing_tools_work_properly_When_you_finish_editing_will_only_export_the_changes_to_another_layer=La capa esta reproyectada el vuelo.\nNo todas las herramientas de edici\u00f3n funcionar\u00e1n correctamente.\nCuando termine edici\u00f3n solo podra exportar los cambios a otra capa. |
|
152 |
_Do_you_want_to_finish_editing_If_not_exported_the_data_the_changes_will_be_lost=\u00bf Desea terminar la edici\u00f3n ?\nSi no ha exportado los datos y termina edici\u00f3n, los cambios realizados se perder\u00e1n. |
|
153 |
_Cant_finish_editing_See_the_error_log_for_more_information=No se puede terminar la edici\u00f3n.\nConsulte el registro de errores para mas informaci\u00f3n. |
|
154 |
_The_layer_can_not_be_written_When_you_finish_editing_will_only_export_the_changes_to_another_layer=No puede escribirse en la capa.\nCuando termine edici\u00f3n solo podra exportar los cambios a otra capa. |
|
155 |
remove_selected_geometries=Eliminar geometr\u00edas seleccionadas |
|
156 |
_Use_a_point_previously_captured=Usar un punto capturado previamente. |
|
157 |
_Enter_the_coordinates_manually=Introducir las coordenadas manualmente. |
|
158 |
start_angle = \u00c1ngulo inicial |
|
159 |
sweep_angle = \u00c1ngulo de barrido |
|
160 |
center_point = Centro |
|
161 |
_graphic_distance = Distancia gr\u00e1fica |
|
162 |
geometry_to_extend_to=Geometr\u00eda hasta la que extender |
|
163 |
geometry_to_trim_with=Geometr\u00eda con la que recortar |
|
164 |
shearing_point=Punto de recorte |
org.gvsig.vectorediting/tags/org.gvsig.vectorediting-1.0.131/org.gvsig.vectorediting.app/org.gvsig.vectorediting.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties | ||
---|---|---|
1 |
start_editing = Start editing |
|
2 |
end_editing = End editing |
|
3 |
insert_point = Insert point |
|
4 |
insert_multipoint = Insert MultiPoint |
|
5 |
insert_line = Insert line |
|
6 |
insert_arc = Insert arc |
|
7 |
insert_arc_by_center = Insert arc by center |
|
8 |
insert_arc_three_points = Insert arc by three points |
|
9 |
insert_circle_cr=Insert circle (center & radius) |
|
10 |
insert_circumference_cr=Insert circumference (center & radius) |
|
11 |
insert_circle_3p = Insert circle (three point) |
|
12 |
insert_circle_tantanradius = Insert circle (tan, tan, radius) |
|
13 |
insert_circumference_3p = Insert circumference (three points) |
|
14 |
insert_circumference_tantanradius = Insert circumference (tan, tan, radius) |
|
15 |
insert_ellipse = Insert ellipse |
|
16 |
insert_filled_ellipse = Insert filled ellipse |
|
17 |
insert_ellipse_center_axes = Insert ellipse (center & axes) |
|
18 |
insert_filled_ellipse_center_axes = Insert filled ellipse (center & axes) |
|
19 |
insert_polyline = Insert polyline |
|
20 |
insert_polygon = Insert polygon |
|
21 |
insert_regular_polygon = Insert regular polygon |
|
22 |
insert_filled_regular_polygon = Insert filled regular polygon |
|
23 |
insert_rectangle = Insert rectangle |
|
24 |
insert_filled_rectangle = Insert filled rectangle |
|
25 |
insert_spline= Insert spline curve |
|
26 |
insert_filled_spline = Insert filled spline |
|
27 |
insert_rectangular_matrix = Rectangular matrix of geometries |
|
28 |
insert_polar_matrix = Polar matrix of geometries |
|
29 |
modify_internal_polygon = Internal polygon |
|
30 |
modify_explode_geometry = Explode geometry |
|
31 |
modify_move = Move geometry |
|
32 |
modify_rotate = Rotate geometry |
|
33 |
modify_duplicate = Duplicate geometry |
|
34 |
modify_split_line = Split line open by a point |
|
35 |
modify_split = Split geometry |
|
36 |
modify_scale = Scale geometry |
|
37 |
modify_simplify = Simplify geometry |
|
38 |
insert_autopolygon = Insert autopolygon |
|
39 |
modify_join = Join geometries |
|
40 |
modify_stretch = Stretch geometry |
|
41 |
modify_extend_line = Extend line to object |
|
42 |
modify_trim_line = Trim line by object |
|
43 |
modify_edit_vertex = Edit vertex |
|
44 |
modify_convert_to_polyline= Convert to polyline |
|
45 |
modify_reverse_direction=Reverse direction |
|
46 |
uniqueselection = Select only one geometry |
|
47 |
selectvertex = Select a vertex |
|
48 |
new_position = New position |
|
49 |
new_position_or_z_value = New position or Z value |
|
50 |
insert_vertex = Insertr vertex |
|
51 |
remove_vertex = Remove vertex |
|
52 |
selection=Selection |
|
53 |
invalid_option=Invalid option |
|
54 |
center=Center |
|
55 |
radius=Radius |
|
56 |
save_changes_performed=Save changed performed |
|
57 |
discard= Discard |
|
58 |
discard_and_loose_changes= Discard changes and loose changes |
|
59 |
continue= Continue |
|
60 |
do_not_save_yet_stay_in_editing_mode= Don't save changes and continue editing |
|
61 |
indicate_new_point= Indicate new point |
|
62 |
arc_mode = Arc mode |
|
63 |
line_mode = Line mode |
|
64 |
select_new_tool= Select a new tool |
|
65 |
draw_geometry_to_interal_polygon= Select tool to draw a internal polygon |
|
66 |
draw_geometry_to_autopolygon = Select tool to draw an autopolygon |
|
67 |
draw_geometry_to_split = Select tool to split selected geometries |
|
68 |
draw_geometry_to_select_vertex = Select a polygonal tool to select vertex |
|
69 |
save = Save |
|
70 |
discard = Discard |
|
71 |
continue = Continue |
|
72 |
export = Export |
|
73 |
ask_save_layer = Would you really like to save the layer |
|
74 |
can_not_write_layer = There are not writer for this layer format or you don't have write permissions.\nWhat do you want to do? |
|
75 |
save_changes_performed = Save changed performed |
|
76 |
discard_and_loose_changes = Discard and loose changes |
|
77 |
export_to_another_format = Export to another format |
|
78 |
do_not_save_yet_stay_in_editing_mode = Do not save changes and continue editing |
|
79 |
first_point= First point |
|
80 |
second_point= Second point |
|
81 |
start_point= Start point |
|
82 |
middle_point= Middle point |
|
83 |
third_point= Third point |
|
84 |
end_point= End point |
|
85 |
first_point_A_axis = First point of A axis |
|
86 |
second_point_A_axis = Second point of A axis |
|
87 |
length_of_B_axis= Length of B axis |
|
88 |
length_of_B_semiaxis= Length of B semiaxis |
|
89 |
point_A_axis = Punto del eje A |
|
90 |
inscribed = Inscribed |
|
91 |
circumscribed = Circumscribed |
|
92 |
sides_of_regular_polygon = Indicate sides of regular polygon |
|
93 |
center_of_regular_polygon = Center of regular polygon |
|
94 |
point_of_circle = Point of circle of polygon |
|
95 |
first_point_of_the_first_line = First point of the first line |
|
96 |
second_point_of_the_first_line = Second point of the first line |
|
97 |
first_point_of_the_second_line = First point of the second line |
|
98 |
second_point_of_the_second_line = Second point of the second line |
|
99 |
point_near_center = Point near center |
|
100 |
point_near_tangent_in_first_geometry = Point near tangent in first geometry |
|
101 |
point_near_tangent_in_second_geometry = Point near tangent in second geometry |
|
102 |
radius = Radius |
|
103 |
sides = Sides |
|
104 |
key_arc_mode = A |
|
105 |
key_line_mode = L |
|
106 |
key_close = C |
|
107 |
key_finish = F |
|
108 |
key_inscribed = I |
|
109 |
key_circumscribed = C |
|
110 |
key_remove_last_point = R |
|
111 |
remove_last_point = Remove last point |
|
112 |
close_polyline = Close polyline |
|
113 |
close_spline = Close spline curve |
|
114 |
new_point = New point |
|
115 |
new_value = New value |
|
116 |
finished = finished |
|
117 |
center_of_rotation=Center of rotation |
|
118 |
angle_of_rotation=Angle of rotation (degree) |
|
119 |
origin_point = Origin |
|
120 |
scale_factor_or_reference_point = Scale factor or reference point |
|
121 |
second_scale_point = Second scale point |
|
122 |
tolerance = Tolerance |
|
123 |
line_to_extend = Select line to extend |
|
124 |
line_to_trim = Select line to trim |
|
125 |
modify_smooth_line = Smooth line |
|
126 |
intermediate_steps_1_9 = Intermediate steps [1,9] |
|
127 |
algorithm = algorithm |
|
128 |
natural_cubic_splines = Natural cubic splines |
|
129 |
bezier_curves = Bezier curves |
|
130 |
b_splines = B-splines |
|
131 |
key_natural_cubic_splines = 1 |
|
132 |
key_bezier_curves = 2 |
|
133 |
key_b_splines = 3 |
|
134 |
columns_number = Number of columns |
|
135 |
rows_number = Number of rows |
|
136 |
distance_between_columns = Distance between columns |
|
137 |
distance_between_rows = Distance between rows |
|
138 |
key_yes= Y |
|
139 |
key_no = N |
|
140 |
yes = Yes |
|
141 |
no = No |
|
142 |
number_of_total_elements = Number of total elements |
|
143 |
rotate_elements = Rotate elements? |
|
144 |
angle_between_elements = Angle between elements |
|
145 |
modify = modify |
|
146 |
insert = insert |
|
147 |
Modify = Modify |
|
148 |
Insert = Insert |
|
149 |
_The_layer_is_reproyected_on_the_fly_Not_all_editing_tools_work_properly_When_you_finish_editing_will_only_export_the_changes_to_another_layer=The layer is reproyected on the fly.\nNot all editing tools work properly.\nWhen you finish editing will only export the changes to another layer will be allowed. |
|
150 |
_Do_you_want_to_finish_editing_If_not_exported_the_data_the_changes_will_be_lost=Do you want to finish editing?\nIf not exported the data and finish editing, the changes will be lost. |
|
151 |
_Cant_finish_editing_See_the_error_log_for_more_information=Unable to finish editing.\nSee the error log for more information |
|
152 |
_The_layer_can_not_be_written_When_you_finish_editing_will_only_export_the_changes_to_another_layer=The layer can not be written.\nWhen you finish editing will only export the changes to another layer will be allowed. |
|
153 |
remove_selected_geometries=Remove selected geometries |
|
154 |
_Use_a_point_previously_captured=Use a point previously captured. |
|
155 |
_Enter_the_coordinates_manually=Enter the coordinates manually. |
|
156 |
start_angle = Start angle |
|
157 |
sweep_angle = Sweep angle |
|
158 |
center_point = Center point |
|
159 |
_graphic_distance = Graphic distance |
|
160 |
geometry_to_extend_to= Geometry to extend to |
|
161 |
geometry_to_trim_with=Geometry to trim with |
|
162 |
shearing_point=Shearing point |
org.gvsig.vectorediting/tags/org.gvsig.vectorediting-1.0.131/org.gvsig.vectorediting.app/org.gvsig.vectorediting.app.mainplugin/src/main/resources-plugin/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<!-- gvSIG. Desktop Geographic Information System. Copyright (C) 2007-2013 gvSIG |
|
3 |
Association. This program is free software; you can redistribute it and/or modify |
|
4 |
it under the terms of the GNU General Public License as published by the Free Software |
|
5 |
Foundation; either version 3 of the License, or (at your option) any later version. |
|
6 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
|
7 |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
8 |
PURPOSE. See the GNU General Public License for more details. You should have received |
|
9 |
a copy of the GNU General Public License along with this program; if not, write to |
|
10 |
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, |
|
11 |
USA. For any additional information, do not hesitate to contact us at info AT gvsig.com, |
|
12 |
or visit our website www.gvsig.com. --> |
|
13 |
<plugin-config> |
|
14 |
<depends plugin-name="org.gvsig.app.mainplugin" /> |
|
15 |
<resourceBundle name="text" /> |
|
16 |
<libraries library-dir="lib" /> |
|
17 |
<extensions> |
|
18 |
<extension class-name="org.gvsig.vectorediting.app.mainplugin.EditingExtension" |
|
19 |
description="" active="true" priority="1"> |
|
20 |
|
|
21 |
<action name="start-editing" label="start_editing" tooltip="start_editing" |
|
22 |
position="600800000" action-command="start-editing" icon="vector-editing" |
|
23 |
accelerator="" /> |
|
24 |
|
|
25 |
<action name="end-editing" label="end_editing" tooltip="end_editing" |
|
26 |
position="600800000" action-command="end-editing" icon="vector-editing" |
|
27 |
accelerator="" /> |
|
28 |
|
|
29 |
<menu text="Layer/start_editing" name="start-editing" /> |
|
30 |
<menu text="Layer/end_editing" name="end-editing" /> |
|
31 |
|
|
32 |
<tool-bar name="vector_editing" position="4000"> |
|
33 |
<action-tool name="start-editing" /> |
|
34 |
<action-tool name="end-editing" /> |
|
35 |
</tool-bar> |
|
36 |
|
|
37 |
</extension> |
|
38 |
|
|
39 |
<extension class-name="org.gvsig.vectorediting.app.mainplugin.ServiceExtension" |
|
40 |
description="" active="true" priority="1"> |
|
41 |
|
|
42 |
<action name="remove" label="remove_selected_geometries" tooltip="remove_selected_geometries" |
|
43 |
action-command="remove" icon="remove" position="601002000" |
|
44 |
accelerator="delete" /> |
|
45 |
<!-- accelerator="" /> --> |
|
46 |
|
|
47 |
<action name="insert-point" label="insert_point" tooltip="insert_point" |
|
48 |
action-command="insert-point" icon="insert-point" position="601002010" |
|
49 |
accelerator="" /> |
|
50 |
|
|
51 |
<action name="insert-multipoint" label="insert_multipoint" tooltip="insert_multipoint" |
|
52 |
action-command="insert-multipoint" icon="insert-multipoint" position="601002025" |
|
53 |
accelerator="" /> |
|
54 |
|
|
55 |
<action name="insert-line" label="insert_line" tooltip="insert_line" |
|
56 |
position="601002050" action-command="insert-line" icon="insert-line" |
|
57 |
accelerator="" /> |
|
58 |
|
|
59 |
<action name="insert-arc" label="insert_arc" tooltip="insert_arc" |
|
60 |
position="601002060" action-command="insert-arc" icon="insert-arc" |
|
61 |
accelerator="" /> |
|
62 |
|
|
63 |
<action name="insert-arc-by-center" label="insert_arc_by_center" tooltip="insert_arc_by_center" |
|
64 |
position="601002070" action-command="insert-arc-by-center" icon="insert-arc-by-center" |
|
65 |
accelerator="" /> |
|
66 |
|
|
67 |
<action name="insert-arc-three-points" label="insert_arc_three_points" tooltip="insert_arc_three_points" |
|
68 |
position="601002080" action-command="insert-arc-three-points" icon="insert-arc-three-points" |
|
69 |
accelerator="" /> |
|
70 |
|
|
71 |
<action name="insert-circle-cr" label="insert_circle_cr" tooltip="insert_circle_cr" |
|
72 |
position="601002100" action-command="insert-circle-cr" icon="insert-circle-cr" |
|
73 |
accelerator="" /> |
|
74 |
|
|
75 |
<action name="insert-circle-2tg1p" label="insert_circle_2tg1p" tooltip="insert_circle_2tg1p" |
|
76 |
position="601002110" action-command="insert-circle-2tg1p" icon="insert-circle-2tg1p" |
|
77 |
accelerator="" /> |
|
78 |
|
|
79 |
<action name="insert-circle-tantanradius" label="insert_circle_tantanradius" tooltip="insert_circle_tantanradius" |
|
80 |
position="601002120" action-command="insert-circle-tantanradius" icon="insert-circle-tantanradius" |
|
81 |
accelerator="" /> |
|
82 |
|
|
83 |
<action name="insert-circumference-cr" label="insert_circumference_cr" |
|
84 |
tooltip="insert_circumference_cr" position="601002101" action-command="insert-circumference-cr" |
|
85 |
icon="insert-circumference-cr" accelerator="" /> |
|
86 |
|
|
87 |
<action name="insert-circumference-2tg1p" label="insert_circumference_2tg1p" tooltip="insert_circumference_2tg1p" |
|
88 |
position="601002111" action-command="insert-circumference-2tg1p" icon="insert-circumference-2tg1p" |
|
89 |
accelerator="" /> |
|
90 |
|
|
91 |
<action name="insert-circumference-tantanradius" label="insert_circumference_tantanradius" tooltip="insert_circumference_tantanradius" |
|
92 |
position="601002121" action-command="insert-circumference-tantanradius" icon="insert-circumference-tantanradius" |
|
93 |
accelerator="" /> |
|
94 |
|
|
95 |
<action name="insert-circle-3p" label="insert_circle_3p" tooltip="insert_circle_3p" |
|
96 |
position="601002125" action-command="insert-circle-3p" icon="insert-circle-3p" |
|
97 |
accelerator="" /> |
|
98 |
|
|
99 |
<action name="insert-circumference-3p" label="insert_circumference_3p" |
|
100 |
tooltip="insert_circumference_3p" position="601002126" action-command="insert-circumference-3p" |
|
101 |
icon="insert-circumference-3p" accelerator="" /> |
|
102 |
|
|
103 |
<action name="insert-ellipse" label="insert_ellipse" tooltip="insert_ellipse" |
|
104 |
position="601002150" action-command="insert-ellipse" icon="insert-ellipse" |
|
105 |
accelerator="" /> |
|
106 |
|
|
107 |
<action name="insert-ellipse-center-axes" label="insert_ellipse_center_axes" tooltip="insert_ellipse_center_axes" |
|
108 |
position="601002160" action-command="insert-ellipse-center-axes" icon="insert-ellipse-center-axes" |
|
109 |
accelerator="" /> |
|
110 |
|
|
111 |
<action name="insert-filled-ellipse" label="insert_filled_ellipse" |
|
112 |
tooltip="insert_filled_ellipse" position="601002160" action-command="insert-filled-ellipse" |
|
113 |
icon="insert-filled-ellipse" accelerator="" /> |
|
114 |
|
|
115 |
<action name="insert-filled-ellipse-center-axes" label="insert_filled_ellipse_center_axes" |
|
116 |
tooltip="insert_filled_ellipse_center_axes" position="601002170" action-command="insert-filled-ellipse-center-axes" |
|
117 |
icon="insert-filled-ellipse-center-axes" accelerator="" /> |
|
118 |
|
|
119 |
<action name="insert-polygon" label="insert_polygon" tooltip="insert_polygon" |
|
120 |
position="601002200" action-command="insert-polygon" icon="insert-polygon" |
|
121 |
accelerator="" /> |
|
122 |
|
|
123 |
<action name="insert-polyline" label="insert_polyline" tooltip="insert_polyline" |
|
124 |
position="601002201" action-command="insert-polyline" icon="insert-polyline" |
|
125 |
accelerator="" /> |
|
126 |
|
|
127 |
<action name="insert-filled-regular-polygon" label="insert_filled_regular_polygon" |
|
128 |
tooltip="insert_filled_regular_polygon" position="601002300" |
|
129 |
action-command="insert-filled-regular-polygon" icon="insert-filled-regular-polygon" |
|
130 |
accelerator="" /> |
|
131 |
|
|
132 |
<action name="insert-regular-polygon" label="insert_regular_polygon" |
|
133 |
tooltip="insert_regular_polygon" position="601002301" action-command="insert-regular-polygon" |
|
134 |
icon="insert-regular-polygon" accelerator="" /> |
|
135 |
|
|
136 |
<action name="insert-filled-rectangle" label="insert_filled_rectangle" |
|
137 |
tooltip="insert_filled_rectangle" position="601002350" action-command="insert-filled-rectangle" |
|
138 |
icon="insert-filled-rectangle" accelerator="" /> |
|
139 |
|
|
140 |
<action name="insert-rectangle" label="insert_rectangle" tooltip="insert_rectangle" |
|
141 |
position="601002351" action-command="insert-rectangle" icon="insert-rectangle" |
|
142 |
accelerator="" /> |
|
143 |
|
|
144 |
<action name="insert-filled-spline" label="insert_filled_spline" |
|
145 |
tooltip="insert_filled_spline" position="601002370" action-command="insert-filled-spline" |
|
146 |
icon="insert-filled-spline" accelerator="" /> |
|
147 |
|
|
148 |
<action name="insert-spline" label="insert_spline" tooltip="insert_spline" |
|
149 |
position="601002371" action-command="insert-spline" icon="insert-spline" |
|
150 |
accelerator="" /> |
|
151 |
|
|
152 |
<action name="modify-internal-polygon" label="modify_internal_polygon" |
|
153 |
tooltip="modify_internal_polygon" position="601002500" action-command="modify-internal-polygon" |
|
154 |
icon="modify-internal-polygon" accelerator="" /> |
|
155 |
|
|
156 |
<action name="modify-explode-geometry" label="modify_explode_geometry" |
|
157 |
tooltip="modify_explode_geometry" position="601002600" action-command="modify-explode-geometry" |
|
158 |
icon="modify-explode-geometry" accelerator="" /> |
|
159 |
|
|
160 |
<action name="modify-move" label="modify_move" tooltip="modify_move" |
|
161 |
position="601002700" action-command="modify-move" icon="modify-move" |
|
162 |
accelerator="" /> |
|
163 |
|
|
164 |
<action name="modify-rotate" label="modify_rotate" tooltip="modify_rotate" |
|
165 |
position="601002800" action-command="modify-rotate" icon="modify-rotate" |
|
166 |
accelerator="" /> |
|
167 |
|
|
168 |
<action name="modify-duplicate" label="modify_duplicate" tooltip="modify_duplicate" |
|
169 |
position="601002900" action-command="modify-duplicate" icon="modify-duplicate" |
|
170 |
accelerator="" /> |
|
171 |
|
|
172 |
<action name="modify-split" label="modify_split" tooltip="modify_split" |
|
173 |
position="601003000" action-command="modify-split" icon="modify-split" |
|
174 |
accelerator="" /> |
|
175 |
|
|
176 |
<action name="modify-split-line" label="modify_split_line" tooltip="modify_split_line" |
|
177 |
position="601003050" action-command="modify-split-line" icon="modify-split-line" |
|
178 |
accelerator="" /> |
|
179 |
|
|
180 |
<action name="modify-scale" label="modify_scale" tooltip="modify_scale" |
|
181 |
position="601003100" action-command="modify-scale" icon="modify-scale" |
|
182 |
accelerator="" /> |
|
183 |
|
|
184 |
<action name="modify-simplify" label="modify_simplify" tooltip="modify_simplify" |
|
185 |
position="601003200" action-command="modify-simplify" icon="modify-simplify" |
|
186 |
accelerator="" /> |
|
187 |
|
|
188 |
<action name="modify-join" label="modify_join" tooltip="modify_join" |
|
189 |
position="601003300" action-command="modify-join" icon="modify-join" |
|
190 |
accelerator="" /> |
|
191 |
|
|
192 |
<action name="insert-autopolygon" label="insert_autopolygon" |
|
193 |
tooltip="insert_autopolygon" position="601003400" action-command="insert-autopolygon" |
|
194 |
icon="insert-autopolygon" accelerator="" /> |
|
195 |
|
|
196 |
<action name="modify-stretch" label="modify_stretch" tooltip="modify_stretch" |
|
197 |
position="601003500" action-command="modify-stretch" icon="modify-stretch" |
|
198 |
accelerator="" /> |
|
199 |
|
|
200 |
<action name="modify-extend-line" label="modify_extend_line" |
|
201 |
tooltip="modify_extend_line" position="601003600" action-command="modify-extend-line" |
|
202 |
icon="modify-extend-line" accelerator="" /> |
|
203 |
|
|
204 |
<action name="modify-trim-line" label="modify_trim_line" tooltip="modify_trim_line" |
|
205 |
position="601003700" action-command="modify-trim-line" icon="modify-trim-line" |
|
206 |
accelerator="" /> |
|
207 |
|
|
208 |
<action name="modify-smooth-line" label="modify_smooth_line" |
|
209 |
tooltip="modify_smooth_line" position="601003800" action-command="modify-smooth-line" |
|
210 |
icon="modify-smooth-line" accelerator="" /> |
|
211 |
|
|
212 |
<action name="modify-edit-vertex" label="modify_edit_vertex" |
|
213 |
tooltip="modify_edit_vertex" position="601003900" action-command="modify-edit-vertex" |
|
214 |
icon="modify-edit-vertex" accelerator="" /> |
|
215 |
|
|
216 |
<action name="insert-rectangular-matrix" label="insert_rectangular_matrix" |
|
217 |
tooltip="insert_rectangular_matrix" position="601004000" action-command="insert-rectangular-matrix" |
|
218 |
icon="insert-rectangular-matrix" accelerator="" /> |
|
219 |
|
|
220 |
<action name="insert-polar-matrix" label="insert_polar_matrix" |
|
221 |
tooltip="insert_polar_matrix" position="601004100" action-command="insert-polar-matrix" |
|
222 |
icon="insert-polar-matrix" accelerator="" /> |
|
223 |
|
|
224 |
<action name="modify-convert-to-polyline" label="modify_convert_to_polyline" |
|
225 |
tooltip="modify_convert_to_polyline" position="601004200" action-command="modify-convert-to-polyline" |
|
226 |
icon="modify-convert-to-polyline" accelerator="" /> |
|
227 |
|
|
228 |
<action name="modify-reverse-direction" label="modify_reverse_direction" |
|
229 |
tooltip="modify_reverse_direction" position="601004300" action-command="modify-reverse-direction" |
|
230 |
icon="modify-reverse-direction" accelerator="" /> |
|
231 |
|
|
232 |
<menu text="Layer/Remove/remove_selected_geometries" name="remove" /> |
|
233 |
<menu text="Layer/Insert/insert_point" name="insert-point" /> |
|
234 |
<menu text="Layer/Insert/insert_multipoint" name="insert-multipoint" /> |
|
235 |
<menu text="Layer/Insert/insert_line" name="insert-line" /> |
|
236 |
<menu text="Layer/Insert/insert_arc" name="insert-arc" /> |
|
237 |
<menu text="Layer/Insert/insert_arc_by_center" name="insert-arc-by-center" /> |
|
238 |
<menu text="Layer/Insert/insert_arc_three_points" name="insert-arc-three-points" /> |
|
239 |
<menu text="Layer/Insert/insert_circle_cr" name="insert-circle-cr" /> |
|
240 |
<menu text="Layer/Insert/insert_circumference_cr" name="insert-circumference-cr" /> |
|
241 |
<menu text="Layer/Insert/insert_circle_3p" name="insert-circle-3p" /> |
|
242 |
<menu text="Layer/Insert/insert_circumference_3p" name="insert-circumference-3p" /> |
|
243 |
<menu text="Layer/Insert/insert_circle_2tg1p" name="insert-circle-2tg1p" /> |
|
244 |
<menu text="Layer/Insert/insert_circumference_2tg1p" name="insert-circumference-2tg1p" /> |
|
245 |
<menu text="Layer/Insert/insert_circle_tantanradius" name="insert-circle-tantanradius" /> |
|
246 |
<menu text="Layer/Insert/insert_circumference_tantanradius" name="insert-circumference-tantanradius" /> |
|
247 |
<menu text="Layer/Insert/insert_ellipse" name="insert-ellipse" /> |
|
248 |
<menu text="Layer/Insert/insert_filled_ellipse" name="insert-filled-ellipse" /> |
|
249 |
<menu text="Layer/Insert/insert_ellipse_center_axes" name="insert-ellipse-center-axes" /> |
|
250 |
<menu text="Layer/Insert/insert_filled_ellipse_center_axes" name="insert-filled-ellipse-center-axes" /> |
|
251 |
<menu text="Layer/Insert/insert_polyline" name="insert-polyline" /> |
|
252 |
<menu text="Layer/Insert/insert_polygon" name="insert-polygon" /> |
|
253 |
<menu text="Layer/Insert/insert_regular_polygon" name="insert-regular-polygon" /> |
|
254 |
<menu text="Layer/Insert/insert_filled_regular_polygon" name="insert-filled-regular-polygon" /> |
|
255 |
<menu text="Layer/Insert/insert_rectangle" name="insert-rectangle" /> |
|
256 |
<menu text="Layer/Insert/insert_filled_rectangle" name="insert-filled-rectangle" /> |
|
257 |
<menu text="Layer/Insert/insert_spline" name="insert-spline" /> |
|
258 |
<menu text="Layer/Insert/insert_filled_spline" name="insert-filled-spline" /> |
|
259 |
<menu text="Layer/Insert/insert_rectangular_matrix" name="insert-rectangular-matrix" /> |
|
260 |
<menu text="Layer/Insert/insert_polar_matrix" name="insert-polar-matrix" /> |
|
261 |
<menu text="Layer/Insert/insert_autopolygon" name="insert-autopolygon" /> |
|
262 |
<menu text="Layer/Modify/modify_internal_polygon" name="modify-internal-polygon" /> |
|
263 |
<menu text="Layer/Modify/modify_explode_geometry" name="modify-explode-geometry" /> |
|
264 |
<menu text="Layer/Modify/modify_move" name="modify-move" /> |
|
265 |
<menu text="Layer/Modify/modify_rotate" name="modify-rotate" /> |
|
266 |
<menu text="Layer/Modify/modify_duplicate" name="modify-duplicate" /> |
|
267 |
<menu text="Layer/Modify/modify_split_line" name="modify-split-line" /> |
|
268 |
<menu text="Layer/Modify/modify_split" name="modify-split" /> |
|
269 |
<menu text="Layer/Modify/modify_scale" name="modify-scale" /> |
|
270 |
<menu text="Layer/Modify/modify_simplify" name="modify-simplify" /> |
|
271 |
<menu text="Layer/Modify/modify_join" name="modify-join" /> |
|
272 |
<menu text="Layer/Modify/modify_stretch" name="modify-stretch" /> |
|
273 |
<menu text="Layer/Modify/modify_extend_line" name="modify-extend-line" /> |
|
274 |
<menu text="Layer/Modify/modify_trim_line" name="modify-extend-line" /> |
|
275 |
<menu text="Layer/Modify/modify_smooth_line" name="modify-smooth-line" /> |
|
276 |
<menu text="Layer/Modify/modify_edit_vertex" name="modify-edit-vertex" /> |
|
277 |
<menu text="Layer/Modify/modify_convert_to_polyline" name="modify-convert-to-polyline" /> |
|
278 |
<menu text="Layer/Modify/modify_reverse_direction" name="modify-reverse-direction" /> |
|
279 |
|
|
280 |
<tool-bar name="vector_editing" position="4000"> |
|
281 |
<selectable-tool name="remove" /> |
|
282 |
<selectable-tool name="insert-point" /> |
|
283 |
<selectable-tool name="insert-multipoint" /> |
|
284 |
<selectable-tool name="insert-line" /> |
|
285 |
<selectable-tool name="insert-arc" dropdowngroup="arc" /> |
|
286 |
<selectable-tool name="insert-arc-by-center" dropdowngroup="arc" /> |
|
287 |
<selectable-tool name="insert-arc-three-points" dropdowngroup="arc" /> |
|
288 |
<selectable-tool name="insert-circumference-cr" dropdowngroup="circle" /> |
|
289 |
<selectable-tool name="insert-circle-cr" dropdowngroup="circle" /> |
|
290 |
<selectable-tool name="insert-circle-2tg1p" dropdowngroup="circle" /> |
|
291 |
<selectable-tool name="insert-circle-tantanradius" dropdowngroup="circle" /> |
|
292 |
<selectable-tool name="insert-circumference-3p" dropdowngroup="circle" /> |
|
293 |
<selectable-tool name="insert-circle-3p" dropdowngroup="circle" /> |
|
294 |
<selectable-tool name="insert-circumference-2tg1p" dropdowngroup="circle" /> |
|
295 |
<selectable-tool name="insert-circumference-tantanradius" dropdowngroup="circle" /> |
|
296 |
<selectable-tool name="insert-ellipse" dropdowngroup="ellipse" /> |
|
297 |
<selectable-tool name="insert-filled-ellipse" dropdowngroup="ellipse" /> |
|
298 |
<selectable-tool name="insert-ellipse-center-axes" dropdowngroup="ellipse" /> |
|
299 |
<selectable-tool name="insert-filled-ellipse-center-axes" dropdowngroup="ellipse" /> |
|
300 |
<selectable-tool name="insert-polyline" dropdowngroup="polygon"/> |
|
301 |
<selectable-tool name="insert-polygon" dropdowngroup="polygon"/> |
|
302 |
<selectable-tool name="insert-regular-polygon" dropdowngroup="regularpolygon"/> |
|
303 |
<selectable-tool name="insert-filled-regular-polygon" dropdowngroup="regularpolygon"/> |
|
304 |
<selectable-tool name="insert-rectangle" dropdowngroup="rectangle"/> |
|
305 |
<selectable-tool name="insert-filled-rectangle" dropdowngroup="rectangle"/> |
|
306 |
<selectable-tool name="insert-filled-spline" dropdowngroup="spline"/> |
|
307 |
<selectable-tool name="insert-spline" dropdowngroup="spline"/> |
|
308 |
<selectable-tool name="modify-internal-polygon" /> |
|
309 |
<selectable-tool name="modify-explode-geometry" /> |
|
310 |
<selectable-tool name="modify-move" /> |
|
311 |
<selectable-tool name="modify-rotate" /> |
|
312 |
<selectable-tool name="modify-duplicate" /> |
|
313 |
<selectable-tool name="modify-split" /> |
|
314 |
<selectable-tool name="modify-split-line" /> |
|
315 |
<selectable-tool name="modify-scale" /> |
|
316 |
<selectable-tool name="modify-simplify" /> |
|
317 |
<selectable-tool name="insert-autopolygon" /> |
|
318 |
<selectable-tool name="modify-join" /> |
|
319 |
<selectable-tool name="modify-stretch" /> |
|
320 |
<selectable-tool name="modify-extend-line" /> |
|
321 |
<selectable-tool name="modify-trim-line" /> |
|
322 |
<selectable-tool name="modify-smooth-line" /> |
|
323 |
<selectable-tool name="insert-rectangular-matrix" dropdowngroup="matrix" /> |
|
324 |
<selectable-tool name="insert-polar-matrix" dropdowngroup="matrix" /> |
|
325 |
<selectable-tool name="modify-edit-vertex" /> |
|
326 |
<selectable-tool name="modify-convert-to-polyline" /> |
|
327 |
<selectable-tool name="modify-reverse-direction" /> |
|
328 |
</tool-bar> |
|
329 |
|
|
330 |
</extension> |
|
331 |
</extensions> |
|
332 |
</plugin-config> |
org.gvsig.vectorediting/tags/org.gvsig.vectorediting-1.0.131/org.gvsig.vectorediting.app/org.gvsig.vectorediting.app.mainplugin/src/main/resources/README.txt | ||
---|---|---|
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 |
Put into this folder the resources to be included in the plugin jar. |
|
27 |
|
org.gvsig.vectorediting/tags/org.gvsig.vectorediting-1.0.131/org.gvsig.vectorediting.app/org.gvsig.vectorediting.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<!-- gvSIG. Desktop Geographic Information System. Copyright (C) 2007-2013 gvSIG |
|
2 |
Association. This program is free software; you can redistribute it and/or modify |
|
3 |
it under the terms of the GNU General Public License as published by the Free Software |
|
4 |
Foundation; either version 3 of the License, or (at your option) any later version. |
|
5 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
|
6 |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
7 |
PURPOSE. See the GNU General Public License for more details. You should have received |
|
8 |
a copy of the GNU General Public License along with this program; if not, write to |
|
9 |
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, |
|
10 |
USA. For any additional information, do not hesitate to contact us at info AT gvsig.com, |
|
11 |
or visit our website www.gvsig.com. --> |
|
12 |
<assembly> |
|
13 |
<id>gvsig-plugin-package</id> |
|
14 |
<formats> |
|
15 |
<format>zip</format> |
|
16 |
</formats> |
|
17 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
18 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
19 |
<files> |
|
20 |
<file> |
|
21 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
22 |
<outputDirectory>lib</outputDirectory> |
|
23 |
</file> |
|
24 |
<file> |
|
25 |
<source>target/package.info</source> |
|
26 |
</file> |
|
27 |
</files> |
|
28 |
|
|
29 |
<fileSets> |
|
30 |
<fileSet> |
|
31 |
<directory>src/main/resources-plugin</directory> |
|
32 |
<outputDirectory>.</outputDirectory> |
|
33 |
</fileSet> |
|
34 |
</fileSets> |
|
35 |
|
|
36 |
|
|
37 |
<dependencySets> |
|
38 |
<dependencySet> |
|
39 |
<useProjectArtifact>false</useProjectArtifact> |
|
40 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
41 |
<outputDirectory>lib</outputDirectory> |
|
42 |
<includes> |
|
43 |
<include>org.gvsig:org.gvsig.vectorediting.lib.api</include> |
|
44 |
<include>org.gvsig:org.gvsig.vectorediting.swing.api</include> |
|
45 |
<include>org.gvsig:org.gvsig.vectorediting.lib.impl</include> |
|
46 |
<include>org.gvsig:org.gvsig.vectorediting.swing.impl</include> |
|
47 |
<include>org.gvsig:org.gvsig.vectorediting.lib.spi</include> |
|
48 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.point</include> |
|
49 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.circlecr</include> |
|
50 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.circle3p</include> |
|
51 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.polyline</include> |
|
52 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.internalpolygon</include> |
|
53 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.line</include> |
|
54 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.arc</include> |
|
55 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.ellipse</include> |
|
56 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.regularpolygon</include> |
|
57 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.rectangle</include> |
|
58 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.spline</include> |
|
59 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.explode</include> |
|
60 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.move</include> |
|
61 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.rotate</include> |
|
62 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.duplicate</include> |
|
63 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.scale</include> |
|
64 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.splitline</include> |
|
65 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.simplify</include> |
|
66 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.multipoint</include> |
|
67 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.autopolygon</include> |
|
68 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.join</include> |
|
69 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.stretch</include> |
|
70 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.extendline</include> |
|
71 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.split</include> |
|
72 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.smoothline</include> |
|
73 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.trimline</include> |
|
74 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.rectangularmatrix</include> |
|
75 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.polarmatrix</include> |
|
76 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.editvertex</include> |
|
77 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.remove</include> |
|
78 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.converttopolyline</include> |
|
79 |
<include>org.gvsig:org.gvsig.vectorediting.lib.prov.reversedirection</include> |
|
80 |
</includes> |
|
81 |
</dependencySet> |
|
82 |
</dependencySets> |
|
83 |
|
|
84 |
</assembly> |
|
85 |
|
org.gvsig.vectorediting/tags/org.gvsig.vectorediting-1.0.131/org.gvsig.vectorediting.app/org.gvsig.vectorediting.app.mainplugin/src/main/java/org/gvsig/vectorediting/app/mainplugin/ServiceExtension.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright ? 2007-2014 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.vectorediting.app.mainplugin; |
|
25 |
|
|
26 |
import java.util.ArrayList; |
|
27 |
import java.util.List; |
|
28 |
import org.gvsig.andami.plugins.Extension; |
|
29 |
import org.gvsig.app.ApplicationLocator; |
|
30 |
import org.gvsig.app.ApplicationManager; |
|
31 |
import org.gvsig.app.project.documents.view.ViewDocument; |
|
32 |
import org.gvsig.app.project.documents.view.gui.IView; |
|
33 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
34 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
|
35 |
import org.gvsig.vectorediting.swing.api.EditingContext; |
|
36 |
import org.gvsig.vectorediting.swing.api.EditingSwingLocator; |
|
37 |
import org.gvsig.vectorediting.swing.api.EditingSwingManager; |
|
38 |
|
|
39 |
public class ServiceExtension extends Extension { |
|
40 |
|
|
41 |
@Override |
|
42 |
public void initialize() { |
|
43 |
} |
|
44 |
|
|
45 |
@Override |
|
46 |
public void execute(String actionCommand) { |
|
47 |
IView view = getActiveView(); |
|
48 |
EditingSwingManager swingManager = |
|
49 |
EditingSwingLocator.getSwingManager(); |
|
50 |
|
|
51 |
if (view != null) { |
|
52 |
EditingContext editingContext = |
|
53 |
swingManager.getEditingContext(view.getMapControl()); |
|
54 |
editingContext.activateService(actionCommand); |
|
55 |
} |
|
56 |
|
|
57 |
} |
|
58 |
|
|
59 |
@Override |
|
60 |
public boolean isEnabled() { |
|
61 |
return this.isVisible(); |
|
62 |
} |
|
63 |
|
|
64 |
@Override |
|
65 |
public boolean isEnabled(String action) { |
|
66 |
IView view = getActiveView(); |
|
67 |
if(view!=null){ |
|
68 |
FLyrVect activeLayer = getActiveEditingVectLayer(view); |
|
69 |
|
|
70 |
if (activeLayer != null && activeLayer.isEditing() && action!=null) { |
|
71 |
EditingSwingManager swingManager = |
|
72 |
EditingSwingLocator.getSwingManager(); |
|
73 |
EditingContext editingContext = |
|
74 |
swingManager.getEditingContext(view.getMapControl()); |
|
75 |
return editingContext.isServiceCompatible(action); |
|
76 |
} |
|
77 |
} |
|
78 |
return false; |
|
79 |
} |
|
80 |
|
|
81 |
@Override |
|
82 |
public boolean isVisible() { |
|
83 |
IView view = getActiveView(); |
|
84 |
if(view!=null){ |
|
85 |
FLyrVect activeLayer = getActiveEditingVectLayer(view); |
|
86 |
return (activeLayer != null && activeLayer.isEditing()); |
|
87 |
} |
|
88 |
return false; |
|
89 |
} |
|
90 |
|
|
91 |
@Override |
|
92 |
public boolean isVisible(String action) { |
|
93 |
return this.isVisible(); |
|
94 |
} |
|
95 |
|
|
96 |
@Override |
|
97 |
public boolean canQueryByAction() { |
|
98 |
return true; |
|
99 |
} |
|
100 |
|
|
101 |
private IView getActiveView() { |
|
102 |
|
|
103 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
104 |
IView view = (IView) application.getActiveComponent(ViewDocument.class); |
|
105 |
return view; |
|
106 |
} |
Also available in: Unified diff