Revision 43796

View differences:

tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.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.timesupport.app</artifactId>
7
    <packaging>pom</packaging>
8
    <name>${project.artifactId}</name>
9
    <description>Extension of the TimeSupport example project</description>
10
    <parent>
11
        <groupId>org.gvsig</groupId>
12
        <artifactId>org.gvsig.desktop.plugin</artifactId>
13
        <version>2.0.221</version>
14
    </parent>
15

  
16
    <modules>
17
        <module>org.gvsig.timesupport.app.viewfilter</module>
18
        <module>org.gvsig.timesupport.app.animation</module>
19
    </modules>
20

  
21
</project>
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.animation/buildNumber.properties
1
#Mon Apr 16 09:46:29 CEST 2018
2
buildNumber=2767
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.animation/package.info
1
#
2
#Mon Aug 27 14:23:13 CEST 2012
3
owner=gvSIG Association
4
code=org.gvsig.timesupport.app.animation.extension
5
java-version=j1_5
6
official=true
7
type=plugin
8
version=1.0.0-SNAPSHOT-3
9
state=devel
10
operating-system=all
11
dependencies=
12
sources-url=https\://devel.gvsig.org/redmine/projects/gvsig-sensors/repository/show/org.gvsig.timesupport/extension/trunk/org.gvsig.timesupport.app/org.gvsig.timesupport.app.animation.extension
13
web-url=http\://www.gvsig.com
14
architecture=all
15
model-version=1.0.1
16
categories=
17
description=This plugin add a control to create animations
18
buildNumber=3
19
gvSIG-version=2.0.0
20
name=Animation by time
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.animation/src/main/resources-plugin/text.properties
1
animation=Animaci?n
2
creates_time_animation=Crea una animaci?n usando la varible temporal
3
animation_preferences=Preferencias de animaci?n
4
animation_bar=Barra de animaci?n
5
step=Paso
6
interval=Intervalo
7
windowtime=Ventana de tiempo
8
timestep=Paso de tiempo
9
visualization=Visualizaci?n
10
speed=Velocidad
11
loop=Loop
12
iterations=Iteraciones
13
day=D?a
14
month=Mes
15
week=Semana
16
year=A?o
17
hour=Hora
18
minute=Minuto
19
second=Segundo
20
millisecond=Milisegundo
21
noloop=No loop
22
loop_once=Loop una vez
23
loop_n=Loop N veces
24
speedofprogress=Velocidad de progreso
25
lbl_begin_position=Fecha de inicio
26
lbl_end_position=Fecha de fin
27
Time=Tiempo
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.animation/src/main/resources-plugin/text_en.properties
1
animation=Animation
2
creates_time_animation=Creates a animation using time varible
3
animation_preferences=Animation preferences
4
animation_bar=Animation bar
5
step=Step
6
interval=Interval
7
windowtime=Window time
8
timestep=Time step
9
visualization=Visualization
10
speed=Speed
11
loop=Loop
12
iterations=Iterations
13
day=Day
14
month=Month
15
week=Week
16
year=Year
17
hour=Hour
18
minute=Minute
19
second=Second
20
millisecond=Millisecond
21
noloop=No loop
22
loop_once=Loop once
23
loop_n=Loop N
24
speedofprogress=Speed of progress
25
lbl_begin_position=Initial date
26
lbl_end_position=End date
27
Time=Time
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.animation/src/main/resources-plugin/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
    <depends plugin-name="org.gvsig.app" />
4
    <resourceBundle name="text"/>
5
    <libraries library-dir="lib"/>
6
    <extensions>
7
        <extension class-name="org.gvsig.timesupport.app.animation.extension.AnimationSupportExtension"
8
            description=""
9
            active="true"
10
            priority="1">
11
            <action
12
              name="view-timeanimation"
13
              label="_Creation_animation"
14
              position="650150200"
15
              action-command="AnimationSupport"
16
              tooltip="_Show_animation_dialog"
17
              accelerator=""
18
              />
19
            
20
            <menu 
21
                text="View/Time/animation"
22
                name="view-timeanimation"
23
            />
24

  
25
        </extension>		
26
    </extensions>
27
</plugin-config>
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.animation/src/main/assembly/gvsig-plugin-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

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

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

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

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

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

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

  
43
  <fileSets>
44
    <fileSet>
45
      <directory>src/main/resources-plugin</directory>
46
      <outputDirectory>.</outputDirectory>
47
    </fileSet>
48
  </fileSets>
49
<!--
50
  <dependencySets>
51
    <dependencySet>
52
      <useProjectArtifact>false</useProjectArtifact>
53
      <useTransitiveDependencies>false</useTransitiveDependencies>
54
      <outputDirectory>lib</outputDirectory>
55
      <includes>
56
        <include>com.toedter:jcalendar</include>
57
      </includes>
58
    </dependencySet>
59
  </dependencySets>
60
  -->
61
</assembly>
62

  
0 63

  
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.animation/src/main/java/org/gvsig/timesupport/app/animation/extension/AnimationSupportExtension.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.timesupport.app.animation.extension;
23

  
24
import java.awt.event.ActionEvent;
25
import java.awt.event.ActionListener;
26
import java.util.Iterator;
27
import javax.swing.SwingUtilities;
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.ProjectManager;
32
import org.gvsig.app.project.documents.view.ViewDocument;
33
import org.gvsig.app.project.documents.view.ViewManager;
34
import org.gvsig.app.project.documents.view.gui.AbstractViewPanel;
35
import org.gvsig.app.project.documents.view.gui.IView;
36
import org.gvsig.fmap.dal.DataStore;
37
import org.gvsig.fmap.mapcontext.layers.FLayer;
38
import org.gvsig.fmap.mapcontext.layers.FLayers;
39
import org.gvsig.fmap.mapcontext.layers.operations.SingleLayer;
40
import org.gvsig.fmap.mapcontrol.MapControl;
41
import org.gvsig.timesupport.Interval;
42
import org.gvsig.timesupport.RelativeInterval;
43
import org.gvsig.timesupport.Time;
44
import org.gvsig.timesupport.TimeSupportLocator;
45
import org.gvsig.timesupport.animation.TimeAnimation;
46
import org.gvsig.timesupport.animation.TimeAnimation.TimeAnimationRenderer;
47
import org.gvsig.timesupport.swing.api.TimeSupportSwingLocator;
48
import org.gvsig.timesupport.swing.api.TimeSupportSwingManager;
49
import org.gvsig.timesupport.swing.api.panel.AnimationBarPanel;
50
import org.gvsig.timesupport.swing.api.panel.AnimationPreferencesPanel;
51
import org.gvsig.tools.ToolsLocator;
52
import org.gvsig.tools.i18n.I18nManager;
53
import org.gvsig.tools.swing.api.ToolsSwingLocator;
54
import org.gvsig.tools.swing.api.windowmanager.Dialog;
55
import org.gvsig.tools.swing.api.windowmanager.WindowManager;
56
import org.gvsig.tools.swing.api.windowmanager.WindowManager_v2;
57

  
58
public class AnimationSupportExtension extends Extension {
59

  
60
    private TimeSupportSwingManager swingManager = null;
61

  
62
    @Override
63
    public void initialize() {
64
        // Do nothing
65
    }
66

  
67
    @Override
68
    public void postInitialize() {
69
        super.postInitialize();
70
        swingManager = TimeSupportSwingLocator.getSwingManager();
71
    }
72

  
73
    @Override
74
    public void execute(String actionCommand) {
75
        if( actionCommand.equalsIgnoreCase("AnimationSupport") ) {
76
            final ViewDocument viewDocument = getView();
77
            if( viewDocument == null ) {
78
                return;
79
            }
80
            ProjectManager projectManager = ApplicationLocator.getProjectManager();
81
            ViewManager viewManager = (ViewManager) projectManager.getDocumentManager(ViewManager.TYPENAME);
82
            final IView viewPanel = (IView) viewManager.getMainWindow(viewDocument);
83
            final MapControl mapControl = viewPanel.getMapControl();
84
            RelativeInterval interval = (RelativeInterval) viewDocument.getMapContext().getTimeContext().getInterval();
85
            if( interval != null ) {
86
                final int savedPaintMode = mapControl.getPaintMode();
87
                final Time savedTimeFilter = mapControl.getMapContext().getViewPort().getTime();
88
                I18nManager i18n = ToolsLocator.getI18nManager();
89
                final TimeAnimation animation = TimeSupportLocator.getManager().
90
                    createTimeAnimation(new TimeAnimationRenderer() {
91
                        @Override
92
                        public void begin() {
93
                            mapControl.setPaintMode(MapControl.PAINT_WHEN_DRAW_LAYERS_IS_COMPLETED);
94
                        }
95

  
96
                        @Override
97
                        public void render(final Interval time) {
98
                            if( !SwingUtilities.isEventDispatchThread() ) {
99
                                SwingUtilities.invokeLater(new Runnable() {
100
                                    @Override
101
                                    public void run() {
102
                                        render(time);
103
                                    }
104
                                });
105
                            }
106
                            viewDocument.getMapContext().getViewPort().setTime(time);
107
                            viewDocument.getMapContext().invalidate();
108
                        }
109

  
110
                        @Override
111
                        public void end() {
112
                            mapControl.setPaintMode(savedPaintMode);
113
                            mapControl.getMapContext().getViewPort().setTime(savedTimeFilter);
114
                        }
115
                    }
116
                    );
117
                animation.setInterval(interval);
118

  
119
                final AnimationPreferencesPanel prefs = swingManager.createAnimationPreferencesPanel(animation);
120

  
121
                WindowManager_v2 winManager = (WindowManager_v2) ToolsSwingLocator.getWindowManager();
122
                final Dialog dialog = winManager.createDialog(
123
                    prefs.asJComponent(),
124
                    i18n.getTranslation("animation_preferences"),
125
                    null,
126
                    WindowManager_v2.BUTTONS_OK_CANCEL
127
                );
128
                dialog.addActionListener(new ActionListener() {
129
                    @Override
130
                    public void actionPerformed(ActionEvent e) {
131
                        if( dialog.getAction() == WindowManager_v2.BUTTON_OK ) {
132
                            doAnimation(viewDocument, prefs.getAnimation());
133
                        }
134
                        prefs.asJComponent().setVisible(false);
135
                    }
136
                });
137
                dialog.show(WindowManager.MODE.TOOL);
138
            }
139
        }
140
    }
141

  
142
    private void doAnimation(ViewDocument viewDocument, TimeAnimation animation) {
143
        I18nManager i18n = ToolsLocator.getI18nManager();
144
        WindowManager_v2 winManager = (WindowManager_v2) ToolsSwingLocator.getWindowManager();
145
        AnimationBarPanel panel = swingManager.createAnimationBarPanel(animation);
146
        winManager.showWindow(
147
            panel.asJComponent(),
148
            i18n.getTranslation("animation_bar") + " - " + viewDocument.getName(),
149
            WindowManager.MODE.TOOL
150
        );
151
    }
152

  
153
    @Override
154
    public boolean isEnabled() {
155
        ViewDocument viewDocument = getView();
156
        if( viewDocument == null ) {
157
            return false;
158
        }
159
        FLayers layers = viewDocument.getMapContext().getLayers();
160
        for( Iterator<FLayer> iterator = layers.deepiterator(); iterator.hasNext(); ) {
161
            FLayer layer = iterator.next();
162
            if( layer instanceof SingleLayer ) {
163
                DataStore dataStore = ((SingleLayer) layer).getDataStore();
164
                if( dataStore.getInterval() != null ) {
165
                    return true;
166
                }
167
            }
168
        }
169
        return false;
170
    }
171

  
172
    /**
173
     * Gets the active view
174
     *
175
     * @return {@link AbstractViewPanel}
176
     */
177
    private ViewDocument getView() {
178
        ApplicationManager application = ApplicationLocator.getManager();
179
        ViewDocument viewDocument = (ViewDocument) application.getActiveDocument(ViewManager.TYPENAME);
180
        return viewDocument;
181
    }
182

  
183
    @Override
184
    public boolean isVisible() {
185
        return getView()!=null;
186
    }
187

  
188
}
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.animation/src/main/java/org/gvsig/timesupport/app/animation/extension/package.html
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
4
<head>
5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
<title>org.gvsig.timesupport.app.animation.extension package documentation</title>
7
</head>
8
<body>
9

  
10
	<p>Time animation gvSIG extension.</p>
11
	
12
	<p>
13
	This extension gives to gvSIG the possibility of animate layers with temporal information.
14
	Through this plugin you can configure parameters, play, stop and pause the motion. For each
15
	step, the view of gvSIG shows a window of data from the input layer.  
16
	</p>
17
</body>
18
</html>
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.animation/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/maven-v4_0_0.xsd">
4
    <modelVersion>4.0.0</modelVersion>
5
    <artifactId>org.gvsig.timesupport.app.animation</artifactId>
6
    <packaging>jar</packaging>
7
    <name>${project.artifactId}</name>
8
    <description>This plugin add a control to create animations</description>
9
    <parent>
10
        <groupId>org.gvsig</groupId>
11
        <artifactId>org.gvsig.timesupport.app</artifactId>
12
        <version>2.0.221</version>
13
    </parent>
14

  
15
    <dependencies>
16
        <dependency>
17
            <groupId>org.gvsig</groupId>
18
            <artifactId>org.gvsig.app.mainplugin</artifactId>
19
            <scope>compile</scope>
20
        </dependency>
21
        <dependency>
22
            <groupId>org.gvsig</groupId>
23
            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
24
            <scope>compile</scope>
25
        </dependency>
26
        <dependency>
27
            <groupId>org.gvsig</groupId>
28
            <artifactId>org.gvsig.timesupport.swing.api</artifactId>
29
            <scope>compile</scope>
30
        </dependency>
31
        <dependency>
32
            <groupId>org.gvsig</groupId>
33
            <artifactId>org.gvsig.timesupport.swing.impl</artifactId>
34
            <scope>runtime</scope>
35
        </dependency>
36
    </dependencies>
37
    <properties>
38
        <gvsig.package.info.name>Tools: Animation by time</gvsig.package.info.name>
39
        <gvsig.package.info.official>true</gvsig.package.info.official>
40
    </properties>
41
</project>
0 42

  
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/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/maven-v4_0_0.xsd">
4
    <modelVersion>4.0.0</modelVersion>
5
    <artifactId>org.gvsig.timesupport.app.viewfilter</artifactId>
6
    <packaging>jar</packaging>
7
    <name>${project.artifactId}</name>
8
    <description>This plugin add a control to make filters by time</description>
9
    <parent>
10
        <groupId>org.gvsig</groupId>
11
        <artifactId>org.gvsig.timesupport.app</artifactId>
12
        <version>2.0.221</version>
13
    </parent>
14

  
15
    <dependencies>
16
        <dependency>
17
            <groupId>org.gvsig</groupId>
18
            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
19
            <scope>compile</scope>
20
        </dependency>
21
        <dependency>
22
            <groupId>org.gvsig</groupId>
23
            <artifactId>org.gvsig.timesupport.lib.impl</artifactId>
24
            <scope>runtime</scope>
25
        </dependency>
26
        <dependency>
27
            <groupId>org.gvsig</groupId>
28
            <artifactId>org.gvsig.timesupport.swing.api</artifactId>
29
            <scope>compile</scope>
30
        </dependency>
31
        <dependency>
32
            <groupId>org.gvsig</groupId>
33
            <artifactId>org.gvsig.timesupport.swing.impl</artifactId>
34
            <scope>runtime</scope>
35
        </dependency>
36
        <dependency>
37
            <groupId>org.gvsig</groupId>
38
            <artifactId>org.gvsig.fmap.mapcontext.api</artifactId>
39
            <scope>compile</scope>
40
        </dependency>   
41
        <dependency>
42
            <groupId>org.gvsig</groupId>
43
            <artifactId>org.gvsig.fmap.dal.api</artifactId>
44
            <scope>compile</scope>
45
        </dependency>             
46
        <dependency>
47
            <groupId>org.gvsig</groupId>
48
            <artifactId>org.gvsig.andami</artifactId>
49
            <scope>compile</scope>
50
        </dependency>
51
        <dependency>
52
            <groupId>org.gvsig</groupId>
53
            <artifactId>org.gvsig.app.mainplugin</artifactId>
54
            <scope>compile</scope>
55
        </dependency>
56
    </dependencies>
57
    <properties>
58
        <gvsig.package.info.name>Tools: Filter a view by time</gvsig.package.info.name>
59
        <gvsig.package.info.official>true</gvsig.package.info.official>
60
    </properties>
61
</project>
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/nbactions.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<actions>
3
        <action>
4
            <actionName>CUSTOM-dependency:tree</actionName>
5
            <displayName>dependency:tree</displayName>
6
            <goals>
7
                <goal>dependency:tree</goal>
8
            </goals>
9
        </action>
10
    </actions>
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/buildNumber.properties
1
#Mon Apr 16 09:46:28 CEST 2018
2
buildNumber=2767
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/src/test/resources/README.txt
1
Put into this folder the resources needed by your test classes.
2

  
3
This folder is added to the Tests classpath, so you can load any resources 
4
through the ClassLoader.
5

  
6
By default, in this folder you can find an example of log4j configuration,
7
prepared to log messages through the console, so logging works when you
8
run your tests classes.
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/src/test/resources/log4j.xml
1
<?xml version="1.0" encoding="ISO-8859-1" ?>
2
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
3

  
4
<!-- 
5
Log4J configuration file for unit tests execution.
6
 -->
7
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
8

  
9
	<!-- Appender configuration to show logging messages through the console -->
10
	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
11
		<layout class="org.apache.log4j.PatternLayout">
12
			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
13
		</layout>
14
	</appender>
15

  
16
	<!-- 
17
	Activate logging messages of DEBUG level of higher only for the
18
	org.gvsig.tools packages.
19
	You can put full classes names or packages instead, to configure
20
	logging for all the classes and subpackages of the package.
21
	-->
22
	<category name="org.gvsig.tools">
23
		<priority value="DEBUG" />
24
	</category>
25
	<category name="org.gvsig.timesupport">
26
		<priority value="DEBUG" />
27
	</category>
28

  
29
	<!-- 
30
	By default, show only logging messages of INFO level or higher, 
31
	through the previously configured CONSOLE appender. 
32
	-->
33
	<root>
34
		<priority value="INFO" />
35
		<appender-ref ref="CONSOLE" />
36
	</root>
37
</log4j:configuration>
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/src/main/resources-plugin/text.properties
1
Add_Temporal_Filter=A?adir filtro temporal
2
add_temporal_filter_description=A?ade un filtro temporal a la vista
3
temporal_filter=Filtro temporal
4
rdButton_none=Ninguno
5
rdButton_interval=Intervalo
6
rdButton_instant=Instante
7
lbl_begin_position=Fecha inicial 
8
lbl_end_position=Fecha final
9
temporal_btn_cancel=Cerrar
10
checkbox_change_type_time=Tiempo absoluto / Tiempo relativo
11
lbl_sos_years=A?os
12
lbl_sos_month_of_year=Mes del a?o
13
lbl_sos_week_of_wekk_year=Semana del a?o
14
lbl_sos_weeks=Semanas
15
lbl_sos_days=D?as
16
lbl_sos_hours=Horas
17
lbl_sos_minutes=Minutos
18
lbl_sos_seconds=Segundos
19
lbl_sos_millis=Mil?simas
20
radio_start=Desde inicio
21
radio_end=Desde el fin
22
Time=Tiempo
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/src/main/resources-plugin/text_en.properties
1
Add_Temporal_Filter=Add temporal filter
2
add_temporal_filter_description=Add a temporal filter to the view
3
temporal_filter=Temporal Filter
4
rdButton_none=None
5
rdButton_interval=Interval
6
rdButton_instant=Instant
7
lbl_begin_position=Start date
8
lbl_end_position=End date
9
temporal_btn_cancel=Close
10
checkbox_change_type_time=Absolutely time / Relative time
11
lbl_sos_years=Years
12
lbl_sos_month_of_year=Month of year
13
lbl_sos_week_of_wekk_year=Week of Year
14
lbl_sos_days=Days
15
lbl_sos_hours=Hours
16
lbl_sos_minutes=Minutes
17
lbl_sos_seconds=Seconds
18
lbl_sos_millis=Millis
19
radio_start=Start time
20
radio_end=End time
21
Time=Time
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/src/main/resources-plugin/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
    <depends plugin-name="org.gvsig.app" />
4
    <resourceBundle name="text"/>
5
    <libraries library-dir="lib"/>
6
    <extensions>
7
        <extension class-name="org.gvsig.timesupport.app.extension.TimeSupportExtension"
8
            description=""
9
            active="true"
10
            priority="1">
11
            
12
            <action
13
              name="view-addtemporalfilter"
14
              label="_Add_temporal_filter"
15
              position="650150100"
16
              action-command="TimeSupport"
17
              tooltip="_Show_temporal_filter_dialog"
18
              accelerator=""
19
              />
20
            
21
            <menu 
22
                text="View/Time/Add_Temporal_Filter"
23
                name="view-addtemporalfilter"
24
            />
25
            
26
        </extension>		
27
    </extensions>
28
</plugin-config>
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/src/main/resources-plugin/build.number
1
#Build Number for ANT. Do not edit!
2
#Tue Apr 28 16:00:47 CEST 2009
3
build.number=2005
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/src/main/assembly/gvsig-plugin-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

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

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

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

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

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

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

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

  
50
  <!--
51
  <dependencySets>
52
    <dependencySet>
53
      <useProjectArtifact>false</useProjectArtifact>
54
      <useTransitiveDependencies>false</useTransitiveDependencies>
55
      <outputDirectory>lib</outputDirectory>
56
      <includes>
57
        <include>com.toedter:jcalendar</include>
58
      </includes>
59
    </dependencySet>
60
  </dependencySets>
61
  -->
62
</assembly>
63

  
0 64

  
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/src/main/java/org/gvsig/timesupport/app/extension/TimeSelectorObserver.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2017 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or modify it under
7
 * the terms of the GNU General Public License as published by the Free Software
8
 * Foundation; either version 3 of the License, or (at your option) any later
9
 * version.
10
 *
11
 * This program is distributed in the hope that it will be useful, but WITHOUT
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14
 * details.
15
 *
16
 * You should have received a copy of the GNU General Public License along with
17
 * this program; if not, write to the Free Software Foundation, Inc., 51
18
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us at info AT
21
 * gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.timesupport.app.extension;
24

  
25
import org.gvsig.app.project.documents.view.ViewDocument;
26
import org.gvsig.timesupport.Time;
27
import org.gvsig.timesupport.swing.api.panel.TimeSelectorPanel;
28
import org.gvsig.timesupport.swing.api.panel.TimeSelectorPanel.TimeSelectorPanelNotification;
29
import org.gvsig.tools.observer.Observable;
30
import org.gvsig.tools.observer.Observer;
31

  
32
/**
33
 * @author gvSIG Team
34
 * @version $Id$
35
 *
36
 */
37
public class TimeSelectorObserver implements Observer {
38

  
39
    private ViewDocument viewDocument = null;
40
    private Time time = null;
41

  
42
    public TimeSelectorObserver(ViewDocument viewDocument) {
43
        super();
44
        this.viewDocument = viewDocument;
45
    }
46

  
47
    @Override
48
    public void update(Observable observable, Object notification) {
49
        TimeSelectorPanel timeSliderPanel = (TimeSelectorPanel) observable;
50
        TimeSelectorPanelNotification timeSelectorPanelNotification = (TimeSelectorPanelNotification) notification;
51

  
52
        if( timeSelectorPanelNotification.getType().equals(TimeSelectorPanelNotification.UPDATE_TIME) ) {
53
            Time newTime = timeSelectorPanelNotification.getTime();
54
            if( time == null ) {
55
                time = newTime;
56
                filter();
57
            } else {
58
                if( !time.equals(newTime) ) {
59
                    time = newTime;
60
                    filter();
61
                }
62
            }
63
        }
64
    }
65

  
66
    private void filter() {
67
        this.viewDocument.getMapContext().getViewPort().setTime(time);
68
    }
69
}
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/src/main/java/org/gvsig/timesupport/app/extension/MapContextListener.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2017 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or modify it under
7
 * the terms of the GNU General Public License as published by the Free Software
8
 * Foundation; either version 3 of the License, or (at your option) any later
9
 * version.
10
 *
11
 * This program is distributed in the hope that it will be useful, but WITHOUT
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14
 * details.
15
 *
16
 * You should have received a copy of the GNU General Public License along with
17
 * this program; if not, write to the Free Software Foundation, Inc., 51
18
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us at info AT
21
 * gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.timesupport.app.extension;
24

  
25
import org.gvsig.fmap.mapcontext.MapContext;
26
import org.gvsig.fmap.mapcontext.layers.CancelationException;
27
import org.gvsig.fmap.mapcontext.layers.LayerCollectionEvent;
28
import org.gvsig.fmap.mapcontext.layers.LayerCollectionListener;
29
import org.gvsig.fmap.mapcontext.layers.LayerPositionEvent;
30
import org.gvsig.timesupport.swing.api.panel.TimeSelectorPanel;
31

  
32

  
33
/**
34
 * @author gvSIG Team
35
 * @version $Id$
36
 *
37
 */
38
public class MapContextListener implements LayerCollectionListener{
39
    private final MapContext mapContext;
40
    private final TimeSelectorPanel timeSelectorPanel;
41

  
42
    public MapContextListener(MapContext mapContext, TimeSelectorPanel timeSelectorPanel) {
43
        super();
44
        this.mapContext = mapContext;
45
        this.timeSelectorPanel = timeSelectorPanel;
46
    }
47

  
48
    @Override
49
    public void layerAdded(LayerCollectionEvent e) {
50
        mapContextUpdated();
51
    }
52

  
53
    @Override
54
    public void layerMoved(LayerPositionEvent e) {
55

  
56
    }
57

  
58
    @Override
59
    public void layerRemoved(LayerCollectionEvent e) {
60
        mapContextUpdated();        
61
    }
62

  
63
    @Override
64
    public void layerAdding(LayerCollectionEvent e) throws CancelationException {
65

  
66
    }
67

  
68
    @Override
69
    public void layerMoving(LayerPositionEvent e) throws CancelationException {
70

  
71
    }
72

  
73
    @Override
74
    public void layerRemoving(LayerCollectionEvent e) throws CancelationException {
75

  
76
    }
77

  
78
    @Override
79
    public void visibilityChanged(LayerCollectionEvent e) throws CancelationException {
80

  
81
    }
82

  
83
    private void mapContextUpdated(){
84
        MapContext.MapTimeContext timeContext = mapContext.getTimeContext();
85
        if (timeContext.getInterval() == null){
86
            timeSelectorPanel.asJComponent().setVisible(false);
87
        }else{
88
            timeSelectorPanel.asJComponent().setVisible(true);
89
            timeSelectorPanel.setIntervals(timeContext.getInterval());
90
            timeSelectorPanel.setInstants(timeContext.getTimes());  
91
        }
92
    }
93
}
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/src/main/java/org/gvsig/timesupport/app/extension/TimeSupportExtension.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2017 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or modify it under
7
 * the terms of the GNU General Public License as published by the Free Software
8
 * Foundation; either version 3 of the License, or (at your option) any later
9
 * version.
10
 *
11
 * This program is distributed in the hope that it will be useful, but WITHOUT
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14
 * details.
15
 *
16
 * You should have received a copy of the GNU General Public License along with
17
 * this program; if not, write to the Free Software Foundation, Inc., 51
18
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us at info AT
21
 * gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.timesupport.app.extension;
24

  
25
import java.util.Iterator;
26
import org.gvsig.andami.plugins.Extension;
27
import org.gvsig.app.ApplicationLocator;
28
import org.gvsig.app.ApplicationManager;
29
import org.gvsig.app.project.documents.view.ViewDocument;
30
import org.gvsig.app.project.documents.view.ViewManager;
31
import org.gvsig.fmap.dal.DataStore;
32
import org.gvsig.fmap.mapcontext.MapContext;
33
import org.gvsig.fmap.mapcontext.MapContext.MapTimeContext;
34
import org.gvsig.fmap.mapcontext.layers.FLayer;
35
import org.gvsig.fmap.mapcontext.layers.FLayers;
36
import org.gvsig.fmap.mapcontext.layers.operations.SingleLayer;
37
import org.gvsig.timesupport.AbsoluteIntervalTypeNotRegisteredException;
38
import org.gvsig.timesupport.swing.api.TimeSupportSwingException;
39
import org.gvsig.timesupport.swing.api.TimeSupportSwingLocator;
40
import org.gvsig.timesupport.swing.api.TimeSupportSwingManager;
41
import org.gvsig.timesupport.swing.api.panel.TimeSelectorPanel;
42
import org.gvsig.tools.ToolsLocator;
43
import org.gvsig.tools.i18n.I18nManager;
44
import org.gvsig.tools.locator.LocatorException;
45
import org.gvsig.tools.swing.api.ToolsSwingLocator;
46
import org.gvsig.tools.swing.api.windowmanager.WindowManager;
47

  
48
/**
49
 * Andami extension to show TimeSupport in the application.
50
 *
51
 * @author gvSIG Team
52
 */
53
public class TimeSupportExtension extends Extension {
54

  
55
    @Override
56
    public void initialize() {
57
        // Do nothing
58
    }
59

  
60
    @Override
61
    public void postInitialize() {
62
        super.postInitialize();
63
    }
64

  
65
    @Override
66
    public void execute(String actionCommand) {
67
        try {
68
            showTimeSupport();
69
        } catch (Exception e) {
70
            logger.warn("Can't show time support dialog", e);
71
        }
72
    }
73

  
74
    public void showTimeSupport() throws CloneNotSupportedException, LocatorException, TimeSupportSwingException, AbsoluteIntervalTypeNotRegisteredException {
75
        ApplicationManager application = ApplicationLocator.getManager();
76
        ViewDocument viewDocument = (ViewDocument) application.getActiveDocument(ViewManager.TYPENAME);
77
        if( viewDocument == null ) {
78
            return;
79
        }
80
        I18nManager i18n = ToolsLocator.getI18nManager();
81
        TimeSupportSwingManager swingManager = TimeSupportSwingLocator.getSwingManager();
82

  
83
        MapContext mapContext = viewDocument.getMapContext();
84
        MapTimeContext timeContext = mapContext.getTimeContext();
85
        
86
        TimeSelectorPanel timeSelectorPanel = swingManager.createTimeSelectorPanel(timeContext.getInterval());
87
        timeSelectorPanel.setInstants(timeContext.getTimes());
88
        timeSelectorPanel.addObserver(new TimeSelectorObserver(viewDocument));
89

  
90
        mapContext.getLayers().addLayerCollectionListener(new MapContextListener(mapContext, timeSelectorPanel));
91

  
92
        WindowManager windowManager = ToolsSwingLocator.getWindowManager();
93
        windowManager.showWindow(
94
            timeSelectorPanel.asJComponent(), 
95
            i18n.getTranslation("temporal_filter") + " - " + viewDocument.getName(), 
96
            WindowManager.MODE.TOOL
97
        );
98
    }
99

  
100
    @Override
101
    public boolean isEnabled() {
102
        ApplicationManager application = ApplicationLocator.getManager();
103
        ViewDocument viewDocument = (ViewDocument) application.getActiveDocument(ViewManager.TYPENAME);
104
        if( viewDocument == null ) {
105
            return false;
106
        }
107
        FLayers layers = viewDocument.getMapContext().getLayers();
108
        for( Iterator<FLayer> iterator = layers.deepiterator(); iterator.hasNext(); ) {
109
            FLayer layer = iterator.next();
110
            if( layer instanceof SingleLayer ) {
111
                DataStore dataStore = ((SingleLayer) layer).getDataStore();
112
                if( dataStore.getInterval() != null ) {
113
                    return true;
114
                }
115
            }
116
        }
117
        return false;
118
    }
119

  
120
    @Override
121
    public boolean isVisible() {
122
        ApplicationManager application = ApplicationLocator.getManager();
123
        ViewDocument viewDocument = (ViewDocument) application.getActiveDocument(ViewManager.TYPENAME);
124
        return viewDocument!=null;
125
    }
126

  
127
}
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.timesupport.app/org.gvsig.timesupport.app.viewfilter/src/main/java/org/gvsig/timesupport/app/extension/package.html
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
4
<head>
5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
<title>org.gvsig.timesupport package documentation</title>
7
</head>
8
<body>
9

  
10
	<p>TimeSupport gvSIG extension</p>
11
	
12
	<p>
13
	Shows TimeSupport into gvSIG.
14
	</p>
15

  
16
</body>
17
</html>
0 18

  
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.csv.app/org.gvsig.csv.app.mainplugin/buildNumber.properties
1
#Mon Apr 16 09:46:33 CEST 2018
2
buildNumber=2767
0 3

  
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.csv.app/org.gvsig.csv.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

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

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

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

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

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

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

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

  
50

  
51
  <dependencySets>
52
    <dependencySet>
53
      <useProjectArtifact>false</useProjectArtifact>
54
      <useTransitiveDependencies>false</useTransitiveDependencies>
55
      <outputDirectory>lib</outputDirectory>
56
      <includes>
57
        <include>org.gvsig:org.gvsig.fmap.dal.file.csv</include>
58
        <include>net.sf.supercsv:super-csv</include>
59
        <include>org.apache.commons:commons-lang3</include>
60
      </includes>
61
    </dependencySet>
62
  </dependencySets>
63

  
64
</assembly>
65

  
0 66

  
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.csv.app/org.gvsig.csv.app.mainplugin/src/main/resources-plugin/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<!--
3

  
4
    gvSIG. Desktop Geographic Information System.
5

  
6
    Copyright (C) 2007-2013 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 3
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
<plugin-config>
28
  <depends plugin-name="org.gvsig.app.mainplugin" />
29
  <libraries library-dir="lib"/>
30
  <resourceBundle name="text"/>
31
  <extensions>
32
    <extension class-name="org.gvsig.andami.LibraryExtension"
33
      description=""
34
      active="true">
35
    </extension>
36
  </extensions>
37

  
38
</plugin-config>
0 39

  
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.csv.app/org.gvsig.csv.app.mainplugin/pom.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
    <modelVersion>4.0.0</modelVersion>
4
    <artifactId>org.gvsig.csv.app.mainplugin</artifactId>
5
    <packaging>jar</packaging>
6
    <name>${project.artifactId}</name>
7
    <description>CSV file format support</description>
8
    <parent>
9
        <groupId>org.gvsig</groupId>
10
        <artifactId>org.gvsig.csv.app</artifactId>
11
        <version>2.0.221</version>
12
    </parent>
13
    <dependencies>
14

  
15

  
16
        <dependency>
17
            <groupId>org.gvsig</groupId>
18
            <artifactId>org.gvsig.andami</artifactId>
19
            <scope>compile</scope>
20
        </dependency>
21
        <dependency>
22
            <groupId>org.gvsig</groupId>
23
            <artifactId>org.gvsig.i18n</artifactId>
24
            <scope>compile</scope>
25
        </dependency>
26
        <dependency>
27
            <groupId>org.slf4j</groupId>
28
            <artifactId>slf4j-api</artifactId>
29
            <scope>compile</scope>
30
        </dependency>
31

  
32
        <dependency>
33
            <groupId>org.gvsig</groupId>
34
            <artifactId>org.gvsig.fmap.dal.file.csv</artifactId>
35
            <scope>runtime</scope>
36
        </dependency>
37
        <dependency>
38
            <groupId>net.sf.supercsv</groupId>
39
            <artifactId>super-csv</artifactId>
40
            <scope>runtime</scope>
41
        </dependency>
42
        <dependency>
43
            <groupId>org.apache.commons</groupId>
44
            <artifactId>commons-lang3</artifactId>
45
            <scope>runtime</scope>
46
        </dependency>
47

  
48
    </dependencies>
49

  
50
    <properties>
51
        <gvsig.package.info.name>Formats: CSV file format support</gvsig.package.info.name>
52
        <gvsig.package.info.dependencies>required: org.gvsig.app.mainplugin -ge 2.1.0-A</gvsig.package.info.dependencies>
53
        <gvsig.package.info.categories>Formats</gvsig.package.info.categories>
54
        <gvsig.package.info.official>true</gvsig.package.info.official>
55
    </properties>
56

  
57
</project>
58

  
0 59

  
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.csv.app/pom.xml
1
<?xml version="1.0" encoding="UTF-8"?>
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/maven-v4_0_0.xsd">
4
    <modelVersion>4.0.0</modelVersion>
5
    <artifactId>org.gvsig.csv.app</artifactId>
6
  <name>${project.artifactId}</name>
7
  <packaging>pom</packaging>
8
  <parent>
9
      <groupId>org.gvsig</groupId>
10
      <artifactId>org.gvsig.desktop.plugin</artifactId>
11
      <version>2.0.221</version>
12
  </parent>
13
  
14
  <modules>
15
    <module>org.gvsig.csv.app.mainplugin</module>
16
  </modules>
17
</project>
0 18

  
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.geometry.app/pom.xml
1
<?xml version="1.0" encoding="UTF-8"?>
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/maven-v4_0_0.xsd">
4
    <modelVersion>4.0.0</modelVersion>
5
    <artifactId>org.gvsig.geometry.app</artifactId>
6
  <name>${project.artifactId}</name>
7
  <packaging>pom</packaging>
8
  <parent>
9
      <groupId>org.gvsig</groupId>
10
      <artifactId>org.gvsig.desktop.plugin</artifactId>
11
      <version>2.0.221</version>
12
  </parent>
13

  
14
  <modules>
15
    <!-- <module>org.gvsig.geometry.app.generalpath</module>  -->
16
    <module>org.gvsig.geometry.app.jts</module>
17
  </modules>
18
</project>
0 19

  
tags/org.gvsig.desktop-2.0.221/org.gvsig.desktop.plugin/org.gvsig.geometry.app/org.gvsig.geometry.app.jts/src/main/assembly/gvsig-plugin-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

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

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

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

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

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

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

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

  
50

  
51
  <dependencySets>
52
    <dependencySet>
53
      <useProjectArtifact>false</useProjectArtifact>
54
      <useTransitiveDependencies>false</useTransitiveDependencies>
55
      <outputDirectory>lib</outputDirectory>
56
      <includes>
57
        <include>com.vividsolutions:jts</include>
58
        <include>org.gvsig:org.gvsig.fmap.geometry.api</include>
59
        <include>org.gvsig:org.gvsig.fmap.geometry.jts</include>
60
        <include>org.gvsig:org.gvsig.fmap.geometry.operation.jts</include>
61
        <include>org.hibernate:hibernate-spatial</include>
62
        <include>net.sf:jsi</include>
63
        <include>gnu.trove:trove</include>
64
      </includes>
65
    </dependencySet>
66
  </dependencySets>
67

  
68
</assembly>
69

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff