Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/prepare-workspace.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/prepare-workspace.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/prepare-workspace.xml	(revision 38300)
@@ -0,0 +1,151 @@
+<project name="org.gvsig.initial.build" default="prepare-workspace">
+
+	<dirname property="org.gvsig.initial.build.basedir" file="${ant.file.org.gvsig.initial.build}" />
+
+	<property name="workspace.basedir" value="${org.gvsig.initial.build.basedir}/.." />
+	<property name="build.basedir" value="${workspace.basedir}/org.gvsig.maven.base.build" description="Eclipse workspace location" />
+	<property name="build.jar.version" value="1.0.8-SNAPSHOT" />
+	<property name="build.jar.file" value="org.gvsig.maven.base.build-${build.jar.version}.jar" />
+
+	<property name="ant.libs.dir" location="${build.basedir}" description="Additional ant tasks libs folder" />
+
+	<target name="check-maven-base-build-available">
+		<available file="${user.home}/.m2/repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" property="maven-base-build-available" />
+	</target>
+
+	<target name="get-maven-base-build-local" depends="check-maven-base-build-available" if="maven-base-build-available">
+		<!-- Unzip de build jar file from the maven repository into the workspace root folder -->
+		<copy todir="${workspace.basedir}" preservelastmodified="false" filtering="false">
+			<zipfileset src="${user.home}/.m2/repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}">
+				<patternset>
+					<exclude name="META-INF/**" />
+				</patternset>
+			</zipfileset>
+		</copy>
+	</target>
+
+	<target name="get-maven-base-build-remote" depends="check-maven-base-build-available" unless="maven-base-build-available">
+		<mkdir dir="target" />
+
+		<!-- Download the build jar file -->
+		<get src="http://devel.gvsig.org/m2repo/j2se/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" dest="target/${build.jar.file}" verbose="true" />
+
+		<!-- Unzip de build jar file into the workspace root folder -->
+		<copy todir="${workspace.basedir}" preservelastmodified="false" filtering="false">
+			<zipfileset src="target/${build.jar.file}">
+				<patternset>
+					<exclude name="META-INF/**" />
+				</patternset>
+			</zipfileset>
+		</copy>
+
+	</target>
+	
+	<target name="find.depends.natives.file">
+	    <condition property="depends.natives.file.exists">
+            <available file="${org.gvsig.initial.build.basedir}/DEPENDS_ON_NATIVE_LIBRARIES"/>
+	    </condition>	
+	</target>
+	
+	<target name="find.gvsig.platform.properties.file" 
+			depends="find.depends.natives.file"
+			if="depends.natives.file.exists">
+	    <condition property="gvsig.platform.exists">
+            <available file="${user.home}/.gvsig.platform.properties"/>
+	    </condition>	
+	</target>
+	
+	<target name="check.gvsig.platform.properties" 
+			depends="find.gvsig.platform.properties.file">
+		<fail if="depends.natives.file.exists" unless="gvsig.platform.exists">
+ERROR!!
+	
+You have to define your gvSIG platform properties, 
+by creating the file: ${user.home}/.gvsig.platform.properties
+with the following content:
+
+native_platform=linux
+native_distribution=all
+native_compiler=gcc4
+native_arch=i386
+native_libraryType=dynamic
+export native_classifier=${native_platform}-${native_distribution}-${native_compiler}-${native_arch}-${native_libraryType}
+
+Replace the fifth initial variables values with the ones appropiate 
+to your platform.
+	
+If you use maven in the command line, you can use the previous file also
+to define the MAVEN_OPTS environment variable, by adding to your 
+.bash_rc file something like this:
+
+if [ -f "${HOME}/.gvsig.platform.properties" ]
+then
+    . ${HOME}/.gvsig.platform.properties
+    export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m -Dnative-classifier=${native_classifier}"
+else
+    export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m"
+fi
+
+It will work if you use the bash shell. In any other case or platform, you'll
+have to define your MAVEN_OPTS environment variable and set the 
+"native-classifier" parameter directly.
+		</fail>			
+	
+	</target>
+
+	<target name="prepare-workspace" depends="get-maven-base-build-local,get-maven-base-build-remote,check.gvsig.platform.properties">
+
+		<mkdir dir="target" />
+
+		<chmod dir="${build.basedir}/maven/bin" perm="u+x" includes="m2,mvn,mvnDebug" />
+
+		<!-- Copy the maven launchers to the workspace metadata folder -->
+		<copy todir="${workspace.basedir}/.metadata">
+			<fileset dir="${build.basedir}/eclipse-launchers">
+				<exclude name="**/org.eclipse.jdt.core.prefs" />
+				<exclude name="**/org.eclipse.core.variables.prefs" />
+			</fileset>
+		</copy>
+
+		<concat destfile="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs" append="true">
+			<filelist dir="${build.basedir}/eclipse-launchers/.plugins/org.eclipse.core.runtime/.settings" files="org.eclipse.jdt.core.prefs" />
+		</concat>
+		<concat destfile="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs" append="true">
+			<filelist dir="${build.basedir}/eclipse-launchers/.plugins/org.eclipse.core.runtime/.settings" files="org.eclipse.core.variables.prefs" />
+		</concat>
+
+		<!-- Configure the eclipse workspace -->
+		<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-configure-eclipse-workspace" />
+
+		<!-- Configure the gvSIG profile -->
+		<ant antfile="${build.basedir}/check-gvsig-profile.xml" />
+
+		<property name="user-settings-file-location" value="${user.home}/.m2/settings.xml" />
+
+		<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask">
+			<classpath>
+				<pathelement location="${ant.libs.dir}/com.oopsconsultancy.xmltask-1.16.1.jar" />
+			</classpath>
+		</taskdef>
+
+		<xmltask source="${user-settings-file-location}" dest="${user-settings-file-location}">
+			<copy path="//:settings/:profiles/:profile[:id/text() = 'gvsig-install']/:properties/:gvsig.install.dir/text()" property="current-gvsig-location" />
+		</xmltask>
+
+		<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" />
+		<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" />
+
+		<!-- Compile, install and generate eclipse projects -->
+		<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-install-and-eclipse-eclipse" />
+
+		<echo>INFORMATION!!!</echo>
+		<echo>Restart eclipse and then proceed to import the subprojects contained into the main project</echo>
+
+		<!-- TODO: copiar al proyecto de configuración general -->
+	</target>
+
+	<target name="clean">
+		<delete dir="target" />
+	</target>
+	
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/prepare-workspace.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/pom.xml	(revision 38300)
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto</artifactId>
+	<packaging>pom</packaging>
+	<version>1.0.0-SNAPSHOT</version>
+	<name>org.gvsig.exportto</name>
+	<description>Exportto example project</description>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.maven.base.pom</artifactId>
+		<version>1.0.8-SNAPSHOT</version>
+	</parent>
+
+    <scm>
+        <connection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/org.gvsig.exportto</connection>
+        <developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/org.gvsig.exportto</developerConnection>
+        <url>https://devel.gvsig.org/redmine/projects/gvsig-desktop/repository/show/branches/v2_0_0_prep/libraries/org.gvsig.exportto</url>
+    </scm>
+
+	<developers>
+        <developer>
+            <id>jpiera</id>
+            <name>Jorge Piera</name>
+            <email>jpiera@gvsig.org</email>
+            <roles>
+                <role>Architect</role>
+                <role>Developer</role>
+            </roles>
+        </developer>
+        <developer>
+            <id>jjdelcerro</id>
+            <name>Joaqu�n Jos� del Cerro</name>
+            <email>jjdelcerro@gvsig.org</email>
+            <roles>
+                <role>Architect</role>          
+            </roles>
+        </developer>        
+    </developers>
+	<repositories>
+		<repository>
+			<id>gvsig-public-http-repository</id>
+			<name>gvSIG maven public HTTP repository</name>
+            <url>http://devel.gvsig.org/m2repo/j2se</url>
+			<releases>
+				<enabled>true</enabled>
+				<updatePolicy>daily</updatePolicy>
+				<checksumPolicy>warn</checksumPolicy>
+			</releases>
+			<snapshots>
+				<enabled>true</enabled>
+				<updatePolicy>daily</updatePolicy>
+				<checksumPolicy>warn</checksumPolicy>
+			</snapshots>
+		</repository>
+	</repositories>
+	<dependencyManagement>
+		<dependencies>			
+            <dependency>
+                <groupId>org.gvsig</groupId>
+                <artifactId>org.gvsig.core.maven.dependencies</artifactId>
+                <version>2.0.1-SNAPSHOT</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.gvsig</groupId>
+                <artifactId>org.gvsig.geodb</artifactId>
+                <version>2.0-SNAPSHOT</version>
+            </dependency>
+		</dependencies>
+	</dependencyManagement>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.tools.lib</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.tools.lib</artifactId>
+			<type>test-jar</type>
+		</dependency>	
+	</dependencies>
+
+	<modules>
+		<module>org.gvsig.exportto.lib</module>
+		<module>org.gvsig.exportto.swing</module>
+		<module>org.gvsig.exportto.main</module>
+	</modules>
+
+</project>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/README.txt
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/README.txt	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/README.txt	(revision 38300)
@@ -0,0 +1,18 @@
+The first time you checkout the current project to a new workspace, 
+you have to prepare it to be able to work easily with maven from
+eclipse itself.
+
+Perform the following steps:
+
+1.- Launch the *prepare-workspace.xml* ant build file. 
+    You can do it by loading the file into the ant view, 
+    and running the default task, or right-clicking the 
+    file from the package explorer or the navigator and
+    select the option: *Run as > Ant build*. 
+    
+2.- Restart eclipse.
+
+3.- Import the subprojects of the project you have just checked out.
+
+Those steps are only needed once per workspace.     
+

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/README.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/java/org/gvsig/exportto/main/Main.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/java/org/gvsig/exportto/main/Main.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/java/org/gvsig/exportto/main/Main.java	(revision 38300)
@@ -0,0 +1,174 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.main;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.event.ActionEvent;
+
+import javax.swing.AbstractAction;
+import javax.swing.Action;
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JMenu;
+import javax.swing.JMenuBar;
+import javax.swing.JMenuItem;
+import javax.swing.JToolBar;
+import javax.swing.WindowConstants;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.exportto.ExporttoLocator;
+import org.gvsig.exportto.ExporttoManager;
+import org.gvsig.exportto.swing.ExporttoSwingLocator;
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.ExporttoWindowManager;
+import org.gvsig.exportto.swing.JExporttoServicePanel;
+import org.gvsig.exportto.swing.preferences.ExporttoSwingPreferencesComponent;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.fmap.crs.CRSFactory;
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.DataStoreParameters;
+import org.gvsig.fmap.dal.exception.InitializeException;
+import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
+import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.library.impl.DefaultLibrariesInitializer;
+
+/**
+ * Main executable class for testing the Exportto library.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class Main {
+
+    private static final Logger LOG = LoggerFactory.getLogger(Main.class);
+
+    private ExporttoManager manager;
+    private ExporttoSwingManager swingManager;
+    private DataManager dataManager;
+
+    public static void main(String args[]) {
+        new DefaultLibrariesInitializer().fullInitialize();
+        Main main = new Main();
+        main.show();
+    }
+
+    @SuppressWarnings("serial")
+    public void show() {
+        manager = ExporttoLocator.getManager();
+        swingManager = ExporttoSwingLocator.getSwingManager();
+        dataManager = DALLocator.getDataManager();
+
+        Action showCookie = new AbstractAction("Get a Exportto") {
+
+            public void actionPerformed(ActionEvent e) {
+                showExportto(manager);
+            }
+        };
+
+        Action preferences = new AbstractAction("Exportto preferences") {
+
+            public void actionPerformed(ActionEvent e) {
+                showExporttoPreferences();
+            }
+
+        };
+
+        Action exit = new AbstractAction("Exit") {
+
+            public void actionPerformed(ActionEvent e) {
+                System.exit(0);
+            }
+        };
+
+        JFrame frame = new JFrame("Exportto example app");
+        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
+
+        // Create the menu bar.
+        JMenuBar menuBar = new JMenuBar();
+
+        // Build the menu.
+        JMenu menuFile = new JMenu("File");
+        menuFile.add(new JMenuItem(showCookie));
+        menuFile.add(new JMenuItem(preferences));
+        menuFile.add(new JMenuItem(exit));
+
+        menuBar.add(menuFile);
+
+        JToolBar toolBar = new JToolBar();
+        toolBar.add(new JButton(showCookie));
+        toolBar.add(new JButton(exit));
+
+        frame.setPreferredSize(new Dimension(200, 100));
+        frame.setJMenuBar(menuBar);
+        frame.add(toolBar, BorderLayout.PAGE_START);
+
+        // Display the window.
+        frame.pack();
+        frame.setVisible(true);
+    }
+
+    private void showExporttoPreferences() {
+        ExporttoSwingPreferencesComponent preferences =
+            ExporttoSwingProviderLocator.getManager()
+                .createExporttoSwingProvidersPreferences();
+
+        JFrame preferencesFrame = new JFrame("Export to preferences");
+        preferencesFrame.add(preferences.asJComponent());
+
+        preferencesFrame.pack();
+        preferencesFrame.setVisible(true);
+    }
+
+    public void showExportto(ExporttoManager manager) {
+        try {
+            JExporttoServicePanel panel =
+                swingManager.createExportto(createFeatureStore(),
+                    CRSFactory.getCRS("EPSG:23030"));
+            panel.setPreferredSize(new Dimension(800, 400));
+            swingManager.getWindowManager().showWindow(panel, "Exportto",
+                ExporttoWindowManager.MODE_WINDOW);
+        } catch (ValidateDataParametersException e) {
+            LOG.error("Error showing a Exportto", e);
+        } catch (InitializeException e) {
+            LOG.error("Error showing a Exportto", e);
+        } catch (ProviderNotRegisteredException e) {
+            LOG.error("Error showing a Exportto", e);
+        }
+    }
+
+    private FeatureStore createFeatureStore() throws InitializeException,
+        ProviderNotRegisteredException, ValidateDataParametersException {
+        String sourceFileName =
+            getClass().getClassLoader()
+                .getResource("org/gvsig/exportto/data/andalucia.shp").getFile();
+        DataStoreParameters sourceParameters =
+            dataManager.createStoreParameters("Shape");
+        sourceParameters.setDynValue("shpfile", sourceFileName);
+        sourceParameters.setDynValue("crs", CRSFactory.getCRS("EPSG:23030"));
+        return (FeatureStore) dataManager.openStore("Shape", sourceParameters);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/java/org/gvsig/exportto/main/Main.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/java/org/gvsig/exportto/main/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/java/org/gvsig/exportto/main/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/java/org/gvsig/exportto/main/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exportto package documentation</title>
+</head>
+<body>
+
+	<p>Exportto library testing and demo application.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/java/org/gvsig/exportto/main/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/org/gvsig/exportto/data/andalucia.dbf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/org/gvsig/exportto/data/andalucia.dbf
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:mime-type
   + application/octet-stream

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/org/gvsig/exportto/data/andalucia.shx
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/org/gvsig/exportto/data/andalucia.shx
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream
Added: svn:executable
   + *

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/org/gvsig/exportto/data/andalucia.shp
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/org/gvsig/exportto/data/andalucia.shp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream
Added: svn:executable
   + *

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/README.txt
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/README.txt	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/README.txt	(revision 38300)
@@ -0,0 +1,8 @@
+Put into this folder the resources needed by your classes.
+
+This folder is added to the classpath, so you can load any resources 
+through the ClassLoader.
+
+By default, in this folder you can find an example of log4j configuration,
+prepared to log messages through the console, so logging works when you
+run your classes.
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/README.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/log4j.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/log4j.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/log4j.xml	(revision 38300)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- 
+Log4J configuration file for unit tests execution.
+ -->
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+	<!-- Appender configuration to show logging messages through the console -->
+	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+		<layout class="org.apache.log4j.PatternLayout">
+			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
+		</layout>
+	</appender>
+
+	<!-- 
+	Activate logging messages of DEBUG level of higher only for the
+	org.gvsig.tools packages.
+	You can put full classes names or packages instead, to configure
+	logging for all the classes and subpackages of the package.
+	-->
+	<category name="org.gvsig.tools">
+		<priority value="DEBUG" />
+	</category>
+	<category name="org.gvsig.exportto">
+		<priority value="DEBUG" />
+	</category>
+
+	<!-- 
+	By default, show only logging messages of INFO level or higher, 
+	through the previously configured CONSOLE appender. 
+	-->
+	<root>
+		<priority value="INFO" />
+		<appender-ref ref="CONSOLE" />
+	</root>
+</log4j:configuration>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/src/main/resources/log4j.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/pom.xml	(revision 38300)
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.gvsig.exportto.main</artifactId>
+    <packaging>jar</packaging>
+    <name>org.gvsig.exportto.main</name>
+    <parent>
+        <groupId>org.gvsig</groupId>
+        <artifactId>org.gvsig.exportto</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+    <dependencies>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.lib.api</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.lib.impl</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.api</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.spi</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.impl</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.generic</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.shape</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.dxf</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.dbf</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.postgresql</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.mysql</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file</artifactId>
+            <classifier>store.shp</classifier>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file</artifactId>
+            <classifier>store.dxf</classifier>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.db</artifactId>
+            <classifier>store.postgresql</classifier>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.mapcontext</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.db</artifactId>
+            <classifier>store.mysql</classifier>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.serv.field</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.i18n</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+    </dependencies>
+</project>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.main
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/resources/org/gvsig/exportto/lib/impl/exporttofilters.properties
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/resources/org/gvsig/exportto/lib/impl/exporttofilters.properties	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/resources/org/gvsig/exportto/lib/impl/exporttofilters.properties	(revision 38300)
@@ -0,0 +1,4 @@
+#point_geometries_only=
+#curve_geometries_only=
+#surface_geometries_only=
+prov_demo=PROV < '10'
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/resources/org/gvsig/exportto/lib/impl/exporttofilters.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 38300)
@@ -0,0 +1 @@
+org.gvsig.exportto.impl.ExporttoDefaultImplLibrary
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/DefaultExporttoManager.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/DefaultExporttoManager.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/DefaultExporttoManager.java	(revision 38300)
@@ -0,0 +1,151 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.impl;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Properties;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.exportto.ExporttoManager;
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.fmap.dal.DataServerExplorer;
+import org.gvsig.fmap.dal.NewDataStoreParameters;
+
+/**
+ * Default {@link ExporttoManager} implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultExporttoManager implements ExporttoManager {
+
+    private static final Logger LOG = LoggerFactory
+        .getLogger(DefaultExporttoManager.class);
+
+    @SuppressWarnings("rawtypes")
+    private Map filters = null;
+    private static final String EXPORTTOFILTERS_FILENAME =
+        "exporttofilters.properties";
+    private static final String GVSIGPREFERENCES_FOLDERNAME = "gvSIG";
+
+    @SuppressWarnings("rawtypes")
+    public DefaultExporttoManager() {
+        super();
+        filters = new HashMap();
+        try {
+            initializeFilters();
+        } catch (IOException e) {
+            LOG.error("Error reading the exporttofilters.properties file");
+        }
+    }
+
+    @SuppressWarnings({ "rawtypes", "unchecked" })
+    private void initializeFilters() throws IOException {
+        String path = System.getProperty("user.home");
+        path = path + File.separatorChar + GVSIGPREFERENCES_FOLDERNAME;
+        File directory = new File(path);
+        if (!directory.exists()) {
+            directory.mkdirs();
+        }
+        path = path + File.separatorChar + EXPORTTOFILTERS_FILENAME;
+        File exporttoFiltersFile = new File(path);
+        if (!exporttoFiltersFile.exists()) {
+            File templateFile =
+                new File(
+                    getClass()
+                        .getClassLoader()
+                        .getResource(
+                            "org/gvsig/exportto/lib/impl/exporttofilters.properties")
+                        .getFile());
+            if (!templateFile.exists()) {
+                return;
+            }
+            copy(templateFile, exporttoFiltersFile);
+        }
+        Properties properties = new Properties();
+        properties.load(new FileInputStream(exporttoFiltersFile));
+        Iterator it = properties.keySet().iterator();
+        while (it.hasNext()) {
+            String key = (String) it.next();
+            filters.put(key, properties.get(key));
+        }
+    }
+
+    private void copy(File sourceLocation, File targetLocation)
+        throws IOException {
+        if (sourceLocation.isDirectory()) {
+            if (!targetLocation.exists()) {
+                targetLocation.mkdir();
+            }
+
+            String[] children = sourceLocation.list();
+            for (int i = 0; i < children.length; i++) {
+                copy(new File(sourceLocation, children[i]), new File(
+                    targetLocation, children[i]));
+            }
+        } else {
+            targetLocation.getParentFile().mkdirs();
+
+            InputStream in = new FileInputStream(sourceLocation);
+            OutputStream out = new FileOutputStream(targetLocation);
+
+            // Copy the bits from instream to outstream
+            byte[] buf = new byte[1024];
+            int len;
+            while ((len = in.read(buf)) > 0) {
+                out.write(buf, 0, len);
+            }
+            in.close();
+            out.close();
+        }
+    }
+
+    public ExporttoService getExporttoService(
+        DataServerExplorer dataServerExplorer,
+        NewDataStoreParameters newDataStoreParameters) {
+        return new DefaultExporttoService(dataServerExplorer,
+            newDataStoreParameters);
+    }
+
+    @SuppressWarnings("rawtypes")
+    public Iterator getPredefinedFilters() {
+        return filters.keySet().iterator();
+    }
+
+    public String getFilter(String filterName) {
+        if (filters.containsKey(filterName)) {
+            return (String) filters.get(filterName);
+        }
+        return null;
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/DefaultExporttoManager.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/DefaultExporttoService.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/DefaultExporttoService.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/DefaultExporttoService.java	(revision 38300)
@@ -0,0 +1,137 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.impl;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.ExporttoServiceException;
+import org.gvsig.exportto.ExporttoServiceFinishAction;
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.DataServerExplorer;
+import org.gvsig.fmap.dal.NewDataStoreParameters;
+import org.gvsig.fmap.dal.feature.Feature;
+import org.gvsig.fmap.dal.feature.FeatureSet;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.fmap.dal.feature.FeatureType;
+import org.gvsig.tools.dispose.DisposableIterator;
+import org.gvsig.tools.dispose.DisposeUtils;
+import org.gvsig.tools.task.AbstractMonitorableTask;
+
+/**
+ * Default {@link ExporttoService} implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultExporttoService extends AbstractMonitorableTask implements
+    ExporttoService {
+
+    private DataServerExplorer dataServerExplorer;
+    private NewDataStoreParameters newDataStoreParameters;
+
+    private ExporttoServiceFinishAction exporttoServiceFinishAction;
+
+    /**
+     * {@link DefaultExporttoService} constructor
+     */
+    public DefaultExporttoService(DataServerExplorer dataServerExplorer,
+        NewDataStoreParameters newDataStoreParameters) {
+        super("Exportto");
+        this.dataServerExplorer = dataServerExplorer;
+        this.newDataStoreParameters = newDataStoreParameters;
+    }
+
+    public void export(FeatureStore featureStore, IProjection projection,
+        FeatureSet featureSet) throws ExporttoServiceException {
+        // TODO Auto-generated method stub
+
+    }
+
+    public void export(FeatureSet featureSet) throws ExporttoServiceException {
+
+        String providerName = newDataStoreParameters.getDataStoreName();
+        String explorerName = dataServerExplorer.getProviderName();
+
+        DisposableIterator it = null;
+        FeatureStore target = null;
+        try {
+            taskStatus.setRangeOfValues(0, featureSet.getSize());
+
+            DataManager dataManager = DALLocator.getDataManager();
+
+            dataManager.newStore(explorerName, providerName,
+                newDataStoreParameters, true);
+            target =
+                (FeatureStore) dataManager.openStore(providerName,
+                    newDataStoreParameters);
+
+            FeatureType targetType = target.getDefaultFeatureType();
+
+            target.edit(FeatureStore.MODE_APPEND);
+            it = featureSet.fastIterator();
+
+            long featureCount = 0;
+            while (it.hasNext()) {
+                Feature feature = (Feature) it.next();
+                target.insert(target.createNewFeature(targetType, feature));
+
+                featureCount++;
+                this.taskStatus.setCurValue(featureCount);
+
+                if (this.taskStatus.isCancellationRequested()) {
+                    return;
+                }
+            }
+            target.finishEditing();
+
+            this.taskStatus.terminate();
+            this.taskStatus.remove();
+        } catch (Exception e) {
+            throw new ExporttoServiceException(e);
+        } finally {
+            if (target != null) {
+                target.dispose();
+            }
+            if (it != null) {
+                it.dispose();
+            }
+            if (featureSet != null) {
+                featureSet.dispose();
+            }
+            DisposeUtils.dispose(it);
+        }
+
+        if (exporttoServiceFinishAction != null) {
+            exporttoServiceFinishAction.finished(
+                newDataStoreParameters.getDataStoreName(),
+                newDataStoreParameters);
+        }
+    }
+
+    public void setFinishAction(
+        ExporttoServiceFinishAction exporttoServiceFinishAction) {
+        this.exporttoServiceFinishAction = exporttoServiceFinishAction;
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/DefaultExporttoService.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exportto package documentation</title>
+</head>
+<body>
+
+	<p>Exportto library API default implementation.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/ExporttoDefaultImplLibrary.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/ExporttoDefaultImplLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/ExporttoDefaultImplLibrary.java	(revision 38300)
@@ -0,0 +1,52 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.impl;
+
+import org.gvsig.exportto.ExporttoLibrary;
+import org.gvsig.exportto.ExporttoLocator;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+
+/**
+ * Library for default implementation initialization and configuration.
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class ExporttoDefaultImplLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsImplementationOf(ExporttoLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+        ExporttoLocator.registerManager(DefaultExporttoManager.class);
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        // Do nothing
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/main/java/org/gvsig/exportto/impl/ExporttoDefaultImplLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/resources/README.txt
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/resources/README.txt	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/resources/README.txt	(revision 38300)
@@ -0,0 +1,8 @@
+Put into this folder the resources needed by your test classes.
+
+This folder is added to the Tests classpath, so you can load any resources 
+through the ClassLoader.
+
+By default, in this folder you can find an example of log4j configuration,
+prepared to log messages through the console, so logging works when you
+run your tests classes.
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/resources/README.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/resources/log4j.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/resources/log4j.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/resources/log4j.xml	(revision 38300)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- 
+Log4J configuration file for unit tests execution.
+ -->
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+	<!-- Appender configuration to show logging messages through the console -->
+	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+		<layout class="org.apache.log4j.PatternLayout">
+			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
+		</layout>
+	</appender>
+
+	<!-- 
+	Activate logging messages of DEBUG level of higher only for the
+	org.gvsig.tools packages.
+	You can put full classes names or packages instead, to configure
+	logging for all the classes and subpackages of the package.
+	-->
+	<category name="org.gvsig.tools">
+		<priority value="DEBUG" />
+	</category>
+	<category name="org.gvsig.exportto">
+		<priority value="DEBUG" />
+	</category>
+
+	<!-- 
+	By default, show only logging messages of INFO level or higher, 
+	through the previously configured CONSOLE appender. 
+	-->
+	<root>
+		<priority value="INFO" />
+		<appender-ref ref="CONSOLE" />
+	</root>
+</log4j:configuration>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/resources/log4j.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/java/org/gvsig/exportto/impl/DefaultExporttoManagerTest.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/java/org/gvsig/exportto/impl/DefaultExporttoManagerTest.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/java/org/gvsig/exportto/impl/DefaultExporttoManagerTest.java	(revision 38300)
@@ -0,0 +1,37 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.impl;
+
+import org.gvsig.exportto.ExporttoManager;
+import org.gvsig.exportto.ExporttoManagerTest;
+
+/**
+ * {@link ExporttoManager} API compatibility tests for the
+ * {@link DefaultExporttoManager} implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultExporttoManagerTest extends ExporttoManagerTest {
+
+    // Nothing to add
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/src/test/java/org/gvsig/exportto/impl/DefaultExporttoManagerTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/pom.xml	(revision 38300)
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.lib.impl</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.exportto.lib.impl</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.lib</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.lib.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.lib.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+			<type>test-jar</type>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>  
+            <classifier>cresques-impl</classifier>
+            <scope>runtime</scope>      
+        </dependency>   
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry</artifactId>            
+            <classifier>impl</classifier>
+            <scope>runtime</scope>      
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry</artifactId>
+            <classifier>operation</classifier>      
+            <scope>runtime</scope>
+        </dependency>  
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>         
+            <classifier>impl</classifier>
+            <scope>runtime</scope>
+        </dependency> 
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file</artifactId>           
+            <scope>test</scope>
+        </dependency>  
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file</artifactId>
+            <classifier>store.dbf</classifier>
+            <scope>test</scope>
+        </dependency>  
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file</artifactId>
+            <classifier>store.dbf</classifier>
+            <scope>test</scope>
+        </dependency>  
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file</artifactId>
+            <classifier>store.shp</classifier>
+            <scope>test</scope>
+        </dependency>  
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.symbology.lib.impl</artifactId>           
+            <scope>test</scope>
+        </dependency>           
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>
+            <classifier>spi</classifier>
+            <scope>runtime</scope>      
+        </dependency> 
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.compat</artifactId>           
+            <classifier>se</classifier>     
+            <scope>runtime</scope>      
+        </dependency>   
+	</dependencies>
+	<build>
+		<plugins>
+			<!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION -->
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-surefire-plugin</artifactId>
+				<configuration>
+                    <excludes>
+                        <exclude>**/**</exclude>
+                    </excludes>
+				</configuration>
+			</plugin>		
+		</plugins>
+	</build>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.impl
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/resources/filters.txt
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/resources/filters.txt	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/resources/filters.txt	(revision 38300)
@@ -0,0 +1,3 @@
+point_geometries_only=
+curve_geometries_only=
+surface_geometries_only=

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/resources/filters.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 38300)
@@ -0,0 +1 @@
+org.gvsig.exportto.ExporttoLibrary
\ No newline at end of file
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/package.html	(revision 38300)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exportto package documentation</title>
+</head>
+<body>
+
+	<p>Exportto library API.</p>
+	
+	<p>
+	It allows to get new Exportto and get their text.
+	</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoManager.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoManager.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoManager.java	(revision 38300)
@@ -0,0 +1,57 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto;
+
+import java.util.Iterator;
+
+import org.gvsig.fmap.dal.DataServerExplorer;
+import org.gvsig.fmap.dal.NewDataStoreParameters;
+import org.gvsig.tools.service.ServiceException;
+
+/**
+ * This class is responsible of the management of the library's business logic.
+ * It is the library's main entry point, and provides all the services to manage
+ * {@link ExporttoService}s.
+ * 
+ * @see ExporttoService
+ * @author gvSIG team
+ * @version $Id$
+ */
+public interface ExporttoManager {
+
+    /**
+     * Create an instance of a {@link ExporttoService}.
+     * 
+     * @return {@link ExporttoService}
+     * @throws ServiceException
+     *             if there is an error getting the service
+     */
+    public ExporttoService getExporttoService(
+        DataServerExplorer dataServerExplorer,
+        NewDataStoreParameters newDataStoreParameters);
+
+    @SuppressWarnings("rawtypes")
+    public Iterator getPredefinedFilters();
+
+    public String getFilter(String filterName);
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoManager.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoException.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoException.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoException.java	(revision 38300)
@@ -0,0 +1,96 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto;
+
+import org.gvsig.tools.exception.BaseException;
+
+/**
+ * Generic exception thrown in the Exportto API when the exception or error
+ * may be dealt by the program or the user of the program which is a client of
+ * the Exportto API.
+ * 
+ * @see {@link ExporttoService}
+ * @see {@link ExporttoManager}
+ * @author gvSIG team.
+ * @version $Id$
+ */
+public class ExporttoException extends BaseException {
+
+    private static final long serialVersionUID = 6756475060924237176L;
+
+    private static final String MESSAGE =
+        "An error has been produced in the Exportto library";
+
+    private static final String KEY = "_ExporttoException";
+
+    /**
+     * Constructor to be used in rare cases, usually you must create a new child
+     * exception class for each case.
+     * <strong>Don't use this constructor in child classes.</strong>
+     */
+    public ExporttoException() {
+        super(MESSAGE, KEY, serialVersionUID);
+    }
+
+    /**
+     * Constructor to be used in rare cases, usually you must create a new child
+     * exception class for each case.
+     * <p>
+     * <strong>Don't use this constructor in child classes.</strong>
+     * </p>
+     * 
+     * @param cause
+     *            the original cause of the exception
+     */
+    public ExporttoException(Exception cause) {
+        super(MESSAGE, cause, KEY, serialVersionUID);
+    }
+
+    /**
+     * @see BaseException#BaseException(String, String, long).
+     * @param message
+     *            the default messageFormat to describe the exception
+     * @param key
+     *            the key to use to search a localized messageFormnata
+     * @param code
+     *            the unique code to identify the exception
+     */
+    protected ExporttoException(String message, String key, long code) {
+        super(message, key, code);
+    }
+
+    /**
+     * @see BaseException#BaseException(String, Throwable, String, long).
+     * @param message
+     *            the default messageFormat to describe the exception
+     * @param cause
+     *            the original cause of the exception
+     * @param key
+     *            the key to use to search a localized messageFormnata
+     * @param code
+     *            the unique code to identify the exception
+     */
+    protected ExporttoException(String message, Throwable cause, String key,
+        long code) {
+        super(message, cause, key, code);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoServiceException.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoServiceException.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoServiceException.java	(revision 38300)
@@ -0,0 +1,54 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto;
+
+import org.gvsig.tools.service.ServiceException;
+
+/**
+ * Exception thrown when there is an error getting a Exportto message.
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class ExporttoServiceException extends ServiceException {
+
+    private static final long serialVersionUID = -7423501876634702709L;
+
+    private static final String MESSAGE =
+        "An error has been produced exporting a store";
+
+    private static final String KEY = "_ExporttoServiceException";
+
+    /**
+     * Creates a new {@link ExporttoServiceException}.
+     * 
+     * @param cause
+     *            the original cause
+     */
+    public ExporttoServiceException(Throwable cause) {
+        super(MESSAGE, cause, KEY, serialVersionUID);
+    }
+
+    public ExporttoServiceException(String message, Throwable cause) {
+        super(message, cause, KEY, serialVersionUID);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoServiceException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoServiceFinishAction.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoServiceFinishAction.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoServiceFinishAction.java	(revision 38300)
@@ -0,0 +1,48 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto;
+
+import org.gvsig.fmap.dal.DataStoreParameters;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+
+/**
+ * Action that can be executed at the end of the export process.
+ * An example of action can be load the destination {@link FeatureStore} like a
+ * layer in a view.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public interface ExporttoServiceFinishAction {
+
+    /**
+     * This method is called at the end of an export process.
+     * 
+     * @param layerName
+     *            name of the new layer that can be added to gvSIG.
+     * @param dataStoreParameters
+     *            the parameters that can be used to create the exported store.
+     */
+    public void finished(String layerName,
+        DataStoreParameters dataStoreParameters);
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoServiceFinishAction.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoService.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoService.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoService.java	(revision 38300)
@@ -0,0 +1,71 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+
+package org.gvsig.exportto;
+
+import org.gvsig.fmap.dal.feature.FeatureSet;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.task.MonitorableTask;
+
+/**
+ * <p>
+ * This service is used to export a source {@link FeatureStore} to a target
+ * {@link FeatureStore}.
+ * </p>
+ * <p>
+ * It inherits if {@link MonitorableTask}, and it means that the export process
+ * can be monitorized by one or more observers that can listen all the export
+ * events.
+ * <p>
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public interface ExporttoService extends MonitorableTask {
+
+    /**
+     * This method export a {@link FeatureSet} to other {@link FeatureSet}.
+     * The other necessary parameters to make this conversion are specific
+     * for every {@link ExporttoService}. e.g: a shape exporter needs a
+     * file and a projection, a database exporter needs a connection
+     * parameters...
+     * 
+     * @param featureSet
+     *            the set of features hat have to be exported.
+     * @throws ExporttoServiceException
+     *             if there is any exception in the exporting process
+     */
+    public void export(FeatureSet featureSet) throws ExporttoServiceException;
+
+    /**
+     * Sets the {@link ExporttoServiceFinishAction} that is used at the end
+     * of the {@link ExporttoService}.
+     * 
+     * @param exporttoServiceFinishAction
+     *            it contains an action that can be executed at the end of the
+     *            export process
+     * 
+     */
+    public void setFinishAction(
+        ExporttoServiceFinishAction exporttoServiceFinishAction);
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoService.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoLocator.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoLocator.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoLocator.java	(revision 38300)
@@ -0,0 +1,95 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto;
+
+import org.gvsig.tools.locator.BaseLocator;
+import org.gvsig.tools.locator.Locator;
+import org.gvsig.tools.locator.LocatorException;
+
+/**
+ * This locator is the entry point for the Exportto library, providing
+ * access to all Exportto services through the {@link ExporttoManager} .
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class ExporttoLocator extends BaseLocator {
+
+    /**
+     * Exportto manager name.
+     */
+    public static final String MANAGER_NAME = "Exportto.manager";
+
+    /**
+     * Exportto manager description.
+     */
+    public static final String MANAGER_DESCRIPTION = "Exportto Manager";
+
+    private static final String LOCATOR_NAME = "Exportto.locator";
+
+    /**
+     * Unique instance.
+     */
+    private static final ExporttoLocator INSTANCE = new ExporttoLocator();
+
+    /**
+     * Return the singleton instance.
+     * 
+     * @return the singleton instance
+     */
+    public static ExporttoLocator getInstance() {
+        return INSTANCE;
+    }
+
+    /**
+     * Return the Locator's name.
+     * 
+     * @return a String with the Locator's name
+     */
+    public final String getLocatorName() {
+        return LOCATOR_NAME;
+    }
+
+    /**
+     * Return a reference to the ExporttoManager.
+     * 
+     * @return a reference to the ExporttoManager
+     * @throws LocatorException
+     *             if there is no access to the class or the class cannot be
+     *             instantiated
+     * @see Locator#get(String)
+     */
+    public static ExporttoManager getManager() throws LocatorException {
+        return (ExporttoManager) getInstance().get(MANAGER_NAME);
+    }
+
+    /**
+     * Registers the Class implementing the ExporttoManager interface.
+     * 
+     * @param clazz
+     *            implementing the ExporttoManager interface
+     */
+    public static void registerManager(Class<? extends ExporttoManager> clazz) {
+        getInstance().register(MANAGER_NAME, MANAGER_DESCRIPTION, clazz);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoLocator.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoLibrary.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoLibrary.java	(revision 38300)
@@ -0,0 +1,56 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto;
+
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+import org.gvsig.tools.locator.ReferenceNotRegisteredException;
+
+/**
+ * Library for API initialization and configuration.
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class ExporttoLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsAPI(ExporttoLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+        // Do nothing
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        // Validate there is any implementation registered.
+        ExporttoManager manager = ExporttoLocator.getManager();
+        if (manager == null) {
+            throw new ReferenceNotRegisteredException(
+                ExporttoLocator.MANAGER_NAME, ExporttoLocator.getInstance());
+        }
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/exportto/ExporttoLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/test/java/org/gvsig/exportto/ExporttoServiceTest.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/test/java/org/gvsig/exportto/ExporttoServiceTest.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/test/java/org/gvsig/exportto/ExporttoServiceTest.java	(revision 38300)
@@ -0,0 +1,104 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto;
+
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.DataServerExplorer;
+import org.gvsig.fmap.dal.DataServerExplorerParameters;
+import org.gvsig.fmap.dal.DataStoreParameters;
+import org.gvsig.fmap.dal.NewDataStoreParameters;
+import org.gvsig.fmap.dal.exception.DataException;
+import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase;
+
+/**
+ * API compatibility tests for {@link ExporttoService} implementations.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public abstract class ExporttoServiceTest extends
+    AbstractLibraryAutoInitTestCase {
+
+    protected ExporttoManager manager;
+    protected DataManager dataManager = null;
+
+    @Override
+    protected void doSetUp() throws Exception {
+        manager = ExporttoLocator.getManager();
+        dataManager = DALLocator.getDataManager();
+    }
+
+    /**
+     * Returns an instance of the {@link ExporttoService}.
+     * 
+     * @return a {@link ExporttoService} instance
+     * @throws ValidateDataParametersException
+     * @throws DataException
+     * @throws Exception
+     *             if there is any error creating the instance
+     */
+    protected ExporttoService createService()
+        throws ValidateDataParametersException, DataException {
+        DataServerExplorerParameters dataServerExplorerParameters =
+            dataManager.createServerExplorerParameters("FilesystemExplorer");
+        DataServerExplorer dataServerExplorer =
+            dataManager.openServerExplorer("FilesystemExplorer",
+                dataServerExplorerParameters);
+        NewDataStoreParameters newDataStoreParameters =
+            dataServerExplorer.getAddParameters("Shape");
+        return manager.getExporttoService(dataServerExplorer,
+            newDataStoreParameters);
+    }
+
+    /**
+     * Test for the
+     * {@link ExporttoService#export(org.gvsig.fmap.dal.feature.FeatureSet)}
+     * method.
+     */
+    public void testExporttoServiceCreation() {
+        ExporttoService exportService;
+        try {
+            exportService = createService();
+            assertNotNull(exportService);
+            // TODO a test for the export service
+            // exportService.export(featureSet);
+
+        } catch (ValidateDataParametersException e) {
+            assertNull(e);
+        } catch (DataException e) {
+            assertNull(e);
+        }
+    }
+
+    @SuppressWarnings("unused")
+    private FeatureStore createMemoryFeatureStore()
+        throws ValidateDataParametersException, DataException {
+        DataStoreParameters memoryParameters =
+            dataManager.createStoreParameters("Memory");
+        FeatureStore featureStore =
+            (FeatureStore) dataManager.openStore("Memory", memoryParameters);
+        return (FeatureStore) featureStore.getFeatureSet();
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/test/java/org/gvsig/exportto/ExporttoServiceTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/test/java/org/gvsig/exportto/ExporttoManagerTest.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/test/java/org/gvsig/exportto/ExporttoManagerTest.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/test/java/org/gvsig/exportto/ExporttoManagerTest.java	(revision 38300)
@@ -0,0 +1,82 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto;
+
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.DataServerExplorer;
+import org.gvsig.fmap.dal.DataServerExplorerParameters;
+import org.gvsig.fmap.dal.NewDataStoreParameters;
+import org.gvsig.fmap.dal.exception.DataException;
+import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
+import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase;
+
+/**
+ * API compatibility tests for {@link ExporttoManager} implementations.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public abstract class ExporttoManagerTest extends
+    AbstractLibraryAutoInitTestCase {
+
+    protected ExporttoManager manager;
+    protected DataManager dataManager = null;
+
+    @Override
+    protected void doSetUp() throws Exception {
+        manager = ExporttoLocator.getManager();
+        dataManager = DALLocator.getDataManager();
+    }
+
+    /**
+     * Test for the {@link ExporttoManager#getExporttoService()} method.
+     * 
+     * @throws Exception
+     *             if there is any error in the tests
+     */
+    public void testGetExporttoService() throws Exception {
+        ExporttoService exportService;
+        try {
+            exportService = createService();
+            assertNotNull(exportService);
+        } catch (ValidateDataParametersException e) {
+            assertNull(e);
+        } catch (DataException e) {
+            assertNull(e);
+        }
+    }
+
+    protected ExporttoService createService()
+        throws ValidateDataParametersException, DataException {
+        DataServerExplorerParameters dataServerExplorerParameters =
+            dataManager.createServerExplorerParameters("FilesystemExplorer");
+        DataServerExplorer dataServerExplorer =
+            dataManager.openServerExplorer("FilesystemExplorer",
+                dataServerExplorerParameters);
+        NewDataStoreParameters newDataStoreParameters =
+            dataServerExplorer.getAddParameters("Shape");
+        return manager.getExporttoService(dataServerExplorer,
+            newDataStoreParameters);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/test/java/org/gvsig/exportto/ExporttoManagerTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/pom.xml	(revision 38300)
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.lib.api</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.exportto.lib.api</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.lib</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+    <dependencies>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+    </dependencies>  
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-jar-plugin</artifactId>
+				<configuration>
+				</configuration>
+				<executions>
+				<!--
+				Generates a jar file only with the test classes
+				-->
+					<execution>
+						<goals>
+							<goal>test-jar</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+</project>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/pom.xml	(revision 38300)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.lib</artifactId>
+	<packaging>pom</packaging>
+	<name>org.gvsig.exportto.lib</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+
+	<modules>
+		<module>org.gvsig.exportto.lib.api</module>
+		<module>org.gvsig.exportto.lib.impl</module>
+	</modules>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.lib
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanelTest.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanelTest.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanelTest.java	(revision 38300)
@@ -0,0 +1,37 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl;
+
+import org.gvsig.exportto.swing.JExporttoServicePanel;
+import org.gvsig.exportto.swing.JExporttoServicePanelTest;
+
+/**
+ * {@link JExporttoServicePanel} API compatibility tests for the
+ * {@link DefaultJExporttoServicePanel} implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultJExporttoServicePanelTest extends JExporttoServicePanelTest {
+
+    // Nothing to add
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanelTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingManagerTest.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingManagerTest.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingManagerTest.java	(revision 38300)
@@ -0,0 +1,37 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl;
+
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.ExporttoSwingManagerTest;
+
+/**
+ * {@link ExporttoSwingManager} API compatibility tests for the
+ * {@link DefaultExporttoSwingManager} implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultExporttoSwingManagerTest extends ExporttoSwingManagerTest {
+
+    // Nothing to add
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingManagerTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultExporttoWindowManagerTest.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultExporttoWindowManagerTest.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultExporttoWindowManagerTest.java	(revision 38300)
@@ -0,0 +1,37 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl;
+
+import org.gvsig.exportto.swing.ExporttoWindowManager;
+import org.gvsig.exportto.swing.ExporttoWindowManagerTest;
+
+/**
+ * {@link ExporttoWindowManager} API compatibility tests for the
+ * {@link DefaultExporttoWindowManager} implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultExporttoWindowManagerTest extends ExporttoWindowManagerTest {
+
+    // Nothing to add
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultExporttoWindowManagerTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/resources/README.txt
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/resources/README.txt	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/resources/README.txt	(revision 38300)
@@ -0,0 +1,8 @@
+Put into this folder the resources needed by your test classes.
+
+This folder is added to the Tests classpath, so you can load any resources 
+through the ClassLoader.
+
+By default, in this folder you can find an example of log4j configuration,
+prepared to log messages through the console, so logging works when you
+run your tests classes.
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/resources/README.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/resources/log4j.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/resources/log4j.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/resources/log4j.xml	(revision 38300)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- 
+Log4J configuration file for unit tests execution.
+ -->
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+	<!-- Appender configuration to show logging messages through the console -->
+	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+		<layout class="org.apache.log4j.PatternLayout">
+			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
+		</layout>
+	</appender>
+
+	<!-- 
+	Activate logging messages of DEBUG level of higher only for the
+	org.gvsig.tools packages.
+	You can put full classes names or packages instead, to configure
+	logging for all the classes and subpackages of the package.
+	-->
+	<category name="org.gvsig.tools">
+		<priority value="DEBUG" />
+	</category>
+	<category name="org.gvsig.exportto">
+		<priority value="DEBUG" />
+	</category>
+
+	<!-- 
+	By default, show only logging messages of INFO level or higher, 
+	through the previously configured CONSOLE appender. 
+	-->
+	<root>
+		<priority value="INFO" />
+		<appender-ref ref="CONSOLE" />
+	</root>
+</log4j:configuration>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/resources/log4j.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExporterSelectionListModel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExporterSelectionListModel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExporterSelectionListModel.java	(revision 38300)
@@ -0,0 +1,74 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl.panel;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.swing.ListModel;
+import javax.swing.event.ListDataListener;
+
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderFactory;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderManager;
+
+/**
+ * {@link ListModel} with the list of exportto provider factories.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporterSelectionListModel implements ListModel {
+
+    private List<ExporttoSwingProviderFactory> exporters = null;
+
+    public ExporterSelectionListModel(int[] providerTypes) {
+        super();
+        ExporttoSwingProviderManager exporttoProviderManager =
+            ExporttoSwingProviderLocator.getManager();
+        List<ExporttoSwingProviderFactory> allExporters =
+            exporttoProviderManager.getProviderFactories(providerTypes);
+        exporters = new ArrayList<ExporttoSwingProviderFactory>();
+        for (int i = 0; i < allExporters.size(); i++) {
+            ExporttoSwingProviderFactory factory = allExporters.get(i);
+            if (factory.isEnabled()) {
+                exporters.add(factory);
+            }
+        }
+    }
+
+    public int getSize() {
+        return exporters.size();
+    }
+
+    public Object getElementAt(int index) {
+        return exporters.get(index);
+    }
+
+    public void addListDataListener(ListDataListener l) {
+        // Nothing to do
+    }
+
+    public void removeListDataListener(ListDataListener l) {
+        // Nothing to do
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExporterSelectionListModel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ProviderSelectionPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ProviderSelectionPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ProviderSelectionPanel.java	(revision 38300)
@@ -0,0 +1,101 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl.panel;
+
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+
+import javax.swing.JList;
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
+
+import org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderFactory;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ProviderSelectionPanel extends AbstractExporttoPanel {
+
+    private static final long serialVersionUID = -5887438468358948411L;
+
+    protected JList exporttoProviderList = null;
+    private JScrollPane scrollPane = null;
+    private JScrollPane descriptionScrollPane;
+    protected JTextArea descriptionText;
+    private int[] providerTypes;
+
+    public ProviderSelectionPanel(
+        DefaultJExporttoServicePanel exporttoServicePanel, int[] providerTypes) {
+        super(exporttoServicePanel);
+        this.providerTypes = providerTypes;
+        initializeComponents();
+    }
+
+    private void initializeComponents() {
+        GridBagConstraints gridBagConstraints;
+        this.setLayout(new GridBagLayout());
+
+        // Create the list
+        exporttoProviderList = new JList();
+        exporttoProviderList.setModel(new ExporterSelectionListModel(
+            providerTypes));
+
+        scrollPane = new JScrollPane();
+        scrollPane.setViewportView(exporttoProviderList);
+
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 1.0;
+        gridBagConstraints.insets = new java.awt.Insets(2, 2, 5, 2);
+        add(scrollPane, gridBagConstraints);
+
+        // Create the description area
+        descriptionScrollPane = new javax.swing.JScrollPane();
+        descriptionText = new javax.swing.JTextArea();
+
+        descriptionText.setColumns(20);
+        descriptionText.setEditable(false);
+        descriptionText.setRows(5);
+        descriptionText.setLineWrap(true);
+        descriptionText.setBorder(null);
+        descriptionScrollPane.setBorder(null);
+        descriptionScrollPane.setViewportView(descriptionText);
+
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 1;
+        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
+        gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTH;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.insets = new java.awt.Insets(5, 2, 2, 2);
+        add(descriptionScrollPane, gridBagConstraints);
+    }
+
+    protected ExporttoSwingProviderFactory getSelectedProvider() {
+        return (ExporttoSwingProviderFactory) exporttoProviderList
+            .getSelectedValue();
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ProviderSelectionPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExportFilterPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExportFilterPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExportFilterPanel.java	(revision 38300)
@@ -0,0 +1,239 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl.panel;
+
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import java.awt.event.ItemEvent;
+import java.awt.event.ItemListener;
+
+import javax.swing.ButtonGroup;
+import javax.swing.JList;
+import javax.swing.JPanel;
+import javax.swing.JRadioButton;
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
+import javax.swing.border.TitledBorder;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ListSelectionEvent;
+import javax.swing.event.ListSelectionListener;
+
+import org.gvsig.exportto.ExporttoLocator;
+import org.gvsig.exportto.ExporttoManager;
+import org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel;
+import org.gvsig.exportto.swing.impl.panel.ExportFiltersListModel.Filter;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExportFilterPanel extends AbstractExporttoPanel implements
+    ListSelectionListener, ItemListener {
+
+    private static final long serialVersionUID = -7108159123965667106L;
+
+    private static final ExporttoManager EXPORTTO_MANAGER = ExporttoLocator
+        .getManager();
+
+    private ButtonGroup selectionButtonGroup;
+    private JRadioButton allLayerRadioButton;
+    private JRadioButton selectedFeaturesRabioButton;
+    private JRadioButton personalizedFilterRabioButton;
+
+    private JPanel filterPanel;
+
+    private JPanel predefinedFilterPanel;
+    private JScrollPane predefinedFilterScrollPane;
+    private JList predefinedFilterList;
+
+    private JPanel freeFilterPanel;
+    private JScrollPane freeFilterScrollPane;
+    private JTextArea freeFilterTextArea;
+
+    public ExportFilterPanel(DefaultJExporttoServicePanel exporttoServicePanel) {
+        super(exporttoServicePanel);
+        initializeComponents();
+        itemStateChanged(null);
+    }
+
+    private void initializeComponents() {
+        GridBagConstraints gridBagConstraints;
+        setLayout(new GridBagLayout());
+
+        // Adding the radio buttons to the button group
+        allLayerRadioButton = new JRadioButton();
+        allLayerRadioButton.setSelected(true);
+        selectedFeaturesRabioButton = new JRadioButton();
+        personalizedFilterRabioButton = new JRadioButton();
+
+        allLayerRadioButton.addItemListener(this);
+        selectedFeaturesRabioButton.addItemListener(this);
+        personalizedFilterRabioButton.addItemListener(this);
+
+        selectionButtonGroup = new ButtonGroup();
+        selectionButtonGroup.add(allLayerRadioButton);
+        selectionButtonGroup.add(selectedFeaturesRabioButton);
+        selectionButtonGroup.add(personalizedFilterRabioButton);
+
+        allLayerRadioButton.setText(exporttoServicePanel
+            .getExporttoSwingManager().getTranslation("all_layer"));
+        gridBagConstraints = new GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 0;
+        gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
+        gridBagConstraints.anchor = GridBagConstraints.WEST;
+        gridBagConstraints.weightx = 1.0;
+        add(allLayerRadioButton, gridBagConstraints);
+
+        selectedFeaturesRabioButton.setText(exporttoServicePanel
+            .getExporttoSwingManager().getTranslation("selected_features"));
+        gridBagConstraints = new GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 1;
+        gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
+        gridBagConstraints.anchor = GridBagConstraints.WEST;
+        gridBagConstraints.weightx = 1.0;
+        add(selectedFeaturesRabioButton, gridBagConstraints);
+
+        personalizedFilterRabioButton.setText(exporttoServicePanel
+            .getExporttoSwingManager().getTranslation("filter"));
+        gridBagConstraints = new GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 2;
+        gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
+        gridBagConstraints.anchor = GridBagConstraints.WEST;
+        gridBagConstraints.weightx = 1.0;
+        add(personalizedFilterRabioButton, gridBagConstraints);
+
+        // Create the filter panel
+        filterPanel = new JPanel();
+        filterPanel.setLayout(new GridBagLayout());
+
+        // Create the predefined filter panel
+        predefinedFilterPanel = new JPanel();
+        predefinedFilterScrollPane = new JScrollPane();
+        predefinedFilterPanel.setBorder(new TitledBorder(exporttoServicePanel
+            .getExporttoSwingManager().getTranslation("predefined_filters")));
+        predefinedFilterList = new JList();
+        predefinedFilterList.setModel(new ExportFiltersListModel(
+            exporttoServicePanel));
+        predefinedFilterList.addListSelectionListener(this);
+
+        predefinedFilterPanel.setLayout(new GridBagLayout());
+        predefinedFilterScrollPane.setViewportView(predefinedFilterList);
+
+        gridBagConstraints = new GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 0;
+        gridBagConstraints.fill = GridBagConstraints.BOTH;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 1.0;
+        predefinedFilterPanel.add(predefinedFilterScrollPane,
+            gridBagConstraints);
+
+        gridBagConstraints = new GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 0;
+        gridBagConstraints.fill = GridBagConstraints.BOTH;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 1.0;
+        filterPanel.add(predefinedFilterPanel, gridBagConstraints);
+
+        // Create the free filter panel
+        freeFilterPanel = new JPanel();
+        freeFilterScrollPane = new JScrollPane();
+        freeFilterPanel.setBorder(new TitledBorder(exporttoServicePanel
+            .getExporttoSwingManager().getTranslation("free_filter")));
+        freeFilterTextArea = new JTextArea();
+
+        freeFilterPanel.setLayout(new GridBagLayout());
+        freeFilterScrollPane.setViewportView(freeFilterTextArea);
+
+        gridBagConstraints = new GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 0;
+        gridBagConstraints.fill = GridBagConstraints.BOTH;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 1.0;
+        freeFilterPanel.add(freeFilterScrollPane, gridBagConstraints);
+
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 1;
+        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 1.0;
+        filterPanel.add(freeFilterPanel, gridBagConstraints);
+
+        // Add the filter panel
+        gridBagConstraints = new GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 3;
+        gridBagConstraints.fill = GridBagConstraints.BOTH;
+        gridBagConstraints.insets = new Insets(0, 20, 0, 0);
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 1.0;
+        add(filterPanel, gridBagConstraints);
+
+    }
+
+    public boolean isFullLayerSelected() {
+        return allLayerRadioButton.isSelected();
+    }
+
+    public boolean isSelectedFeaturesSelected() {
+        return selectedFeaturesRabioButton.isSelected();
+    }
+
+    public boolean isPersonalizedFilterSelected() {
+        return personalizedFilterRabioButton.isSelected();
+    }
+
+    public String getFreeFilter() {
+        if ((freeFilterTextArea.getText() != null)
+            && (!freeFilterTextArea.getText().equals(""))) {
+            return freeFilterTextArea.getText();
+        }
+        return null;
+    }
+
+    public void valueChanged(ListSelectionEvent e) {
+        Object obj = predefinedFilterList.getSelectedValue();
+        if (obj != null) {
+            Filter filter = (Filter) obj;
+            this.freeFilterTextArea.setText(EXPORTTO_MANAGER.getFilter(filter
+                .getFilterKey()));
+        }
+    }
+
+    public void stateChanged(ChangeEvent e) {
+        // TODO Auto-generated method stub
+
+    }
+
+    public void itemStateChanged(ItemEvent e) {
+        predefinedFilterList.setEnabled(isPersonalizedFilterSelected());
+        freeFilterTextArea.setEnabled(isPersonalizedFilterSelected());
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExportFilterPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExportFiltersListModel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExportFiltersListModel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExportFiltersListModel.java	(revision 38300)
@@ -0,0 +1,104 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl.panel;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.swing.ListModel;
+import javax.swing.event.ListDataListener;
+
+import org.gvsig.exportto.ExporttoLocator;
+import org.gvsig.exportto.ExporttoManager;
+import org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExportFiltersListModel implements ListModel {
+
+    private static final ExporttoManager EXPORTTO_MANAGER = ExporttoLocator
+        .getManager();
+    @SuppressWarnings("rawtypes")
+    private List filters = null;
+    protected DefaultJExporttoServicePanel exporttoServicePanel = null;
+
+    @SuppressWarnings({ "rawtypes", "unchecked" })
+    public ExportFiltersListModel(
+        DefaultJExporttoServicePanel exporttoServicePanel) {
+        super();
+        this.exporttoServicePanel = exporttoServicePanel;
+        filters = new ArrayList();
+        Iterator it = EXPORTTO_MANAGER.getPredefinedFilters();
+        while (it.hasNext()) {
+            filters.add(new Filter((String) it.next()));
+        }
+    }
+
+    public int getSize() {
+        return filters.size();
+    }
+
+    public Object getElementAt(int index) {
+        return filters.get(index);
+    }
+
+    public void addListDataListener(ListDataListener l) {
+        // TODO Auto-generated method stub
+
+    }
+
+    public void removeListDataListener(ListDataListener l) {
+        // TODO Auto-generated method stub
+
+    }
+
+    class Filter {
+
+        private String filterKey;
+        private String filterTanslation;
+
+        public Filter(String filterKey) {
+            super();
+            this.filterKey = filterKey;
+            this.filterTanslation =
+                exporttoServicePanel.getExporttoSwingManager().getTranslation(
+                    filterKey);
+        }
+
+        /**
+         * @return the filterKey
+         */
+        public String getFilterKey() {
+            return filterKey;
+        }
+
+        public String toString() {
+            return filterTanslation;
+        }
+
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExportFiltersListModel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/AbstractExporttoPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/AbstractExporttoPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/AbstractExporttoPanel.java	(revision 38300)
@@ -0,0 +1,43 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl.panel;
+
+import javax.swing.JPanel;
+
+import org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public abstract class AbstractExporttoPanel extends JPanel {
+
+    private static final long serialVersionUID = 2272211580987136370L;
+    protected DefaultJExporttoServicePanel exporttoServicePanel = null;
+
+    public AbstractExporttoPanel(
+        DefaultJExporttoServicePanel exporttoServicePanel) {
+        super();
+        this.exporttoServicePanel = exporttoServicePanel;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/AbstractExporttoPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingProviderServices.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingProviderServices.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingProviderServices.java	(revision 38300)
@@ -0,0 +1,40 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl;
+
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderServices;
+import org.gvsig.tools.service.spi.AbstractProviderServices;
+
+/**
+ * Default {@link ExportoProviderServices} implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultExporttoSwingProviderServices extends
+    AbstractProviderServices implements ExporttoSwingProviderServices {
+
+    public DefaultExporttoSwingProviderServices() {
+        // Nothing to do
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingProviderServices.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServiceInfoPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServiceInfoPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServiceInfoPanel.java	(revision 38300)
@@ -0,0 +1,93 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.BorderFactory;
+import javax.swing.Box;
+import javax.swing.BoxLayout;
+import javax.swing.JButton;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
+
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+
+/**
+ * Panel to show info (text and cookie date) about a Exportto.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultJExporttoServiceInfoPanel extends JPanel {
+
+    private static final long serialVersionUID = 2965442763236823977L;
+
+    protected JButton accept = null;
+
+    public DefaultJExporttoServiceInfoPanel(ExporttoSwingManager uimanager,
+        ExporttoService cookie) {
+
+        this.setLayout(new BorderLayout());
+        this.setPreferredSize(new Dimension(550, 150));
+
+        JTextArea text = new JTextArea();
+        // try {
+        // text.setText("Message: " + cookie.getMessage() + "\nDate: "
+        // + cookie.getDate());
+        // } catch (ExporttoServiceException e) {
+        // text.setText(uimanager
+        // .getTranslation("Error obtaining message....."));
+        // LOG.error("Error getting the Exportto message", e);
+        // }
+        text.setEditable(false);
+
+        JScrollPane scrollPane = new JScrollPane(text);
+        scrollPane.setPreferredSize(new Dimension(550, 150));
+
+        // TODO: replace with the UsabilitySwingManager.createJButton()
+        accept = new JButton(uimanager.getTranslation("Accept"));
+
+        JPanel optionsPane = new JPanel();
+        optionsPane.setLayout(new BoxLayout(optionsPane, BoxLayout.LINE_AXIS));
+        optionsPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
+        optionsPane.add(Box.createHorizontalGlue());
+
+        accept.addActionListener(new ActionListener() {
+
+            public void actionPerformed(ActionEvent arg0) {
+                setVisible(false);
+            }
+        });
+        optionsPane.add(accept);
+        optionsPane.add(Box.createRigidArea(new Dimension(10, 0)));
+
+        this.add(scrollPane, BorderLayout.CENTER);
+        this.add(optionsPane, BorderLayout.SOUTH);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServiceInfoPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExporterSelectionWizard.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExporterSelectionWizard.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExporterSelectionWizard.java	(revision 38300)
@@ -0,0 +1,107 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl.wizard;
+
+import javax.swing.JPanel;
+import javax.swing.event.ListSelectionEvent;
+import javax.swing.event.ListSelectionListener;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.exportto.swing.ExporttoSwingLocator;
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel;
+import org.gvsig.exportto.swing.impl.panel.ProviderSelectionPanel;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderFactory;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderManager;
+import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException;
+import org.gvsig.gui.beans.wizard.panel.OptionPanel;
+import org.gvsig.tools.service.ServiceException;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporterSelectionWizard extends ProviderSelectionPanel implements
+    OptionPanel, ListSelectionListener {
+
+    private static final long serialVersionUID = -2818813233378801919L;
+    private static final ExporttoSwingManager EXPORTTO_SWING_MANAGER =
+        ExporttoSwingLocator.getSwingManager();
+    private static final ExporttoSwingProviderManager EXPORTTO_SWING_PROVIDER_MANAGER =
+        ExporttoSwingProviderLocator.getManager();
+    private static final Logger LOG = LoggerFactory
+        .getLogger(ExporterSelectionWizard.class);
+
+    public ExporterSelectionWizard(
+        DefaultJExporttoServicePanel exporttoServicePanel, int[] providerTypes) {
+        super(exporttoServicePanel, providerTypes);
+        this.exporttoProviderList.addListSelectionListener(this);
+    }
+
+    public String getPanelTitle() {
+        return exporttoServicePanel.getExporttoSwingManager().getTranslation(
+            "select_format_to_export");
+    }
+
+    public void nextPanel() throws NotContinueWizardException {
+        ExporttoSwingProviderFactory providerFactory = this.getSelectedProvider();
+
+        if (providerFactory != null) {
+            try {
+                exporttoServicePanel.selectExporttoSwingProvider(providerFactory);
+            } catch (ServiceException e) {
+                LOG.error("Not possible to create a exporto swing provider", e);
+                throw new NotContinueWizardException(
+                    EXPORTTO_SWING_MANAGER
+                        .getTranslation("execute_adding_error"),
+                    e, this);
+            }
+        }
+    }
+
+    public void lastPanel() {
+        // Nothing to do
+    }
+
+    public void updatePanel() {
+        // Nothing to do
+    }
+
+    public JPanel getJPanel() {
+        return this;
+    }
+
+    public void valueChanged(ListSelectionEvent e) {
+        ExporttoSwingProviderFactory providerFactory = this.getSelectedProvider();
+
+        if (providerFactory != null) {
+            descriptionText.setText(EXPORTTO_SWING_PROVIDER_MANAGER
+                .getDescription(providerFactory.getName()));
+
+            exporttoServicePanel.setNextButtonEnabled(true);
+        }
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExporterSelectionWizard.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/DefaultWizardContainer.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/DefaultWizardContainer.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/DefaultWizardContainer.java	(revision 38300)
@@ -0,0 +1,83 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl.wizard;
+
+import javax.swing.JPanel;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderPanel;
+import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException;
+import org.gvsig.gui.beans.wizard.panel.OptionPanel;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class DefaultWizardContainer implements OptionPanel {
+
+    private static final Logger LOG = LoggerFactory
+        .getLogger(DefaultWizardContainer.class);
+
+    private ExporttoSwingProviderPanel exporttoSwingProviderPanel = null;
+
+    public DefaultWizardContainer(
+        ExporttoSwingProviderPanel exporttoSwingProviderPanel) {
+        super();
+        this.exporttoSwingProviderPanel = exporttoSwingProviderPanel;
+    }
+
+    public String getPanelTitle() {
+        return exporttoSwingProviderPanel.getPanelTitle();
+    }
+
+    public void nextPanel() throws NotContinueWizardException {
+        try {
+            if (!this.exporttoSwingProviderPanel.isValidPanel()) {
+                throw new NotContinueWizardException(
+                    "Error validating the form", exporttoSwingProviderPanel,
+                    false);
+            }
+        } catch (ExporttoPanelValidationException e) {
+            LOG.error("Error validating the form", e);
+            throw new NotContinueWizardException("Error validating the form",
+                e, exporttoSwingProviderPanel);
+        }
+    }
+
+    public void lastPanel() {
+        // TODO Auto-generated method stub
+
+    }
+
+    public void updatePanel() {
+
+    }
+
+    public JPanel getJPanel() {
+        return exporttoSwingProviderPanel;
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/DefaultWizardContainer.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExportFilterWizard.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExportFilterWizard.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExportFilterWizard.java	(revision 38300)
@@ -0,0 +1,68 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl.wizard;
+
+import javax.swing.JPanel;
+
+import org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel;
+import org.gvsig.exportto.swing.impl.panel.ExportFilterPanel;
+import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException;
+import org.gvsig.gui.beans.wizard.panel.OptionPanel;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExportFilterWizard extends ExportFilterPanel implements
+    OptionPanel {
+
+    private static final long serialVersionUID = 8801849211055890046L;
+
+    public ExportFilterWizard(DefaultJExporttoServicePanel exporttoServicePanel) {
+        super(exporttoServicePanel);
+    }
+
+    public String getPanelTitle() {
+        return exporttoServicePanel.getExporttoSwingManager().getTranslation(
+            "exportto_options");
+    }
+
+    public void nextPanel() throws NotContinueWizardException {
+
+    }
+
+    public void lastPanel() {
+        exporttoServicePanel.setExportButtonEnabled(false);
+        exporttoServicePanel.setNextButtonEnabled(true);
+    }
+
+    public void updatePanel() {
+        exporttoServicePanel.setExportButtonEnabled(true);
+        exporttoServicePanel.setNextButtonEnabled(false);
+    }
+
+    public JPanel getJPanel() {
+        return this;
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExportFilterWizard.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExporttoProgressWizard.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExporttoProgressWizard.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExporttoProgressWizard.java	(revision 38300)
@@ -0,0 +1,87 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl.wizard;
+
+import java.awt.BorderLayout;
+
+import javax.swing.JPanel;
+
+import org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel;
+import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException;
+import org.gvsig.gui.beans.wizard.panel.OptionPanel;
+import org.gvsig.tools.swing.api.ToolsSwingLocator;
+import org.gvsig.tools.swing.api.task.JTaskStatus;
+import org.gvsig.tools.swing.api.task.TaskStatusSwingManager;
+import org.gvsig.tools.task.TaskStatus;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoProgressWizard extends JPanel implements OptionPanel {
+
+    private static final long serialVersionUID = 8235569247892299856L;
+    private static final TaskStatusSwingManager TASK_STATUS_SWING_MANAGER =
+        ToolsSwingLocator.getTaskStatusSwingManager();
+
+    private DefaultJExporttoServicePanel exporttoServicePanel = null;
+    private JTaskStatus jTaskStatus = null;
+
+    public ExporttoProgressWizard(
+        DefaultJExporttoServicePanel exporttoServicePanel) {
+        super();
+        this.exporttoServicePanel = exporttoServicePanel;
+        jTaskStatus = TASK_STATUS_SWING_MANAGER.createJTaskStatus();
+        this.setLayout(new BorderLayout());
+        this.add(jTaskStatus, BorderLayout.NORTH);
+    }
+
+    public String getPanelTitle() {
+        return exporttoServicePanel.getExporttoSwingManager().getTranslation(
+            "export_progress");
+    }
+
+    public void nextPanel() throws NotContinueWizardException {
+        // TODO Auto-generated method stub
+
+    }
+
+    public void lastPanel() {
+        exporttoServicePanel.setCancelButtonText(exporttoServicePanel
+            .getExporttoSwingManager().getTranslation("cancel"));
+    }
+
+    public void updatePanel() {
+        exporttoServicePanel.setExportButtonEnabled(false);
+        exporttoServicePanel.setCancelButtonText(exporttoServicePanel
+            .getExporttoSwingManager().getTranslation("close"));
+    }
+
+    public JPanel getJPanel() {
+        return this;
+    }
+
+    public void bind(TaskStatus taskStatus) {
+        this.jTaskStatus.bind(taskStatus);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExporttoProgressWizard.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/preferences/DefaultExporttoPreferencesComponent.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/preferences/DefaultExporttoPreferencesComponent.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/preferences/DefaultExporttoPreferencesComponent.java	(revision 38300)
@@ -0,0 +1,148 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl.preferences;
+
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import javax.swing.JCheckBox;
+import javax.swing.JComponent;
+import javax.swing.JPanel;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+
+import org.gvsig.exportto.swing.preferences.ExporttoSwingPreferencesComponent;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderFactory;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+
+/**
+ * Default implementation for the {@link ExporttoSwingPreferencesComponent}.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultExporttoPreferencesComponent extends JPanel implements
+    ExporttoSwingPreferencesComponent, ChangeListener {
+
+    private static final long serialVersionUID = -4392838062470171181L;
+
+    private JCheckBox[] providerChecks;
+    private List<ExporttoSwingProviderFactory> providers;
+    private boolean valueChanged = false;
+
+    /**
+     * Creates a new DefaultExporttoPreferencesComponent.
+     * 
+     * @see JPanel#JPanel()
+     */
+    public DefaultExporttoPreferencesComponent() {
+        this(true);
+    }
+
+    /**
+     * Creates a new DefaultExporttoPreferencesComponent.
+     * 
+     * @param isDoubleBuffered
+     *            a boolean, true for double-buffering, which
+     *            uses additional memory space to achieve fast, flicker-free
+     *            updates
+     * @see JPanel#JPanel(boolean)
+     */
+    public DefaultExporttoPreferencesComponent(boolean isDoubleBuffered) {
+        super(isDoubleBuffered);
+        initialize();
+    }
+
+    private void initialize() {
+        this.setLayout(new GridBagLayout());
+
+        Insets insets = new Insets(1, 0, 1, 0);
+
+        GridBagConstraints gbc = new GridBagConstraints();
+        gbc.gridx = 0;
+        gbc.gridy = 1;
+        gbc.gridheight = 1;
+        gbc.gridwidth = GridBagConstraints.REMAINDER;
+        gbc.fill = GridBagConstraints.NONE;
+        gbc.anchor = GridBagConstraints.WEST;
+        gbc.weightx = 1.0f;
+        gbc.insets = insets;
+
+        providers =
+            new ArrayList<ExporttoSwingProviderFactory>(
+                ExporttoSwingProviderLocator.getManager()
+                    .getProviderFactories());
+        providerChecks = new JCheckBox[providers.size()];
+        for (int i = 0; i < providers.size(); i++) {
+            ExporttoSwingProviderFactory factory = providers.get(i);
+            providerChecks[i] =
+                new JCheckBox(factory.getLabel(), factory.isEnabled());
+            providerChecks[i].addChangeListener(this);
+            providerChecks[i].setToolTipText(factory.getDescription());
+            add(providerChecks[i], gbc);
+            gbc.gridy++;
+        }
+    }
+
+    public JComponent asJComponent() {
+        return this;
+    }
+
+    public void initializeDefaults() {
+        for (int i = 0; i < providers.size(); i++) {
+            ExporttoSwingProviderFactory factory = providers.get(i);
+            providerChecks[i].setSelected(factory.isEnabled());
+        }
+        valueChanged = false;
+        validate();
+    }
+
+    public Set<?> getDisabledProviders() {
+        Set<ExporttoSwingProviderFactory> disabledFactories =
+            new HashSet<ExporttoSwingProviderFactory>();
+
+        for (int i = 0; i < providerChecks.length; i++) {
+            if (!providerChecks[i].isSelected()) {
+                disabledFactories.add(providers.get(i));
+            }
+        }
+
+        return disabledFactories;
+    }
+
+    public boolean isValueChanged() {
+        return valueChanged;
+    }
+
+    public void setChangesApplied() {
+        valueChanged = false;
+    }
+
+    public void stateChanged(ChangeEvent e) {
+        valueChanged = true;
+    }
+}
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanel.java	(revision 38300)
@@ -0,0 +1,277 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl;
+
+import java.awt.BorderLayout;
+import java.net.URL;
+
+import javax.swing.ImageIcon;
+import javax.swing.JOptionPane;
+
+import jwizardcomponent.DefaultJWizardComponents;
+
+import org.cresques.cts.IProjection;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.ExporttoServiceException;
+import org.gvsig.exportto.ExporttoServiceFinishAction;
+import org.gvsig.exportto.swing.JExporttoServicePanel;
+import org.gvsig.exportto.swing.JExporttoServicePanelListener;
+import org.gvsig.exportto.swing.impl.wizard.DefaultWizardContainer;
+import org.gvsig.exportto.swing.impl.wizard.ExportFilterWizard;
+import org.gvsig.exportto.swing.impl.wizard.ExporterSelectionWizard;
+import org.gvsig.exportto.swing.impl.wizard.ExporttoProgressWizard;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProvider;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderFactory;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderManager;
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.exception.DataException;
+import org.gvsig.fmap.dal.feature.FeatureQuery;
+import org.gvsig.fmap.dal.feature.FeatureSet;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.gui.beans.wizard.WizardPanel;
+import org.gvsig.gui.beans.wizard.WizardPanelActionListener;
+import org.gvsig.gui.beans.wizard.WizardPanelWithLogo;
+import org.gvsig.tools.evaluator.Evaluator;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.task.TaskStatus;
+
+/**
+ * Default implementation for the {@link JExporttoServicePanel}.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultJExporttoServicePanel extends JExporttoServicePanel
+    implements WizardPanel {
+
+    private static final Logger LOG = LoggerFactory
+        .getLogger(DefaultJExporttoServicePanel.class);
+
+    private static final ExporttoSwingProviderManager EXPORTTO_SWING_PROVIDER_MANAGER =
+        ExporttoSwingProviderLocator.getManager();
+    private static final DataManager DATA_MANAGER = DALLocator.getDataManager();
+
+    private static final long serialVersionUID = -7026467582252285238L;
+
+    private FeatureStore featureStore;
+    private IProjection projection;
+    private DefaultExporttoSwingManager uimanager;
+
+    // Used to get the new feature store parameters
+    private ExporttoSwingProvider exporttoSwingProvider;
+
+    // Provider types that will be displayed
+    private int[] providerTypes;
+
+    // Wizards used to create the main wizard
+    private ExporterSelectionWizard exporterSelectionWizard = null;
+    private ExportFilterWizard exportFilterWizard = null;
+    private ExporttoProgressWizard exporttoProgressWizard = null;
+
+    // Listener for the finish and cancell button
+    private WizardPanelActionListener exporttoServicePanelListener;
+
+    private WizardPanelWithLogo wizardPanelWithLogo = null;
+
+    // Action to execute at the end of the export process
+    ExporttoServiceFinishAction exporttoServiceFinishAction;
+
+    private int status;
+
+    public DefaultJExporttoServicePanel(DefaultExporttoSwingManager uimanager,
+        FeatureStore featureStore, IProjection projection,
+        ExporttoServiceFinishAction exporttoServiceFinishAction,
+        int[] providerTypes) {
+        this.featureStore = featureStore;
+        this.projection = projection;
+        this.uimanager = uimanager;
+        this.exporttoServiceFinishAction = exporttoServiceFinishAction;
+        this.providerTypes = providerTypes;
+        this.status = JOptionPane.UNDEFINED_CONDITION;
+
+        URL iconURL =
+            getClass().getClassLoader().getResource(
+                "org/gvsig/exportto/swing/impl/images/exporttoicon.png");
+        ImageIcon icon = new ImageIcon(iconURL);
+        wizardPanelWithLogo = new WizardPanelWithLogo(icon);
+
+        // Initialize the wizards
+        exporterSelectionWizard =
+            new ExporterSelectionWizard(this, providerTypes);
+        exportFilterWizard = new ExportFilterWizard(this);
+        exporttoProgressWizard = new ExporttoProgressWizard(this);
+
+        // Adding the wizards to the main wizard
+        wizardPanelWithLogo.addOptionPanel(exporterSelectionWizard);
+
+        // The finish button is called "export"
+        this.wizardPanelWithLogo.getWizardComponents().getFinishButton()
+            .setText(uimanager.getTranslation("export"));
+
+        this.setLayout(new BorderLayout());
+        this.add(wizardPanelWithLogo, BorderLayout.CENTER);
+
+        // Disable the nextbutton
+        setNextButtonEnabled(false);
+        setExportButtonEnabled(false);
+
+        // Set the listener for the finish and cancell events
+        this.wizardPanelWithLogo.setWizardListener(this);
+    }
+
+    public void setNextButtonEnabled(boolean isEnabled) {
+        wizardPanelWithLogo.setNextButtonEnabled(isEnabled);
+    }
+
+    public void setExportButtonEnabled(boolean isEnabled) {
+        wizardPanelWithLogo.setFinishButtonEnabled(isEnabled);
+    }
+
+    public void setCancelButtonText(String text) {
+        wizardPanelWithLogo.getWizardComponents().getCancelButton()
+            .setText(text);
+    }
+
+    /**
+     * @return the uimanager
+     */
+    public DefaultExporttoSwingManager getExporttoSwingManager() {
+        return uimanager;
+    }
+
+    /**
+     * @param exporttoSwingProvider
+     * @throws ServiceException
+     */
+    public void selectExporttoSwingProvider(
+        ExporttoSwingProviderFactory provider)
+        throws ServiceException {
+        exporttoSwingProvider =
+            EXPORTTO_SWING_PROVIDER_MANAGER.createExporttoSwingProvider(
+                provider.getName(), featureStore, projection);
+
+        DefaultJWizardComponents wizardComponents =
+            wizardPanelWithLogo.getWizardComponents();
+        for (int i = wizardComponents.getWizardPanelList().size() - 1; i >= 1; i--) {
+            wizardComponents.removeWizardPanel(i);
+        }
+        for (int i = 0; i < exporttoSwingProvider.getPanelCount(); i++) {
+            wizardPanelWithLogo.addOptionPanel(new DefaultWizardContainer(
+                exporttoSwingProvider.getPanelAt(i)));
+        }
+        wizardPanelWithLogo.addOptionPanel(exportFilterWizard);
+        wizardPanelWithLogo.addOptionPanel(exporttoProgressWizard);
+    }
+
+    public void export() throws DataException, ExporttoServiceException {
+        this.lastWizard();
+
+        // Create the feature Set...
+        FeatureSet featureSet = null;
+        if (exportFilterWizard.isFullLayerSelected()) {
+            featureSet = featureStore.getFeatureSet();
+        } else
+            if (exportFilterWizard.isSelectedFeaturesSelected()) {
+                featureSet = (FeatureSet) featureStore.getSelection();
+            } else {
+                FeatureQuery featureQuery = featureStore.createFeatureQuery();
+                Evaluator evaluator =
+                    DATA_MANAGER.createExpresion(exportFilterWizard
+                        .getFreeFilter());
+                featureQuery.setFilter(evaluator);
+                featureSet = featureStore.getFeatureSet(featureQuery);
+            }
+
+        Export export = new Export(featureSet);
+        export.start();
+    }
+
+    public void lastWizard() {
+        this.wizardPanelWithLogo.getWizardComponents().getNextButton()
+            .getActionListeners()[0].actionPerformed(null);
+    }
+
+    private class Export extends Thread {
+
+        private FeatureSet featureSet;
+
+        public Export(FeatureSet featureSet) {
+            super();
+            this.featureSet = featureSet;
+        }
+
+        public synchronized void run() {
+            ExporttoService exportService =
+                exporttoSwingProvider.createExporttoService();
+            exporttoProgressWizard.bind(exportService.getTaskStatus());
+            exportService.setFinishAction(exporttoServiceFinishAction);
+            try {
+                exportService.export(featureSet);
+            } catch (ExporttoServiceException e) {
+                LOG.error("Error exporting the store", e);
+                showError(e, exportService.getTaskStatus());
+            }
+        }
+    }
+
+    private void showError(ExporttoServiceException e, TaskStatus taskStatus) {
+        String message = e.getMessage();
+        if (e.getCause() != null) {
+            message = e.getCause().getMessage();
+        }
+        JOptionPane.showMessageDialog(exporttoProgressWizard, message);
+    }
+
+    public void setWizardPanelActionListener(
+        WizardPanelActionListener wizardActionListener) {
+        this.exporttoServicePanelListener = wizardActionListener;
+    }
+
+    public WizardPanelActionListener getWizardPanelActionListener() {
+        if (exporttoServicePanelListener == null) {
+            exporttoServicePanelListener =
+                new DefaultJExporttoServicePanelListener(this);
+        }
+        return exporttoServicePanelListener;
+    }
+
+    @Override
+    public void setExporttoServicePanelListener(
+        JExporttoServicePanelListener exporttoServicePanelListener) {
+        ((DefaultJExporttoServicePanelListener) getWizardPanelActionListener())
+            .setExporttoServicePanelListener(exporttoServicePanelListener);
+    }
+
+    @Override
+    public int getStatus() {
+        return this.status;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingProviderManager.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingProviderManager.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingProviderManager.java	(revision 38300)
@@ -0,0 +1,275 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.cresques.cts.IProjection;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.exportto.swing.impl.preferences.DefaultExporttoPreferencesComponent;
+import org.gvsig.exportto.swing.preferences.ExporttoSwingPreferencesComponent;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProvider;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderFactory;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderManager;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException;
+import org.gvsig.tools.extensionpoint.ExtensionPoint;
+import org.gvsig.tools.extensionpoint.ExtensionPoint.Extension;
+import org.gvsig.tools.extensionpoint.ExtensionPointManager;
+import org.gvsig.tools.service.Service;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.service.spi.AbstractProviderManager;
+import org.gvsig.tools.service.spi.Provider;
+import org.gvsig.tools.service.spi.ProviderFactory;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class DefaultExporttoSwingProviderManager extends
+    AbstractProviderManager implements ExporttoSwingProviderManager {
+
+    private static final Logger LOG = LoggerFactory
+        .getLogger(DefaultExporttoSwingProviderManager.class);
+
+    private static final String PROVIDERS_NAME = "Exportto.swing.providers";
+    private static final String PROVIDERS_DESCRIPTION =
+        "Exportto swing providers";
+
+    private static final String PARAMETER_FEATURESTORE = "FeatureStore";
+    private static final String PARAMETER_PROJECTION = "Projection";
+
+    private Map<ExporttoSwingProviderFactory, Boolean> providerStatus;
+
+    public DefaultExporttoSwingProviderManager() {
+        super();
+        providerStatus = new HashMap<ExporttoSwingProviderFactory, Boolean>();
+    }
+
+    public ProviderServices createProviderServices(Service service) {
+        return new DefaultExporttoSwingProviderServices();
+    }
+
+    public List<String> getProviderNames() {
+        return getProviderNames(new int[0]);
+    }
+
+    public List<String> getProviderNames(int[] providerTypes) {
+        ExtensionPointManager extensionPointManager =
+            ToolsLocator.getExtensionPointManager();
+        ExtensionPoint extensionPoint =
+            extensionPointManager.get(this.getRegistryKey());
+        List<String> providers = new ArrayList<String>();
+        if (extensionPoint != null) {
+            @SuppressWarnings("unchecked")
+            Iterator<Extension> it = extensionPoint.iterator();
+            while (it.hasNext()) {
+                Extension extension = it.next();
+                try {
+                    ExporttoSwingProviderFactory exporttoSwingProviderFactory =
+                        (ExporttoSwingProviderFactory) extension.create();
+                    if (providerTypes.length == 0) {
+                        providers.add(exporttoSwingProviderFactory.getName());
+                    } else {
+                        boolean areSupported = true;
+                        for (int i = 0; i < providerTypes.length; i++) {
+                            if (!exporttoSwingProviderFactory
+                                .support(providerTypes[i])) {
+                                areSupported = false;
+                                break;
+                            }
+                        }
+                        if (areSupported) {
+                            providers.add(exporttoSwingProviderFactory
+                                .getName());
+                        }
+                    }
+                } catch (InstantiationException e) {
+                    LOG.error(
+                        "Not possible to create the exportto provider factory",
+                        e);
+                } catch (IllegalAccessException e) {
+                    LOG.error(
+                        "Not possible to create the exportto provider factory",
+                        e);
+                } catch (ServiceException e) {
+                    LOG.error(
+                        "Not possible to check if the provider support a format",
+                        e);
+                }
+            }
+        }
+        return providers;
+    }
+
+    public List<ExporttoSwingProviderFactory> getProviderFactories() {
+        return getProviderFactories(null);
+    }
+
+    public List<ExporttoSwingProviderFactory> getProviderFactories(
+        int[] providerTypes) {
+        ExtensionPointManager extensionPointManager =
+            ToolsLocator.getExtensionPointManager();
+        ExtensionPoint extensionPoint =
+            extensionPointManager.get(this.getRegistryKey());
+        List<ExporttoSwingProviderFactory> providers =
+            new ArrayList<ExporttoSwingProviderFactory>();
+        if (extensionPoint != null) {
+            @SuppressWarnings("unchecked")
+            Iterator<Extension> it = extensionPoint.iterator();
+            while (it.hasNext()) {
+                Extension extension = it.next();
+                try {
+                    ExporttoSwingProviderFactory exporttoSwingProviderFactory =
+                        (ExporttoSwingProviderFactory) extension.create();
+                    if (providerTypes == null || providerTypes.length == 0) {
+                        providers.add(exporttoSwingProviderFactory);
+                    } else {
+                        boolean areSupported = true;
+                        for (int i = 0; i < providerTypes.length; i++) {
+                            if (!exporttoSwingProviderFactory
+                                .support(providerTypes[i])) {
+                                areSupported = false;
+                                break;
+                            }
+                        }
+                        if (areSupported) {
+                            providers.add(exporttoSwingProviderFactory);
+                        }
+                    }
+                } catch (InstantiationException e) {
+                    LOG.error(
+                        "Not possible to create the exportto provider factory",
+                        e);
+                } catch (IllegalAccessException e) {
+                    LOG.error(
+                        "Not possible to create the exportto provider factory",
+                        e);
+                } catch (ServiceException e) {
+                    LOG.error(
+                        "Not possible to check if the provider support a format",
+                        e);
+                }
+            }
+        }
+        return providers;
+    }
+
+    protected String getRegistryDescription() {
+        return PROVIDERS_DESCRIPTION;
+    }
+
+    protected String getRegistryKey() {
+        return PROVIDERS_NAME;
+    }
+
+    public ExporttoSwingProvider createExporttoSwingProvider(
+        String providerName, FeatureStore featureStore, IProjection projection)
+        throws ServiceException {
+        DynObject serviceParameters = createServiceParameters(providerName);
+        serviceParameters.setDynValue(PARAMETER_FEATURESTORE, featureStore);
+        try {
+            serviceParameters.setDynValue(PARAMETER_PROJECTION, projection);
+        } catch (DynFieldNotFoundException e) {
+            LOG.info("This provider doesn't accept projection", e);
+        }
+        Provider provider =
+            createProvider(serviceParameters,
+                new DefaultExporttoSwingProviderServices());
+        if (!(provider instanceof ExporttoSwingProvider)) {
+            throw new NotExporttoSwingProviderException(providerName);
+        }
+        return (ExporttoSwingProvider) provider;
+    }
+
+    public boolean support(String providerName, int providerType)
+        throws ServiceException {
+        ExtensionPointManager epm = ToolsLocator.getExtensionPointManager();
+        ExtensionPoint ep = epm.get(this.getRegistryKey());
+        ExporttoSwingProviderFactory exporttoSwingProviderFactory = null;
+
+        if (ep != null) {
+            try {
+                exporttoSwingProviderFactory =
+                    ((ExporttoSwingProviderFactory) ep.create(providerName));
+                return exporttoSwingProviderFactory.support(providerType);
+            } catch (InstantiationException e) {
+                LOG.error(
+                    "Not possible to create the exportto provider factory", e);
+            } catch (IllegalAccessException e) {
+                LOG.error(
+                    "Not possible to create the exportto provider factory", e);
+            }
+        }
+        return false;
+    }
+
+    public void addProviderFactory(ProviderFactory providerFactory) {
+        if (providerFactory == null) {
+            throw new IllegalArgumentException(
+                "ProviderFactory cannot be null.");
+        }
+
+        if (!(providerFactory instanceof ExporttoSwingProviderFactory)) {
+            throw new IllegalArgumentException(providerFactory.getName()
+                + " must implement the ExporttoSwingProviderFactory interface");
+        }
+        super.addProviderFactory(providerFactory);
+    }
+
+    public String getDescription(String providerName) {
+        try {
+            return getExporttoSwingProviderFactory(providerName)
+                .getDescription();
+        } catch (ServiceException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    public boolean isProviderEnabled(ExporttoSwingProviderFactory factory) {
+        Boolean status = providerStatus.get(factory);
+        return status == null ? true : status.booleanValue();
+    }
+
+    public void enableProvider(ExporttoSwingProviderFactory factory, boolean value) {
+        providerStatus.put(factory, Boolean.valueOf(value));
+    }
+
+    public ExporttoSwingProviderFactory getExporttoSwingProviderFactory(
+        String name) throws ServiceException {
+        return (ExporttoSwingProviderFactory) getProviderFactory(name);
+    }
+
+    public ExporttoSwingPreferencesComponent createExporttoSwingProvidersPreferences() {
+        return new DefaultExporttoPreferencesComponent();
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingProviderManager.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/NotExporttoSwingProviderException.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/NotExporttoSwingProviderException.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/NotExporttoSwingProviderException.java	(revision 38300)
@@ -0,0 +1,60 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+
+/*
+ * AUTHORS (In addition to CIT):
+ * 2010 {Prodevelop}   {Task}
+ */
+
+package org.gvsig.exportto.swing.impl;
+
+import org.gvsig.exportto.swing.spi.ExporttoSwingProvider;
+import org.gvsig.tools.service.ServiceException;
+
+/**
+ * Exception thrown when the provider doesn't implements the
+ * {@link ExporttoSwingProvider} interface
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class NotExporttoSwingProviderException extends ServiceException {
+
+    private static final long serialVersionUID = -2159095938700834790L;
+
+    private final static String MESSAGE_KEY =
+        "_ExporttoProviderNotRegisteredException";
+    private final static String MESSAGE_FORMAT =
+        "The provider '%(providerName)' does not implement the ExporttoSwingProvider interface";
+
+    /**
+     * Creates a new {@link NotExporttoSwingProviderException}.
+     * 
+     * @param name
+     *            the name of the provider that doesn't implements the
+     *            {@link ExporttoSwingProvider} interface
+     */
+    public NotExporttoSwingProviderException(String name) {
+        super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID);
+        setValue("providerName", name);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/NotExporttoSwingProviderException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/ExporttoSwingDefaultImplLibrary.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/ExporttoSwingDefaultImplLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/ExporttoSwingDefaultImplLibrary.java	(revision 38300)
@@ -0,0 +1,66 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl;
+
+import java.util.Locale;
+
+import org.gvsig.exportto.swing.ExporttoSwingLibrary;
+import org.gvsig.exportto.swing.ExporttoSwingLocator;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.i18n.Messages;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+
+/**
+ * Library for default swing implementation initialization and configuration.
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class ExporttoSwingDefaultImplLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsImplementationOf(ExporttoSwingLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+        ExporttoSwingLocator
+            .registerSwingManager(DefaultExporttoSwingManager.class);
+        ExporttoSwingProviderLocator
+            .registerManager(DefaultExporttoSwingProviderManager.class);
+
+        if (!Messages.hasLocales()) {
+            Messages.addLocale(Locale.getDefault());
+        }
+        Messages.addResourceFamily("org.gvsig.exportto.swing.impl.i18n.text",
+            ExporttoSwingDefaultImplLibrary.class.getClassLoader(),
+            ExporttoSwingDefaultImplLibrary.class.getClass().getName());
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        // Nothing to do
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/ExporttoSwingDefaultImplLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanelListener.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanelListener.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanelListener.java	(revision 38300)
@@ -0,0 +1,91 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl;
+
+import javax.swing.JOptionPane;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.exportto.ExporttoServiceException;
+import org.gvsig.exportto.swing.JExporttoServicePanelListener;
+import org.gvsig.fmap.dal.exception.DataException;
+import org.gvsig.gui.beans.wizard.WizardPanel;
+import org.gvsig.gui.beans.wizard.WizardPanelActionListener;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class DefaultJExporttoServicePanelListener implements
+    WizardPanelActionListener {
+
+    private static final Logger LOG = LoggerFactory
+        .getLogger(DefaultJExporttoServicePanelListener.class);
+
+    private DefaultJExporttoServicePanel exporttoServicePanel;
+    private JExporttoServicePanelListener exporttoServicePanelListener = null;
+
+    public DefaultJExporttoServicePanelListener(
+        DefaultJExporttoServicePanel exporttoServicePanel) {
+        super();
+        this.exporttoServicePanel = exporttoServicePanel;
+    }
+
+    public void cancel(WizardPanel wizardPanel) {
+        if (exporttoServicePanelListener != null) {
+            exporttoServicePanelListener.close();
+        }
+        exporttoServicePanel.setStatus(JOptionPane.CANCEL_OPTION);
+    }
+
+    public void finish(WizardPanel wizardPanel) {
+        // Start the export process
+        try {
+            exporttoServicePanel.export();
+            exporttoServicePanel.setStatus(JOptionPane.OK_OPTION);
+        } catch (ExporttoServiceException e) {
+            exporttoServicePanel.setStatus(JOptionPane.CANCEL_OPTION);
+            String error =
+                exporttoServicePanel.getExporttoSwingManager().getTranslation(
+                    "error_exportto");
+            LOG.error(error, e);
+            JOptionPane.showMessageDialog(exporttoServicePanel, error);
+        } catch (DataException e) {
+            exporttoServicePanel.setStatus(JOptionPane.CANCEL_OPTION);
+            String error =
+                exporttoServicePanel.getExporttoSwingManager().getTranslation(
+                    "error_reading_source");
+            LOG.error(error, e);
+            JOptionPane.showMessageDialog(exporttoServicePanel, error);
+        }
+    }
+
+    /**
+     * @param exporttoServicePanelListener
+     */
+    public void setExporttoServicePanelListener(
+        JExporttoServicePanelListener exporttoServicePanelListener) {
+        this.exporttoServicePanelListener = exporttoServicePanelListener;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanelListener.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingManager.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingManager.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingManager.java	(revision 38300)
@@ -0,0 +1,93 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.ExporttoLocator;
+import org.gvsig.exportto.ExporttoManager;
+import org.gvsig.exportto.ExporttoServiceFinishAction;
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.ExporttoWindowManager;
+import org.gvsig.exportto.swing.JExporttoServicePanel;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.i18n.Messages;
+
+/**
+ * Default implementation of the {@link ExporttoSwingManager}.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultExporttoSwingManager implements ExporttoSwingManager {
+
+    private ExporttoManager manager;
+    // private I18nManager i18nmanager = null;
+    private ExporttoWindowManager windowManager;
+
+    public DefaultExporttoSwingManager() {
+        this.manager = ExporttoLocator.getManager();
+        // this.i18nmanager = ToolsLocator.getI18nManager();
+        this.windowManager = new DefaultExporttoWindowManager();
+    }
+
+    public JExporttoServicePanel createExportto(FeatureStore featureStore,
+        IProjection projection) {
+        JExporttoServicePanel panel =
+            new DefaultJExporttoServicePanel(this, featureStore, projection,
+                null, new int[0]);
+        return panel;
+    }
+
+    public JExporttoServicePanel createExportto(FeatureStore featureStore,
+        IProjection projection,
+        ExporttoServiceFinishAction exporttoServiceFinishAction) {
+        JExporttoServicePanel panel =
+            new DefaultJExporttoServicePanel(this, featureStore, projection,
+                exporttoServiceFinishAction, new int[0]);
+        return panel;
+    }
+
+    public JExporttoServicePanel createExportto(FeatureStore featureStore,
+        IProjection projection,
+        ExporttoServiceFinishAction exporttoServiceFinishAction,
+        int[] providerTypes) {
+        return new DefaultJExporttoServicePanel(this, featureStore, projection,
+            exporttoServiceFinishAction, providerTypes);
+    }
+
+    public ExporttoManager getManager() {
+        return this.manager;
+    }
+
+    public String getTranslation(String key) {
+        return Messages.getText(key);
+    }
+
+    public void registerWindowManager(ExporttoWindowManager manager) {
+        this.windowManager = manager;
+    }
+
+    public ExporttoWindowManager getWindowManager() {
+        return this.windowManager;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingManager.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoWindowManager.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoWindowManager.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoWindowManager.java	(revision 38300)
@@ -0,0 +1,83 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.impl;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.Toolkit;
+import java.awt.event.ComponentEvent;
+import java.awt.event.ComponentListener;
+
+import javax.swing.JFrame;
+import javax.swing.JPanel;
+
+import org.gvsig.exportto.swing.ExporttoWindowManager;
+import org.gvsig.exportto.swing.JExporttoServicePanel;
+
+/**
+ * Default implementation for the {@link ExporttoWindowManager}.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class DefaultExporttoWindowManager implements ExporttoWindowManager,
+    ComponentListener {
+
+    public void showWindow(JExporttoServicePanel panel, String title, int mode) {
+        JFrame frame = new JFrame();
+        // frame.setAlwaysOnTop(true);
+
+        final Dimension s = Toolkit.getDefaultToolkit().getScreenSize();
+        frame.setLocation(s.width / 4, s.height / 4);
+
+        frame.setLayout(new BorderLayout());
+        frame.setTitle(title);
+        frame.add(panel, BorderLayout.CENTER);
+
+        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+
+        panel.addComponentListener(this);
+
+        frame.pack();
+        frame.setVisible(true);
+    }
+
+    public void componentHidden(ComponentEvent componentEvent) {
+        JFrame frame =
+            (JFrame) ((JPanel) componentEvent.getSource()).getRootPane()
+                .getParent();
+        frame.setVisible(false);
+        frame.dispose();
+    }
+
+    public void componentMoved(ComponentEvent arg0) {
+        // Do nothing
+    }
+
+    public void componentResized(ComponentEvent arg0) {
+        // Do nothing
+    }
+
+    public void componentShown(ComponentEvent arg0) {
+        // Do nothing
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoWindowManager.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exportto package documentation</title>
+</head>
+<body>
+
+	<p>Exportto swing library API default implementation.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 38300)
@@ -0,0 +1 @@
+org.gvsig.exportto.swing.impl.ExporttoSwingDefaultImplLibrary
\ No newline at end of file
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/images/exporttoicon.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/images/exporttoicon.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/i18n/text.properties
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/i18n/text.properties	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/i18n/text.properties	(revision 38300)
@@ -0,0 +1,7 @@
+select_format_to_export=Selecciona el formato a exportar
+exportto_options=Opciones de exportaci�n
+all_layer=Toda la capa
+selected_features=Fean�menos seleccionados
+predefined_filters=Filtros predefinidos
+free_filter=Filtro libre
+export_progress=Progreso de exportaci�n

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/i18n/text.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/i18n/text_en.properties
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/i18n/text_en.properties	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/i18n/text_en.properties	(revision 38300)
@@ -0,0 +1,7 @@
+select_format_to_export=Select the format to export
+exportto_options=Export options
+all_layer=All layer
+selected_features=Selected features
+predefined_filters=Predefined filters
+free_filter=Free filter
+export_progress=Export progress

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/i18n/text_en.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/pom.xml	(revision 38300)
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.gvsig.exportto.swing.impl</artifactId>
+    <packaging>jar</packaging>
+    <name>org.gvsig.exportto.swing.impl</name>
+    <parent>
+        <groupId>org.gvsig</groupId>
+        <artifactId>org.gvsig.exportto.swing</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+    <dependencies>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.lib.api</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.api</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.spi</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.api</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <type>test-jar</type>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.lib.impl</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.i18n</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.ui</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>jwizardcomponent</groupId>
+            <artifactId>jwizardcomponent</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.timesupport.lib.impl</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.core.maven.dependencies</artifactId>
+            <version>2.0.1-SNAPSHOT</version>
+            <type>pom</type>
+            <scope>runtime</scope>
+        </dependency>
+    </dependencies>
+</project>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/pom.xml	(revision 38300)
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>org.gvsig.exportto.swing.prov.dbf</artifactId>
+    <packaging>jar</packaging>
+    <name>org.gvsig.exportto.swing.prov.dbf</name>
+    <parent>
+        <groupId>org.gvsig</groupId>
+        <artifactId>org.gvsig.exportto.swing.prov</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+    <dependencies>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.api</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.spi</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.file</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>
+            <classifier>spi</classifier>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+          <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.impl</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency> 
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.ui</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.i18n</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+    </dependencies>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 38300)
@@ -0,0 +1 @@
+org.gvsig.exportto.swing.prov.dbf.ExporttoDBFProviderLibrary
\ No newline at end of file
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exporto package documentation</title>
+</head>
+<body>
+
+    <p>Exportto provider that export to dbf.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/panel/EncodingPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/panel/EncodingPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/panel/EncodingPanel.java	(revision 38300)
@@ -0,0 +1,102 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.dbf.panel;
+
+import java.awt.BorderLayout;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+
+import javax.swing.JComboBox;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+
+import org.gvsig.i18n.Messages;
+import org.gvsig.metadata.MetadataLocator;
+import org.gvsig.metadata.MetadataManager;
+import org.gvsig.tools.dynobject.DynField;
+import org.gvsig.tools.dynobject.DynObjectValueItem;
+import org.gvsig.tools.dynobject.DynStruct;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class EncodingPanel extends JPanel {
+
+    private JLabel encodingLabel;
+    private JComboBox encodingCombo;
+
+    public EncodingPanel() {
+        super();
+        initComponents();
+        initEncodingCombo();
+    }
+
+    private void initComponents() {
+        this.setLayout(new BorderLayout());
+
+        java.awt.GridBagConstraints gridBagConstraints;
+
+        JPanel northPanel = new JPanel();
+        encodingLabel = new JLabel();
+        encodingCombo = new JComboBox();
+
+        northPanel.setLayout(new GridBagLayout());
+
+        encodingLabel.setText(Messages.getText("encoding ") + ": ");
+        gridBagConstraints = new GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 0;
+        northPanel.add(encodingLabel, gridBagConstraints);
+
+        gridBagConstraints = new GridBagConstraints();
+        gridBagConstraints.gridx = 1;
+        gridBagConstraints.gridy = 0;
+        gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
+        gridBagConstraints.weightx = 1.0;
+        northPanel.add(encodingCombo, gridBagConstraints);
+
+        add(northPanel, BorderLayout.NORTH);
+    }
+
+    private void initEncodingCombo() {
+        MetadataManager metadataManager = MetadataLocator.getMetadataManager();
+        DynStruct dynStruct = metadataManager.getDefinition("DBF");
+        DynField dynField = dynStruct.getDynField("Encoding");
+        DynObjectValueItem[] dynObjectValueItem = dynField.getAvailableValues();
+        for (int i = 0; i < dynObjectValueItem.length; i++) {
+            encodingCombo.addItem(dynObjectValueItem[i].getValue());
+        }
+    }
+
+    /**
+     * @return
+     */
+    public String getEncoding() {
+        String encoding = (String) encodingCombo.getSelectedItem();
+        if ("".equals(encoding)) {
+            return null;
+        }
+        return encoding;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/panel/EncodingPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/panel/ExporttoDBFPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/panel/ExporttoDBFPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/panel/ExporttoDBFPanel.java	(revision 38300)
@@ -0,0 +1,57 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.dbf.panel;
+
+import javax.swing.JComboBox;
+import javax.swing.JLabel;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.exportto.swing.prov.file.panel.SelectFileOptionPanel;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoDBFPanel extends SelectFileOptionPanel {
+
+    private static final long serialVersionUID = -2657306673271108746L;
+
+    private static final Logger LOG = LoggerFactory
+        .getLogger(ExporttoDBFPanel.class);
+
+    private JLabel encodingLabel;
+    private JComboBox encodingCombo;
+
+    public ExporttoDBFPanel() {
+        super(new EncodingPanel());
+    }
+
+    /**
+     * @return
+     */
+    public String getEncoding() {
+        return ((EncodingPanel) this.getOptionsPanel()).getEncoding();
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/panel/ExporttoDBFPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProviderLibrary.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProviderLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProviderLibrary.java	(revision 38300)
@@ -0,0 +1,56 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.dbf;
+
+import org.gvsig.exportto.swing.ExporttoSwingLibrary;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+import org.gvsig.tools.service.spi.ProviderManager;
+
+/**
+ * Library to initialize and register the file Exporto provider
+ * implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoDBFProviderLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsServiceOf(ExporttoSwingLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+        // Nothing to do
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        ProviderManager providerManager =
+            ExporttoSwingProviderLocator.getManager();
+        providerManager.addProviderFactory(new ExporttoDBFProviderFactory());
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProviderLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFService.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFService.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFService.java	(revision 38300)
@@ -0,0 +1,66 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.dbf;
+
+import java.io.File;
+
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.ExporttoServiceException;
+import org.gvsig.exportto.swing.prov.file.AbstractExporttoFileService;
+import org.gvsig.fmap.dal.exception.DataException;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
+import org.gvsig.tools.task.SimpleTaskStatus;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoDBFService extends AbstractExporttoFileService implements
+    ExporttoService {
+
+    private String encoding;
+
+    protected ExporttoDBFService(File dbfFile, FeatureStore featureStore,
+        String encoding) {
+        super(dbfFile, featureStore);
+        this.encoding = encoding;
+        try {
+            this.open();
+        } catch (ExporttoServiceException e) {
+            ((SimpleTaskStatus) getTaskStatus()).message(e.getMessage());
+        }
+    }
+
+    public void addParameters(
+        NewFeatureStoreParameters newFeatureStoreParameters)
+        throws DataException {
+        newFeatureStoreParameters.setDynValue("Encoding", encoding);
+        newFeatureStoreParameters.setDefaultFeatureType(featureStore
+            .getDefaultFeatureType().getEditable());
+    }
+
+    public String getFileExtension() {
+        return "dbf";
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFService.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProviderFactory.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProviderFactory.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProviderFactory.java	(revision 38300)
@@ -0,0 +1,69 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.dbf;
+
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.prov.file.AbstractExporttoFileProviderFactory;
+import org.gvsig.fmap.dal.DataTypes;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.service.spi.Provider;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Factory of file {@link ExportoProvider} objects.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoDBFProviderFactory extends
+    AbstractExporttoFileProviderFactory {
+
+    private static final String PROVIDER_NAME = "DBF";
+
+    public ExporttoDBFProviderFactory() {
+        super(
+            new int[] { ExporttoSwingManager.VECTORIAL_TABLE_WITHOUT_GEOMETRY });
+    }
+
+    public Provider create(DynObject parameters, ProviderServices services)
+        throws ServiceException {
+        return new ExporttoDBFProvider(services,
+            (FeatureStore) parameters.getDynValue(PARAMETER_FEATURESTORE));
+    }
+
+    public String getName() {
+        return PROVIDER_NAME;
+    }
+
+    public void initialize() {
+        parametersDefinition =
+            ToolsLocator.getDynObjectManager().createDynClass(getName(),
+                getDescription());
+        parametersDefinition.addDynField(PARAMETER_FEATURESTORE)
+            .setType(DataTypes.OBJECT).setMandatory(true)
+            .setClassOfValue(FeatureStore.class);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProviderFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProvider.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProvider.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProvider.java	(revision 38300)
@@ -0,0 +1,54 @@
+package org.gvsig.exportto.swing.prov.dbf;
+
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.swing.prov.dbf.panel.ExporttoDBFPanel;
+import org.gvsig.exportto.swing.prov.file.AbstractExporttoFileProvider;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProvider;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+
+/**
+ * Exporto provider which gets Exporto from a file.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoDBFProvider extends AbstractExporttoFileProvider implements
+    ExporttoSwingProvider {
+
+    private String encoding;
+
+    public ExporttoDBFProvider(ProviderServices providerServices,
+        FeatureStore featureStore) {
+        super(providerServices, featureStore, null, new ExporttoDBFPanel());
+    }
+
+    public ExporttoService createExporttoService() {
+        return new ExporttoDBFService(selectFileOptionPanel.getSelectedFile(),
+            featureStore,
+            ((ExporttoDBFPanel) selectFileOptionPanel).getEncoding());
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf/src/main/java/org/gvsig/exportto/swing/prov/dbf/ExporttoDBFProvider.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dbf
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 38300)
@@ -0,0 +1 @@
+org.gvsig.exportto.swing.prov.generic.ExporttoGenericProviderLibrary
\ No newline at end of file
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/resources/org/gvsig/exportto/swing/prov/generic/i18n/text_en.properties
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/resources/org/gvsig/exportto/swing/prov/generic/i18n/text_en.properties	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/resources/org/gvsig/exportto/swing/prov/generic/i18n/text_en.properties	(revision 38300)
@@ -0,0 +1,6 @@
+select_dataexplorer=Select the explorer
+select_dataexplorer_parameters=Select the explorer parameters
+select_datastore=Select the store
+select_datastore_parameters=Select the store parameters
+exportto_generic_description=Export using the advanced form to any gvSIG supported format
+exportto_generic_label=Advanced export
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/resources/org/gvsig/exportto/swing/prov/generic/i18n/text_en.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/resources/org/gvsig/exportto/swing/prov/generic/i18n/text.properties
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/resources/org/gvsig/exportto/swing/prov/generic/i18n/text.properties	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/resources/org/gvsig/exportto/swing/prov/generic/i18n/text.properties	(revision 38300)
@@ -0,0 +1,6 @@
+select_dataexplorer=Selecciona el explorer
+select_dataexplorer_parameters=Selecciona los par�metros del explorer
+select_datastore=Selecciona el store
+select_datastore_parameters=Selecciona los par�metros del store
+exportto_generic_description=Exporta usando el formulario avanzado a cualquier formato soportado por gvSIG. 
+exportto_generic_label=Exportaci�n Avanzada 
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/resources/org/gvsig/exportto/swing/prov/generic/i18n/text.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exporto package documentation</title>
+</head>
+<body>
+
+	<p>Exporto provider which gets Exporto from a file.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerPanel.java	(revision 38300)
@@ -0,0 +1,54 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.generic.panel;
+
+import org.gvsig.exportto.swing.prov.generic.ExporttoGenericProvider;
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class DataServerExplorerPanel extends AbstractProviderPanel {
+
+    private static final long serialVersionUID = -5600080647075615795L;
+
+    /**
+     * @param exporttoGenericProvider
+     */
+    public DataServerExplorerPanel(
+        ExporttoGenericProvider exporttoGenericProvider) {
+        super(exporttoGenericProvider, new DataServerExplorerListModel());
+    }
+
+    public String getPanelTitle() {
+        return EXPORTTO_SWING_MANAGER.getTranslation("select_dataexplorer");
+    }
+
+    public boolean isValidPanel() throws ExporttoPanelValidationException {
+        super.isValidPanel();
+        this.exporttoGenericProvider
+            .setDataServerExplorerSelected(getSelectedProvider());
+        return true;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStoreListModel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStoreListModel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStoreListModel.java	(revision 38300)
@@ -0,0 +1,71 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.generic.panel;
+
+import java.util.List;
+
+import javax.swing.ListModel;
+import javax.swing.event.ListDataListener;
+
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.DataServerExplorer;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class DataStoreListModel implements ListModel {
+
+    @SuppressWarnings("rawtypes")
+    private List providers = null;
+
+    public DataStoreListModel() {
+        super();
+        DataManager dataManager = DALLocator.getDataManager();
+        providers = dataManager.getStoreProviders();
+    }
+
+    public DataStoreListModel(DataServerExplorer dataServerExplorer) {
+        super();
+        providers = dataServerExplorer.getDataStoreProviderNames();
+    }
+
+    public int getSize() {
+        return providers.size();
+    }
+
+    public Object getElementAt(int index) {
+        return providers.get(index);
+    }
+
+    public void addListDataListener(ListDataListener l) {
+        // TODO Auto-generated method stub
+
+    }
+
+    public void removeListDataListener(ListDataListener l) {
+        // TODO Auto-generated method stub
+
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStoreListModel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractExporttoGenericPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractExporttoGenericPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractExporttoGenericPanel.java	(revision 38300)
@@ -0,0 +1,48 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.generic.panel;
+
+import org.gvsig.exportto.swing.ExporttoSwingLocator;
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.prov.generic.ExporttoGenericProvider;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderPanel;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public abstract class AbstractExporttoGenericPanel extends
+    ExporttoSwingProviderPanel {
+
+    private static final long serialVersionUID = -7994157431819798158L;
+
+    protected ExporttoGenericProvider exporttoGenericProvider;
+    protected static final ExporttoSwingManager EXPORTTO_SWING_MANAGER =
+        ExporttoSwingLocator.getSwingManager();
+
+    public AbstractExporttoGenericPanel(
+        ExporttoGenericProvider exporttoGenericProvider) {
+        super();
+        this.exporttoGenericProvider = exporttoGenericProvider;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractExporttoGenericPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerParamsPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerParamsPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerParamsPanel.java	(revision 38300)
@@ -0,0 +1,63 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.generic.panel;
+
+import org.gvsig.exportto.swing.prov.generic.ExporttoGenericProvider;
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+import org.gvsig.fmap.dal.DataServerExplorerParameters;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class DataServerExplorerParamsPanel extends AbstractDynObjectParamsPanel {
+
+    private static final long serialVersionUID = 667990960406810267L;
+
+    /**
+     * @param exporttoGenericProvider
+     */
+    public DataServerExplorerParamsPanel(
+        ExporttoGenericProvider exporttoGenericProvider) {
+        super(exporttoGenericProvider);
+    }
+
+    @Override
+    public String getPanelTitle() {
+        return EXPORTTO_SWING_MANAGER
+            .getTranslation("select_dataexplorer_parameters");
+    }
+
+    public boolean isValidPanel() throws ExporttoPanelValidationException {
+        dynObjectComponent.saveStatus();
+        super.isValidPanel();
+        this.exporttoGenericProvider
+            .setDataServerExplorerParameters(getDataServerExplorerParameters());
+        return true;
+    }
+
+    private DataServerExplorerParameters getDataServerExplorerParameters() {
+        dynObjectComponent.saveStatus();
+        return (DataServerExplorerParameters) dynObjectComponent.getDynObject();
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerParamsPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStorePanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStorePanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStorePanel.java	(revision 38300)
@@ -0,0 +1,59 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.generic.panel;
+
+import org.gvsig.exportto.swing.prov.generic.ExporttoGenericProvider;
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+import org.gvsig.fmap.dal.DataServerExplorer;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class DataStorePanel extends AbstractProviderPanel {
+
+    private static final long serialVersionUID = -3342965948053480977L;
+
+    /**
+     * @param exporttoGenericProvider
+     */
+    public DataStorePanel(ExporttoGenericProvider exporttoGenericProvider) {
+        super(exporttoGenericProvider, new DataStoreListModel());
+    }
+
+    public String getPanelTitle() {
+        return EXPORTTO_SWING_MANAGER.getTranslation("select_datastore");
+    }
+
+    public boolean isValidPanel() throws ExporttoPanelValidationException {
+        super.isValidPanel();
+        this.exporttoGenericProvider
+            .setDataStoreSelected(getSelectedProvider());
+        return true;
+    }
+
+    public void setDataServerExplorer(DataServerExplorer dataServerExplorer) {
+        this.setModel(new DataStoreListModel(dataServerExplorer));
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStorePanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractDynObjectParamsPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractDynObjectParamsPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractDynObjectParamsPanel.java	(revision 38300)
@@ -0,0 +1,70 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.generic.panel;
+
+import java.awt.BorderLayout;
+
+import org.gvsig.exportto.swing.prov.generic.ExporttoGenericProvider;
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.dynobject.exception.DynObjectValidateException;
+import org.gvsig.tools.swing.api.dynobject.JDynObjectComponent;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public abstract class AbstractDynObjectParamsPanel extends
+    AbstractExporttoGenericPanel {
+
+    private static final long serialVersionUID = -8274240222613051224L;
+    protected JDynObjectComponent dynObjectComponent = null;
+
+    public AbstractDynObjectParamsPanel(
+        ExporttoGenericProvider exporttoGenericProvider) {
+        super(exporttoGenericProvider);
+        this.setLayout(new BorderLayout());
+    }
+
+    /**
+     * @param dynObjectComponent
+     *            the dynObjectComponent to set
+     */
+    public void setDynObjectComponent(JDynObjectComponent dynObjectComponent) {
+        this.dynObjectComponent = dynObjectComponent;
+        this.removeAll();
+        this.add(dynObjectComponent.asJComponent(), BorderLayout.CENTER);
+    }
+
+    @Override
+    public boolean isValidPanel() throws ExporttoPanelValidationException {
+        DynObject dynObject = this.dynObjectComponent.getDynObject();
+        try {
+            dynObject.getDynClass().validate(dynObject);
+        } catch (DynObjectValidateException e) {
+            throw new ExporttoPanelValidationException(
+                "Error validating the panel", e);
+        }
+        return true;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractDynObjectParamsPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStoreParamsPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStoreParamsPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStoreParamsPanel.java	(revision 38300)
@@ -0,0 +1,60 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.generic.panel;
+
+import org.gvsig.exportto.swing.prov.generic.ExporttoGenericProvider;
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+import org.gvsig.fmap.dal.NewDataStoreParameters;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class DataStoreParamsPanel extends AbstractDynObjectParamsPanel {
+
+    private static final long serialVersionUID = 181015750609899330L;
+
+    /**
+     * @param exporttoGenericProvider
+     */
+    public DataStoreParamsPanel(ExporttoGenericProvider exporttoGenericProvider) {
+        super(exporttoGenericProvider);
+    }
+
+    @Override
+    public String getPanelTitle() {
+        return EXPORTTO_SWING_MANAGER
+            .getTranslation("select_datastore_parameters");
+    }
+
+    public boolean isValidPanel() throws ExporttoPanelValidationException {
+        dynObjectComponent.saveStatus();
+        super.isValidPanel();
+        return true;
+    }
+
+    public NewDataStoreParameters getNewDataStoreParameters() {
+        dynObjectComponent.saveStatus();
+        return (NewDataStoreParameters) dynObjectComponent.getDynObject();
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataStoreParamsPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractProviderPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractProviderPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractProviderPanel.java	(revision 38300)
@@ -0,0 +1,90 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.generic.panel;
+
+import java.awt.BorderLayout;
+
+import javax.swing.JList;
+import javax.swing.JScrollPane;
+import javax.swing.ListModel;
+import javax.swing.event.ListSelectionListener;
+
+import org.gvsig.exportto.swing.prov.generic.ExporttoGenericProvider;
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public abstract class AbstractProviderPanel extends
+    AbstractExporttoGenericPanel {
+
+    private static final long serialVersionUID = -3344421488964340688L;
+    private JList dalProviderList = null;
+    private JScrollPane scrollPane = null;
+
+    public AbstractProviderPanel(
+        ExporttoGenericProvider exporttoGenericProvider, ListModel listModel) {
+        super(exporttoGenericProvider);
+        initializeComponents(listModel);
+    }
+
+    private void initializeComponents(ListModel listModel) {
+        this.setLayout(new BorderLayout());
+
+        // Create the list
+        dalProviderList = new JList();
+        dalProviderList.setModel(listModel);
+
+        scrollPane = new JScrollPane();
+        scrollPane.setViewportView(dalProviderList);
+
+        this.add(scrollPane, BorderLayout.CENTER);
+    }
+
+    protected void setModel(ListModel listModel) {
+        dalProviderList.setModel(listModel);
+    }
+
+    public String getSelectedProvider() {
+        Object obj = dalProviderList.getSelectedValue();
+        if (obj != null) {
+            return (String) obj;
+        }
+        return null;
+    }
+
+    public void AddListSelectionListener(
+        ListSelectionListener listSelectionListener) {
+        this.dalProviderList.addListSelectionListener(listSelectionListener);
+    }
+
+    @Override
+    public boolean isValidPanel() throws ExporttoPanelValidationException {
+        if (getSelectedProvider() == null) {
+            throw new ExporttoPanelValidationException(
+                "A provider has to be selected");
+        }
+        return true;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/AbstractProviderPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerListModel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerListModel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerListModel.java	(revision 38300)
@@ -0,0 +1,65 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.generic.panel;
+
+import java.util.List;
+
+import javax.swing.ListModel;
+import javax.swing.event.ListDataListener;
+
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class DataServerExplorerListModel implements ListModel {
+
+    @SuppressWarnings("rawtypes")
+    private List providers = null;
+
+    public DataServerExplorerListModel() {
+        super();
+        DataManager dataManager = DALLocator.getDataManager();
+        providers = dataManager.getExplorerProviders();
+    }
+
+    public int getSize() {
+        return providers.size();
+    }
+
+    public Object getElementAt(int index) {
+        return providers.get(index);
+    }
+
+    public void addListDataListener(ListDataListener l) {
+        // TODO Auto-generated method stub
+
+    }
+
+    public void removeListDataListener(ListDataListener l) {
+        // TODO Auto-generated method stub
+
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/panel/DataServerExplorerListModel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProviderLibrary.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProviderLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProviderLibrary.java	(revision 38300)
@@ -0,0 +1,70 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.generic;
+
+import java.util.Locale;
+
+import org.gvsig.exportto.swing.ExporttoSwingLibrary;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderManager;
+import org.gvsig.i18n.Messages;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+
+/**
+ * Library to initialize and register the file Exporto provider
+ * implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoGenericProviderLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsServiceOf(ExporttoSwingLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+        if (!Messages.hasLocales()) {
+            Messages.addLocale(Locale.getDefault());
+        }
+        Messages.addResourceFamily(
+            "org.gvsig.exportto.swing.prov.generic.i18n.text",
+            ExporttoGenericProviderLibrary.class.getClassLoader(),
+            ExporttoGenericProviderLibrary.class.getClass().getName());
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        ExporttoSwingProviderManager providerManager =
+            ExporttoSwingProviderLocator.getManager();
+        ExporttoGenericProviderFactory providerFactory =
+            new ExporttoGenericProviderFactory();
+        providerManager.addProviderFactory(providerFactory);
+
+        // Disable this provider by default
+        providerManager.enableProvider(providerFactory, false);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProviderLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProviderFactory.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProviderFactory.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProviderFactory.java	(revision 38300)
@@ -0,0 +1,76 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.generic;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.swing.spi.AbstractExporttoProviderFactory;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderFactory;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.i18n.Messages;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.service.spi.Provider;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Factory of generic {@link ExportoProvider} objects.
+ * This factory add support for any DAL provider in a generic way.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoGenericProviderFactory extends
+    AbstractExporttoProviderFactory implements ExporttoSwingProviderFactory {
+
+    private static final String PROVIDER_NAME = "Generic";
+
+    /**
+     * Constructor.
+     */
+    public ExporttoGenericProviderFactory() {
+        super(null);
+    }
+
+    public Provider create(DynObject parameters, ProviderServices services)
+        throws ServiceException {
+        return new ExporttoGenericProvider(services,
+            (FeatureStore) parameters.getDynValue(PARAMETER_FEATURESTORE),
+            (IProjection) parameters.getDynValue(PARAMETER_PROJECTION));
+    }
+
+    public String getName() {
+        return PROVIDER_NAME;
+    }
+
+    public boolean support(int providerType) throws ServiceException {
+        return true;
+    }
+
+    public String getDescription() {
+        return Messages.getText("exportto_generic_description");
+    }
+
+    public String getLabel() {
+        return Messages.getText("exportto_generic_label");
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProviderFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProvider.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProvider.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProvider.java	(revision 38300)
@@ -0,0 +1,214 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.generic;
+
+import org.cresques.cts.IProjection;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.exportto.ExporttoLocator;
+import org.gvsig.exportto.ExporttoManager;
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.swing.prov.generic.panel.DataServerExplorerPanel;
+import org.gvsig.exportto.swing.prov.generic.panel.DataServerExplorerParamsPanel;
+import org.gvsig.exportto.swing.prov.generic.panel.DataStorePanel;
+import org.gvsig.exportto.swing.prov.generic.panel.DataStoreParamsPanel;
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProvider;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderPanel;
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.DataServerExplorer;
+import org.gvsig.fmap.dal.DataServerExplorerParameters;
+import org.gvsig.fmap.dal.NewDataStoreParameters;
+import org.gvsig.fmap.dal.exception.InitializeException;
+import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
+import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.service.spi.AbstractProvider;
+import org.gvsig.tools.service.spi.ProviderServices;
+import org.gvsig.tools.swing.api.ToolsSwingLocator;
+import org.gvsig.tools.swing.api.dynobject.DynObjectSwingManager;
+import org.gvsig.tools.swing.api.dynobject.JDynObjectComponent;
+
+/**
+ * Exporto provider which gets Exporto from a file.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoGenericProvider extends AbstractProvider implements
+    ExporttoSwingProvider {
+
+    private static final Logger LOG = LoggerFactory
+        .getLogger(ExporttoGenericProvider.class);
+
+    private static final DataManager DATA_MANAGER = DALLocator.getDataManager();
+    private static final DynObjectSwingManager DYN_OBJECT_SWING_MANAGER =
+        ToolsSwingLocator.getDynObjectSwingManager();
+    private static final ExporttoManager EXPORTTO_MANAGER = ExporttoLocator
+        .getManager();
+
+    private DataServerExplorerPanel dataServerExplorerPanel = null;
+    private DataServerExplorerParamsPanel dataServerExplorerParamsPanel = null;
+    private DataStorePanel dataStorePanel = null;
+    private DataStoreParamsPanel dataStoreParamsPanel = null;
+
+    private FeatureStore featureStore;
+    private IProjection projection;
+    private DataServerExplorer dataServerExplorer = null;
+
+    /**
+     * Constructor.
+     * 
+     * @param providerServices
+     *            the services for the provider
+     * @param file
+     *            to get the Exporto from
+     */
+    public ExporttoGenericProvider(ProviderServices providerServices,
+        FeatureStore featureStore, IProjection projection) {
+        super(providerServices);
+        this.featureStore = featureStore;
+        this.projection = projection;
+
+        dataServerExplorerPanel = new DataServerExplorerPanel(this);
+        dataServerExplorerParamsPanel = new DataServerExplorerParamsPanel(this);
+        dataStorePanel = new DataStorePanel(this);
+        dataStoreParamsPanel = new DataStoreParamsPanel(this);
+    }
+
+    public int getPanelCount() {
+        return 4;
+    }
+
+    public ExporttoSwingProviderPanel getPanelAt(int index) {
+        switch (index) {
+        case 0:
+            return dataServerExplorerPanel;
+        case 1:
+            return dataServerExplorerParamsPanel;
+        case 2:
+            return dataStorePanel;
+        case 3:
+            return dataStoreParamsPanel;
+        }
+        return null;
+    }
+
+    public void setDataServerExplorerSelected(String explorerName)
+        throws ExporttoPanelValidationException {
+        DataServerExplorerParameters dataServerExplorerParameters;
+        try {
+            dataServerExplorerParameters =
+                DATA_MANAGER.createServerExplorerParameters(explorerName);
+            JDynObjectComponent dynObjectComponent =
+                DYN_OBJECT_SWING_MANAGER.createJDynObjectComponent(
+                    dataServerExplorerParameters, true);
+            this.dataServerExplorerParamsPanel
+                .setDynObjectComponent(dynObjectComponent);
+        } catch (InitializeException e1) {
+            throw new ExporttoPanelValidationException(
+                "Error creating the explorer params panel", e1);
+        } catch (ProviderNotRegisteredException e1) {
+            throw new ExporttoPanelValidationException(
+                "Error creating the explorer params panel", e1);
+        } catch (ServiceException e1) {
+            throw new ExporttoPanelValidationException(
+                "Error creating the explorer params panel", e1);
+        }
+    }
+
+    public void setDataServerExplorerParameters(
+        DataServerExplorerParameters dataServerExplorerParameters)
+        throws ExporttoPanelValidationException {
+        String explorerName =
+            this.dataServerExplorerPanel.getSelectedProvider();
+        if (explorerName != null) {
+            if (dataServerExplorerParameters != null) {
+                try {
+                    dataServerExplorer =
+                        DATA_MANAGER.openServerExplorer(explorerName,
+                            dataServerExplorerParameters);
+                    this.dataStorePanel
+                        .setDataServerExplorer(dataServerExplorer);
+                } catch (ValidateDataParametersException e) {
+                    throw new ExporttoPanelValidationException(
+                        "error creating the explorer", e);
+                } catch (InitializeException e) {
+                    throw new ExporttoPanelValidationException(
+                        "error creating the explorer", e);
+                } catch (ProviderNotRegisteredException e) {
+                    throw new ExporttoPanelValidationException(
+                        "error creating the explorer", e);
+                }
+            }
+        }
+    }
+
+    public DataServerExplorer getDataServerExplorer() {
+        return dataServerExplorer;
+    }
+
+    public void setDataStoreSelected(String storeName)
+        throws ExporttoPanelValidationException {
+        try {
+            NewDataStoreParameters newDataStoreParameters =
+                dataServerExplorer.getAddParameters(storeName);
+
+            try {
+                newDataStoreParameters.setDynValue("CRS", projection);
+            } catch (DynFieldNotFoundException e) {
+                LOG.info("The provider {} doesn't support the CRS parameter",
+                    storeName);
+            }
+            try {
+                newDataStoreParameters.setDynValue("featureType", featureStore
+                    .getDefaultFeatureType().getEditable());
+            } catch (DynFieldNotFoundException e) {
+                LOG.info(
+                    "The provider {} doesn't support the featureType parameter",
+                    storeName);
+            }
+
+            JDynObjectComponent dynObjectComponent =
+                DYN_OBJECT_SWING_MANAGER.createJDynObjectComponent(
+                    newDataStoreParameters, true);
+            this.dataStoreParamsPanel.setDynObjectComponent(dynObjectComponent);
+        } catch (Exception e1) {
+            throw new ExporttoPanelValidationException(
+                "Error creating the store params panel", e1);
+        }
+    }
+
+    private NewDataStoreParameters getNewDataStoreParameters() {
+        return dataStoreParamsPanel.getNewDataStoreParameters();
+    }
+
+    public ExporttoService createExporttoService() {
+        return EXPORTTO_MANAGER.getExporttoService(dataServerExplorer,
+            getNewDataStoreParameters());
+
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/src/main/java/org/gvsig/exportto/swing/prov/generic/ExporttoGenericProvider.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/pom.xml	(revision 38300)
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.swing.prov.generic</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.exportto.swing.prov.generic</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.swing.prov</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.swing.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.spi</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>
+            <classifier>spi</classifier>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+          <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.impl</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.i18n</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+	</dependencies>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.generic
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exporto package documentation</title>
+</head>
+<body>
+
+	<p>Exporto provider which gets Exporto from a file.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/panel/SelectFileOptionPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/panel/SelectFileOptionPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/panel/SelectFileOptionPanel.java	(revision 38300)
@@ -0,0 +1,113 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.file.panel;
+
+import java.awt.BorderLayout;
+import java.awt.Component;
+import java.io.File;
+
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+
+import org.gvsig.exportto.swing.ExporttoSwingLocator;
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderPanel;
+import org.gvsig.i18n.Messages;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class SelectFileOptionPanel extends ExporttoSwingProviderPanel {
+
+    private static final long serialVersionUID = -7417782279157857962L;
+    private JPanel optionsPanel;
+
+    private static final ExporttoSwingManager EXPORTTO_SWING_MANAGER =
+        ExporttoSwingLocator.getSwingManager();
+
+    private org.gvsig.gui.beans.wizard.panel.SelectFileOptionPanel selectFileOptionPanel;
+
+    /**
+     * @param fileText
+     */
+    public SelectFileOptionPanel() {
+        this(null);
+    }
+
+    public SelectFileOptionPanel(JPanel optionsPanel) {
+        super();
+        this.setLayout(new BorderLayout());
+        selectFileOptionPanel =
+            new org.gvsig.gui.beans.wizard.panel.SelectFileOptionPanel(null);
+        add(selectFileOptionPanel, BorderLayout.NORTH);
+        if (optionsPanel != null) {
+            optionsPanel.setBorder(javax.swing.BorderFactory
+                .createCompoundBorder(javax.swing.BorderFactory
+                    .createTitledBorder(Messages.getText("options")),
+                    javax.swing.BorderFactory.createEmptyBorder(10, 5, 5, 5)));
+            add(optionsPanel, BorderLayout.CENTER);
+            this.optionsPanel = optionsPanel;
+        }
+    }
+
+    @Override
+    public String getPanelTitle() {
+        return EXPORTTO_SWING_MANAGER.getTranslation("Seleccionar_fichero");
+    }
+
+    public File getSelectedFile() {
+        return selectFileOptionPanel.getSelectedFile();
+    }
+
+    @Override
+    public boolean isValidPanel() throws ExporttoPanelValidationException {
+        File file = selectFileOptionPanel.getSelectedFile();
+        if ((file == null) || (file.equals(""))) {
+            throw new ExporttoPanelValidationException(
+                "The file can not be empty");
+        }
+        if (file.exists()) {
+            int resp =
+                JOptionPane
+                    .showConfirmDialog(
+                        (Component) selectFileOptionPanel,
+                        EXPORTTO_SWING_MANAGER
+                            .getTranslation("fichero_ya_existe_seguro_desea_guardarlo"),
+                        EXPORTTO_SWING_MANAGER.getTranslation("guardar"),
+                        JOptionPane.YES_NO_OPTION);
+            if (resp == JOptionPane.NO_OPTION) {
+                return false;
+            }
+        }
+        return true;
+    }
+
+    /**
+     * @return the optionsPanel
+     */
+    public JPanel getOptionsPanel() {
+        return optionsPanel;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/panel/SelectFileOptionPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileProvider.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileProvider.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileProvider.java	(revision 38300)
@@ -0,0 +1,83 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.file;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.swing.prov.file.panel.SelectFileOptionPanel;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProvider;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderPanel;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.service.spi.AbstractProvider;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Exporto provider which gets Exporto from a file.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public abstract class AbstractExporttoFileProvider extends AbstractProvider
+    implements ExporttoSwingProvider {
+
+    protected SelectFileOptionPanel selectFileOptionPanel = null;
+
+    protected FeatureStore featureStore;
+    protected IProjection projection;
+
+    /**
+     * Constructor.
+     * 
+     * @param providerServices
+     *            the services for the provider
+     * @param file
+     *            to get the Exporto from
+     */
+    public AbstractExporttoFileProvider(ProviderServices providerServices,
+        FeatureStore featureStore, IProjection projection) {
+        this(providerServices, featureStore, projection,
+            new SelectFileOptionPanel());
+    }
+
+    public AbstractExporttoFileProvider(ProviderServices providerServices,
+        FeatureStore featureStore, IProjection projection,
+        SelectFileOptionPanel selectFileOptionPanel) {
+        super(providerServices);
+        this.featureStore = featureStore;
+        this.projection = projection;
+
+        this.selectFileOptionPanel = selectFileOptionPanel;
+    }
+
+    public int getPanelCount() {
+        return 1;
+    }
+
+    public ExporttoSwingProviderPanel getPanelAt(int index) {
+        switch (index) {
+        case 0:
+            return selectFileOptionPanel;
+        }
+        return null;
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileProvider.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileService.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileService.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileService.java	(revision 38300)
@@ -0,0 +1,146 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.file;
+
+import java.io.File;
+
+import org.gvsig.exportto.ExporttoLocator;
+import org.gvsig.exportto.ExporttoManager;
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.ExporttoServiceException;
+import org.gvsig.exportto.ExporttoServiceFinishAction;
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.exception.DataException;
+import org.gvsig.fmap.dal.exception.InitializeException;
+import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
+import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
+import org.gvsig.fmap.dal.feature.FeatureSet;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
+import org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemServerExplorer;
+import org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemServerExplorerParameters;
+import org.gvsig.tools.task.TaskStatus;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public abstract class AbstractExporttoFileService implements ExporttoService {
+
+    protected static final ExporttoManager EXPORTTO_MANAGER = ExporttoLocator
+        .getManager();
+    protected File file;
+    protected FeatureStore featureStore;
+    protected ExporttoService exporttoService;
+
+    private NewFeatureStoreParameters newFeatureStoreParameters;
+    private ExporttoServiceFinishAction exporttoServiceFinishAction;
+
+    public AbstractExporttoFileService(File file, FeatureStore featureStore) {
+        super();
+        this.featureStore = featureStore;
+        this.file = file;
+    }
+
+    public void open() throws ExporttoServiceException {
+        String path = file.getAbsolutePath();
+
+        String extension = "." + getFileExtension();
+
+        if (!(path.toLowerCase().endsWith(extension))) {
+            path = path + extension;
+        }
+
+        File newFile = new File(path);
+        DataManager dataManager = DALLocator.getDataManager();
+
+        FilesystemServerExplorerParameters explorerParams;
+        try {
+            explorerParams =
+                (FilesystemServerExplorerParameters) dataManager
+                    .createServerExplorerParameters(FilesystemServerExplorer.NAME);
+        } catch (InitializeException e) {
+            throw new ExporttoServiceException(e);
+        } catch (ProviderNotRegisteredException e) {
+            throw new ExporttoServiceException(e);
+        }
+        explorerParams.setRoot(newFile.getParent());
+
+        FilesystemServerExplorer explorer;
+        try {
+            explorer =
+                (FilesystemServerExplorer) dataManager.openServerExplorer(
+                    "FilesystemExplorer", explorerParams);
+        } catch (ValidateDataParametersException e) {
+            throw new ExporttoServiceException(e);
+        } catch (InitializeException e) {
+            throw new ExporttoServiceException(e);
+        } catch (ProviderNotRegisteredException e) {
+            throw new ExporttoServiceException(e);
+        }
+
+        try {
+            newFeatureStoreParameters =
+                (NewFeatureStoreParameters) explorer.getAddParameters(newFile);
+            addParameters(newFeatureStoreParameters);
+
+            exporttoService =
+                EXPORTTO_MANAGER.getExporttoService(explorer,
+                    newFeatureStoreParameters);
+        } catch (DataException e) {
+            throw new ExporttoServiceException(e);
+        }
+    }
+
+    public abstract void addParameters(
+        NewFeatureStoreParameters newFeatureStoreParameters)
+        throws DataException;
+
+    public abstract String getFileExtension();
+
+    public void export(FeatureSet featureSet) throws ExporttoServiceException {
+        exporttoService.export(featureSet);
+        if (exporttoServiceFinishAction != null) {
+            exporttoServiceFinishAction.finished(file.getName(),
+                newFeatureStoreParameters);
+        }
+    }
+
+    public void setFinishAction(
+        ExporttoServiceFinishAction exporttoServiceFinishAction) {
+        this.exporttoServiceFinishAction = exporttoServiceFinishAction;
+    }
+
+    public TaskStatus getTaskStatus() {
+        return exporttoService.getTaskStatus();
+    }
+
+    public boolean isCancellationRequested() {
+        return exporttoService.isCancellationRequested();
+    }
+
+    public void cancelRequest() {
+        exporttoService.cancelRequest();
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileService.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileProviderFactory.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileProviderFactory.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileProviderFactory.java	(revision 38300)
@@ -0,0 +1,39 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.file;
+
+import org.gvsig.exportto.swing.spi.AbstractExporttoProviderFactory;
+
+
+/**
+ * Factory of file {@link ExportoProvider} objects.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public abstract class AbstractExporttoFileProviderFactory extends
+    AbstractExporttoProviderFactory {
+
+    public AbstractExporttoFileProviderFactory(int[] providerTypes) {
+        super(providerTypes);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/java/org/gvsig/exportto/swing/prov/file/AbstractExporttoFileProviderFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/pom.xml	(revision 38300)
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.swing.prov.file</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.exportto.swing.prov.file</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.swing.prov</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.swing.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.lib.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.spi</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>
+            <classifier>spi</classifier>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+          <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.impl</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.ui</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.i18n</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+	</dependencies>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.file
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 38300)
@@ -0,0 +1 @@
+org.gvsig.exportto.swing.prov.shape.ExporttoShapeProviderLibrary
\ No newline at end of file
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProviderLibrary.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProviderLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProviderLibrary.java	(revision 38300)
@@ -0,0 +1,59 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.shape;
+
+import org.cresques.ProjectionLibrary;
+
+import org.gvsig.exportto.swing.ExporttoSwingLibrary;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+import org.gvsig.tools.service.spi.ProviderManager;
+
+/**
+ * Library to initialize and register the file Exporto provider
+ * implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoShapeProviderLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsServiceOf(ExporttoSwingLibrary.class);
+        require(ProjectionLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+        // Nothing to do
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        ProviderManager providerManager =
+            ExporttoSwingProviderLocator.getManager();
+        providerManager.addProviderFactory(new ExporttoShapeProviderFactory());
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProviderLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeService.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeService.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeService.java	(revision 38300)
@@ -0,0 +1,256 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.shape;
+
+import java.io.File;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.ExporttoServiceException;
+import org.gvsig.exportto.ExporttoServiceFinishAction;
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.exception.DataException;
+import org.gvsig.fmap.dal.exception.InitializeException;
+import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
+import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
+import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor;
+import org.gvsig.fmap.dal.feature.EditableFeatureType;
+import org.gvsig.fmap.dal.feature.Feature;
+import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
+import org.gvsig.fmap.dal.feature.FeatureSet;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.fmap.dal.feature.FeatureType;
+import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
+import org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemServerExplorer;
+import org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemServerExplorerParameters;
+import org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemStoreParameters;
+import org.gvsig.fmap.geom.Geometry;
+import org.gvsig.tools.dispose.DisposableIterator;
+import org.gvsig.tools.dispose.DisposeUtils;
+import org.gvsig.tools.task.AbstractMonitorableTask;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoShapeService extends AbstractMonitorableTask implements
+    ExporttoService {
+
+    private File shapeFile;
+    private IProjection projection;
+    private FeatureStore featureStore;
+
+    private int geometryType = -1;
+    private NewFeatureStoreParameters newFeatureStoreParameters;
+    private FilesystemServerExplorer filesystemServerExplorer;
+
+    private ExporttoServiceFinishAction exporttoServiceFinishAction;
+
+    public ExporttoShapeService(File shapeFile, FeatureStore featureStore,
+        IProjection projection) {
+        super("Export to shape");
+        this.featureStore = featureStore;
+        this.shapeFile = shapeFile;
+        this.projection = projection;
+    }
+
+    public void export(FeatureSet featureSet) throws ExporttoServiceException {
+
+        initializeParams(featureSet);
+
+        File file =
+            ((FilesystemStoreParameters) newFeatureStoreParameters).getFile();
+        String pathFile = file.getAbsolutePath();
+
+        if (geometryType == Geometry.TYPES.GEOMETRY) {
+            String withoutShp = pathFile.replaceAll("\\.shp", "");
+
+            // POINT
+            String fileName = withoutShp + "_point" + ".shp";
+            newFeatureStoreParameters
+                .setDynValue("shpfile", new File(fileName));
+            taskStatus.setTittle("Exporting points");
+            export(filesystemServerExplorer, newFeatureStoreParameters,
+                featureSet, Geometry.TYPES.POINT, true);
+            finishAction(fileName, newFeatureStoreParameters);
+
+            // CURVE
+            fileName = withoutShp + "_curve" + ".shp";
+            newFeatureStoreParameters
+                .setDynValue("shpfile", new File(fileName));
+            taskStatus.setTittle("Exporting curves");
+            export(filesystemServerExplorer, newFeatureStoreParameters,
+                featureSet, Geometry.TYPES.CURVE, true);
+            finishAction(fileName, newFeatureStoreParameters);
+
+            // SURFACE
+            fileName = withoutShp + "_surface" + ".shp";
+            newFeatureStoreParameters
+                .setDynValue("shpfile", new File(fileName));
+            taskStatus.setTittle("Exporting surfaces");
+            export(filesystemServerExplorer, newFeatureStoreParameters,
+                featureSet, Geometry.TYPES.SURFACE, true);
+            finishAction(fileName, newFeatureStoreParameters);
+
+        } else {
+            export(filesystemServerExplorer, newFeatureStoreParameters,
+                featureSet, geometryType, false);
+            finishAction(file.getName(), newFeatureStoreParameters);
+        }
+        this.taskStatus.terminate();
+        this.taskStatus.remove();
+    }
+
+    private void initializeParams(FeatureSet featureSet)
+        throws ExporttoServiceException {
+        String path = shapeFile.getAbsolutePath();
+
+        if (!(path.toLowerCase().endsWith(".shp"))) {
+            path = path + ".shp";
+        }
+
+        File newFile = new File(path);
+        DataManager dataManager = DALLocator.getDataManager();
+
+        FilesystemServerExplorerParameters explorerParams;
+        try {
+            explorerParams =
+                (FilesystemServerExplorerParameters) dataManager
+                    .createServerExplorerParameters(FilesystemServerExplorer.NAME);
+        } catch (InitializeException e) {
+            throw new ExporttoServiceException(e);
+        } catch (ProviderNotRegisteredException e) {
+            throw new ExporttoServiceException(e);
+        }
+        explorerParams.setRoot(newFile.getParent());
+
+        try {
+            filesystemServerExplorer =
+                (FilesystemServerExplorer) dataManager.openServerExplorer(
+                    "FilesystemExplorer", explorerParams);
+        } catch (ValidateDataParametersException e) {
+            throw new ExporttoServiceException(e);
+        } catch (InitializeException e) {
+            throw new ExporttoServiceException(e);
+        } catch (ProviderNotRegisteredException e) {
+            throw new ExporttoServiceException(e);
+        }
+
+        try {
+            newFeatureStoreParameters =
+                (NewFeatureStoreParameters) filesystemServerExplorer
+                    .getAddParameters(newFile);
+        } catch (DataException e) {
+            throw new ExporttoServiceException(e);
+        }
+
+        newFeatureStoreParameters.setDynValue("CRS", projection);
+
+        geometryType =
+            featureSet.getDefaultFeatureType().getDefaultGeometryAttribute()
+                .getGeometryType();
+
+    }
+
+    private void export(FilesystemServerExplorer explorer,
+        NewFeatureStoreParameters params, FeatureSet featureSet,
+        int geometryType, boolean checkType) throws ExporttoServiceException {
+
+        String providerName = params.getDataStoreName();
+        String explorerName = explorer.getProviderName();
+
+        DisposableIterator it = null;
+        try {
+            EditableFeatureType type =
+                featureStore.getDefaultFeatureType().getEditable();
+            FeatureAttributeDescriptor fad =
+                (FeatureAttributeDescriptor) type.get(type
+                    .getDefaultGeometryAttributeName());
+            type.remove(fad.getName());
+            EditableFeatureAttributeDescriptor efad =
+                type.add(fad.getName(), fad.getType(), fad.getSize());
+            efad.setDefaultValue(fad.getDefaultValue());
+            efad.setGeometryType(geometryType);
+            efad.setPrecision(fad.getPrecision());
+            type.setDefaultGeometryAttributeName(fad.getName());
+            params.setDefaultFeatureType(type);
+
+            DataManager manager = DALLocator.getDataManager();
+
+            manager.newStore(explorerName, providerName, params, true);
+            FeatureStore target =
+                (FeatureStore) manager.openStore(providerName, params);
+
+            FeatureType targetType = target.getDefaultFeatureType();
+
+            taskStatus.setRangeOfValues(0, featureSet.getSize());
+
+            target.edit(FeatureStore.MODE_APPEND);
+            it = featureSet.fastIterator();
+            int featureCount = 0;
+            int geometryattribute =
+                featureSet.getDefaultFeatureType()
+                    .getDefaultGeometryAttributeIndex();
+
+            while (it.hasNext()) {
+                Feature feature = (Feature) it.next();
+                if (checkType
+                    && (feature.getGeometry(geometryattribute).getType() != geometryType)) {
+                    continue;
+                }
+
+                target.insert(target.createNewFeature(targetType, feature));
+
+                featureCount++;
+                this.taskStatus.setCurValue(featureCount);
+
+                if (this.taskStatus.isCancellationRequested()) {
+                    return;
+                }
+            }
+            target.finishEditing();
+            target.dispose();
+        } catch (DataException e) {
+            throw new ExporttoServiceException(e);
+        } catch (ValidateDataParametersException e) {
+            throw new ExporttoServiceException(e);
+        } finally {
+            DisposeUtils.dispose(it);
+        }
+    }
+
+    private void finishAction(String layerName,
+        NewFeatureStoreParameters newFeatureStoreParameters) {
+        if (exporttoServiceFinishAction != null) {
+            exporttoServiceFinishAction.finished(layerName,
+                newFeatureStoreParameters);
+        }
+    }
+
+    public void setFinishAction(
+        ExporttoServiceFinishAction exporttoServiceFinishAction) {
+        this.exporttoServiceFinishAction = exporttoServiceFinishAction;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeService.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProviderFactory.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProviderFactory.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProviderFactory.java	(revision 38300)
@@ -0,0 +1,60 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.shape;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.prov.file.AbstractExporttoFileProviderFactory;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.service.spi.Provider;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Factory of file {@link ExportoProvider} objects.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoShapeProviderFactory extends
+    AbstractExporttoFileProviderFactory {
+
+    private static final String PROVIDER_NAME = "Shape";
+
+    public ExporttoShapeProviderFactory() {
+        super(new int[] { ExporttoSwingManager.VECTORIAL_TABLE_WITH_GEOMETRY });
+    }
+
+    public Provider create(DynObject parameters, ProviderServices services)
+        throws ServiceException {
+        return new ExporttoShapeProvider(services,
+            (FeatureStore) parameters.getDynValue(PARAMETER_FEATURESTORE),
+            (IProjection) parameters.getDynValue(PARAMETER_PROJECTION));
+    }
+
+    public String getName() {
+        return PROVIDER_NAME;
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProviderFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exporto package documentation</title>
+</head>
+<body>
+
+	<p>Exporto provider which gets Exporto from a file.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProvider.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProvider.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProvider.java	(revision 38300)
@@ -0,0 +1,58 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.shape;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.swing.prov.file.AbstractExporttoFileProvider;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProvider;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Exporto provider which gets Exporto from a file.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoShapeProvider extends AbstractExporttoFileProvider
+    implements ExporttoSwingProvider {
+
+    /**
+     * Constructor.
+     * 
+     * @param providerServices
+     *            the services for the provider
+     * @param file
+     *            to get the Exporto from
+     */
+    public ExporttoShapeProvider(ProviderServices providerServices,
+        FeatureStore featureStore, IProjection projection) {
+        super(providerServices, featureStore, projection);
+    }
+
+    public ExporttoService createExporttoService() {
+        return new ExporttoShapeService(
+            selectFileOptionPanel.getSelectedFile(), featureStore, projection);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/src/main/java/org/gvsig/exportto/swing/prov/shape/ExporttoShapeProvider.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/pom.xml	(revision 38300)
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.swing.prov.shape</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.exportto.swing.prov.shape</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.swing.prov</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.swing.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.spi</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.file</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>
+            <classifier>spi</classifier>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+          <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.impl</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.ui</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+	</dependencies>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.shape
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/pom.xml	(revision 38300)
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.swing.prov.dxf</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.exportto.swing.prov.dxf</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.swing.prov</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.swing.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.spi</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.file</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>
+            <classifier>spi</classifier>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+          <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.impl</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.ui</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.file</artifactId>
+            <scope>compile</scope>
+        </dependency>
+	</dependencies>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exporto package documentation</title>
+</head>
+<body>
+
+	<p>Exporto provider which gets Exporto from a file.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProvider.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProvider.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProvider.java	(revision 38300)
@@ -0,0 +1,58 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.dxf;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.swing.prov.file.AbstractExporttoFileProvider;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProvider;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Exporto provider which gets Exporto from a file.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoDXFProvider extends AbstractExporttoFileProvider implements
+    ExporttoSwingProvider {
+
+    /**
+     * Constructor.
+     * 
+     * @param providerServices
+     *            the services for the provider
+     * @param file
+     *            to get the Exporto from
+     */
+    public ExporttoDXFProvider(ProviderServices providerServices,
+        FeatureStore featureStore, IProjection projection) {
+        super(providerServices, featureStore, projection);
+    }
+
+    public ExporttoService createExporttoService() {
+        return new ExporttoDXFService(selectFileOptionPanel.getSelectedFile(),
+            featureStore, projection);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProvider.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProviderLibrary.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProviderLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProviderLibrary.java	(revision 38300)
@@ -0,0 +1,56 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.dxf;
+
+import org.gvsig.exportto.swing.ExporttoSwingLibrary;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+import org.gvsig.tools.service.spi.ProviderManager;
+
+/**
+ * Library to initialize and register the file Exporto provider
+ * implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoDXFProviderLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsServiceOf(ExporttoSwingLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+        // Nothing to do
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        ProviderManager providerManager =
+            ExporttoSwingProviderLocator.getManager();
+        providerManager.addProviderFactory(new ExporttoDXFProviderFactory());
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProviderLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFService.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFService.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFService.java	(revision 38300)
@@ -0,0 +1,70 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.dxf;
+
+import java.io.File;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.ExporttoServiceException;
+import org.gvsig.exportto.swing.prov.file.AbstractExporttoFileService;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
+import org.gvsig.tools.task.SimpleTaskStatus;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoDXFService extends AbstractExporttoFileService implements
+    ExporttoService {
+
+    private IProjection projection;
+
+    private NewFeatureStoreParameters newFeatureStoreParameters;
+
+    public ExporttoDXFService(File dxfFile, FeatureStore featureStore,
+        IProjection projection) {
+        super(dxfFile, featureStore);
+        this.projection = projection;
+        try {
+            this.open();
+        } catch (ExporttoServiceException e) {
+            ((SimpleTaskStatus) getTaskStatus()).message(e.getMessage());
+        }
+    }
+
+    public NewFeatureStoreParameters getNewFeatureStoreParameters() {
+        return newFeatureStoreParameters;
+    }
+
+    public void addParameters(
+        NewFeatureStoreParameters newFeatureStoreParameters) {
+        newFeatureStoreParameters.setDynValue("CRS", projection);
+    }
+
+    public String getFileExtension() {
+        return "dxf";
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFService.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProviderFactory.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProviderFactory.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProviderFactory.java	(revision 38300)
@@ -0,0 +1,59 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.dxf;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.prov.file.AbstractExporttoFileProviderFactory;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.service.spi.Provider;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Factory of file {@link ExportoProvider} objects.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoDXFProviderFactory extends
+    AbstractExporttoFileProviderFactory {
+
+    private static final String PROVIDER_NAME = "DXF";
+
+    public ExporttoDXFProviderFactory() {
+        super(new int[] { ExporttoSwingManager.VECTORIAL_TABLE_WITH_GEOMETRY });
+    }
+
+    public Provider create(DynObject parameters, ProviderServices services)
+        throws ServiceException {
+        return new ExporttoDXFProvider(services,
+            (FeatureStore) parameters.getDynValue(PARAMETER_FEATURESTORE),
+            (IProjection) parameters.getDynValue(PARAMETER_PROJECTION));
+    }
+
+    public String getName() {
+        return PROVIDER_NAME;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/java/org/gvsig/exportto/swing/prov/dxf/ExporttoDXFProviderFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 38300)
@@ -0,0 +1 @@
+org.gvsig.exportto.swing.prov.dxf.ExporttoDXFProviderLibrary
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.dxf
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/pom.xml	(revision 38300)
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.swing.prov.jdbc</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.exportto.swing.prov.jdbc</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.swing.prov</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.swing.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.spi</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>
+            <classifier>spi</classifier>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+          <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.impl</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.ui</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.db</artifactId>    
+            <scope>compile</scope>        
+        </dependency>   
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal.db</artifactId>    
+            <classifier>store.jdbc</classifier>
+            <scope>compile</scope>        
+        </dependency> 
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.geodb</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+	</dependencies>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/AbstractExporttoJDBCProviderFactory.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/AbstractExporttoJDBCProviderFactory.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/AbstractExporttoJDBCProviderFactory.java	(revision 38300)
@@ -0,0 +1,62 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.jdbc;
+
+import org.gvsig.fmap.dal.DataTypes;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.dynobject.DynClass;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.service.spi.ProviderFactory;
+
+/**
+ * Factory of file {@link ExportoProvider} objects.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public abstract class AbstractExporttoJDBCProviderFactory implements
+    ProviderFactory {
+
+    protected static final String PARAMETER_FEATURESTORE = "FeatureStore";
+    protected static final String PARAMETER_PROJECTION = "Projection";
+
+    protected DynClass parametersDefinition;
+
+    public DynObject createParameters() {
+        return ToolsLocator.getDynObjectManager().createDynObject(
+            parametersDefinition);
+    }
+
+    public abstract String getDescription();
+
+    public void initialize() {
+        parametersDefinition =
+            ToolsLocator.getDynObjectManager().createDynClass(getName(),
+                getDescription());
+        parametersDefinition.addDynField(PARAMETER_FEATURESTORE)
+            .setType(DataTypes.OBJECT).setMandatory(true)
+            .setClassOfValue(FeatureStore.class);
+        parametersDefinition.addDynField(PARAMETER_PROJECTION)
+            .setType(DataTypes.CRS).setMandatory(false);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/AbstractExporttoJDBCProviderFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exporto package documentation</title>
+</head>
+<body>
+
+	<p>Exporto provider which gets Exporto from a file.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/AbstractSelectTextPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/AbstractSelectTextPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/AbstractSelectTextPanel.java	(revision 38300)
@@ -0,0 +1,60 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.jdbc.panel;
+
+import java.awt.BorderLayout;
+
+import javax.swing.JTextField;
+
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderPanel;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public abstract class AbstractSelectTextPanel extends
+    ExporttoSwingProviderPanel {
+
+    private static final long serialVersionUID = -6179384073023096591L;
+
+    private JTextField textField = null;
+
+    public AbstractSelectTextPanel() {
+        super();
+        initializeComponents();
+    }
+
+    private void initializeComponents() {
+        this.setLayout(new BorderLayout());
+        textField = new JTextField();
+        add(textField, BorderLayout.NORTH);
+    }
+
+    public String getText() {
+        String field = textField.getText();
+        if ((field == null) || (field.equals(""))) {
+            return null;
+        }
+        return field;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/AbstractSelectTextPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/SelectTableNamePanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/SelectTableNamePanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/SelectTableNamePanel.java	(revision 38300)
@@ -0,0 +1,53 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.jdbc.panel;
+
+import org.gvsig.exportto.swing.ExporttoSwingLocator;
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class SelectTableNamePanel extends AbstractSelectTextPanel {
+
+    private static final long serialVersionUID = 6269512983586358017L;
+
+    private static final ExporttoSwingManager EXPORTTO_SWING_MANAGER =
+        ExporttoSwingLocator.getSwingManager();
+
+    @Override
+    public String getPanelTitle() {
+        return EXPORTTO_SWING_MANAGER.getTranslation("intro_tablename");
+    }
+
+    @Override
+    public boolean isValidPanel() throws ExporttoPanelValidationException {
+        if (getText() == null || getText().equals("")) {
+            throw new ExporttoPanelValidationException(
+                "The table cannot be empty");
+        }
+        return true;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/SelectTableNamePanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/SelectPkPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/SelectPkPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/SelectPkPanel.java	(revision 38300)
@@ -0,0 +1,49 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.jdbc.panel;
+
+import org.gvsig.exportto.swing.ExporttoSwingLocator;
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class SelectPkPanel extends AbstractSelectTextPanel {
+
+    private static final long serialVersionUID = 2652404227373508779L;
+
+    private static final ExporttoSwingManager EXPORTTO_SWING_MANAGER =
+        ExporttoSwingLocator.getSwingManager();
+
+    @Override
+    public String getPanelTitle() {
+        return EXPORTTO_SWING_MANAGER.getTranslation("input_pk_field_name");
+    }
+
+    @Override
+    public boolean isValidPanel() throws ExporttoPanelValidationException {
+        return true;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/SelectPkPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/ConnectionPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/ConnectionPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/ConnectionPanel.java	(revision 38300)
@@ -0,0 +1,112 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.jdbc.panel;
+
+import java.awt.BorderLayout;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.exportto.swing.ExporttoSwingLocator;
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderPanel;
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.DataServerExplorerParameters;
+import org.gvsig.fmap.dal.exception.DataException;
+import org.gvsig.fmap.dal.serverexplorer.db.DBServerExplorerParameters;
+import org.gvsig.geodb.vectorialdb.ConnectionSettings;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ConnectionPanel extends ExporttoSwingProviderPanel {
+
+    private static final long serialVersionUID = -3278172717881233447L;
+
+    private static final Logger LOG = LoggerFactory
+        .getLogger(ConnectionPanel.class);
+
+    private static final DataManager DATA_MANAGER = DALLocator.getDataManager();
+    private static final ExporttoSwingManager EXPORTTO_SWING_MANAGER =
+        ExporttoSwingLocator.getSwingManager();
+
+    private org.gvsig.geodb.vectorialdb.ConnectionPanel connectionPanel = null;
+
+    public ConnectionPanel() {
+        super();
+        initializeComponents();
+    }
+
+    private void initializeComponents() {
+        this.setLayout(new BorderLayout());
+        connectionPanel = new org.gvsig.geodb.vectorialdb.ConnectionPanel();
+        add(connectionPanel, BorderLayout.CENTER);
+        initialiceExplorers();
+    }
+
+    @SuppressWarnings("rawtypes")
+    private void initialiceExplorers() {
+        List explorers = DATA_MANAGER.getExplorerProviders();
+        Iterator iter = explorers.iterator();
+        DataServerExplorerParameters exParam = null;
+        String name;
+        List<String> dbExplores = new ArrayList<String>(explorers.size());
+        while (iter.hasNext()) {
+            name = (String) iter.next();
+            try {
+                exParam = DATA_MANAGER.createServerExplorerParameters(name);
+            } catch (DataException e) {
+                LOG.error("Error initilializing the explorer", e);
+            }
+            if (exParam instanceof DBServerExplorerParameters) {
+                dbExplores.add(name);
+            }
+        }
+
+        connectionPanel.setDrivers(dbExplores.toArray(new String[dbExplores
+            .size()]));
+    }
+
+    @Override
+    public String getPanelTitle() {
+        return EXPORTTO_SWING_MANAGER.getTranslation("connection_params");
+    }
+
+    @Override
+    public boolean isValidPanel() throws ExporttoPanelValidationException {
+        // ConnectionSettings connectionSettings = getConnectionSettings();
+        // Check parameters...
+        return true;
+    }
+
+    public ConnectionSettings getConnectionSettings() {
+        return connectionPanel.getConnectionSettings();
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/panel/ConnectionPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/AbstractExporttoJDBCProvider.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/AbstractExporttoJDBCProvider.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/AbstractExporttoJDBCProvider.java	(revision 38300)
@@ -0,0 +1,114 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.jdbc;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.swing.prov.jdbc.panel.ConnectionPanel;
+import org.gvsig.exportto.swing.prov.jdbc.panel.SelectPkPanel;
+import org.gvsig.exportto.swing.prov.jdbc.panel.SelectTableNamePanel;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProvider;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderPanel;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.geodb.vectorialdb.ConnectionSettings;
+import org.gvsig.tools.service.spi.AbstractProvider;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Exporto provider which gets Exporto from a file.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public abstract class AbstractExporttoJDBCProvider extends AbstractProvider
+    implements ExporttoSwingProvider {
+
+    protected SelectTableNamePanel selectTableNamePanel = null;
+    protected SelectPkPanel selectPkPanel = null;
+    protected ConnectionPanel connectionPanel = null;
+
+    protected FeatureStore featureStore;
+    protected IProjection projection;
+
+    /**
+     * Constructor.
+     * 
+     * @param providerServices
+     *            the services for the provider
+     * @param file
+     *            to get the Exporto from
+     */
+    public AbstractExporttoJDBCProvider(ProviderServices providerServices,
+        FeatureStore featureStore, IProjection projection) {
+        super(providerServices);
+        this.featureStore = featureStore;
+        this.projection = projection;
+
+        selectTableNamePanel = new SelectTableNamePanel();
+        selectPkPanel = new SelectPkPanel();
+        connectionPanel = new ConnectionPanel();
+    }
+
+    public int getPanelCount() {
+        return 3;
+    }
+
+    public ExporttoSwingProviderPanel getPanelAt(int index) {
+        switch (index) {
+        case 0:
+            return selectTableNamePanel;
+        case 1:
+            return selectPkPanel;
+        case 2:
+            return connectionPanel;
+        }
+        return null;
+    }
+
+    public ExporttoService createExporttoService() {
+        ConnectionSettings connectionSettings =
+            connectionPanel.getConnectionSettings();
+
+        int port = -1;
+        if (connectionSettings.getPort() != null
+            && connectionSettings.getPort().length() > 0) {
+            port = Integer.valueOf(connectionSettings.getPort());
+        }
+
+        String schema = null;
+        if (connectionSettings.getSchema() != null
+            && connectionSettings.getSchema().length() > 0) {
+            schema = connectionSettings.getSchema();
+        }
+
+        return new ExporrtoJDBCService(featureStore,
+            connectionSettings.getDb(), schema, selectTableNamePanel.getText(),
+            selectPkPanel.getText(), connectionSettings.getUser(),
+            connectionSettings.getPassw(), connectionSettings.getHost(), port,
+            getExplorerName(), getStoreName());
+    }
+
+    public abstract String getStoreName();
+
+    public abstract String getExplorerName();
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/AbstractExporttoJDBCProvider.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/ExporrtoJDBCService.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/ExporrtoJDBCService.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/ExporrtoJDBCService.java	(revision 38300)
@@ -0,0 +1,209 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.prov.jdbc;
+
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.ExporttoServiceException;
+import org.gvsig.exportto.ExporttoServiceFinishAction;
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.DataTypes;
+import org.gvsig.fmap.dal.exception.DataException;
+import org.gvsig.fmap.dal.exception.InitializeException;
+import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
+import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
+import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor;
+import org.gvsig.fmap.dal.feature.EditableFeatureType;
+import org.gvsig.fmap.dal.feature.Feature;
+import org.gvsig.fmap.dal.feature.FeatureSet;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.fmap.dal.feature.FeatureType;
+import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
+import org.gvsig.fmap.dal.store.db.DBStoreParameters;
+import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer;
+import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters;
+import org.gvsig.tools.dispose.DisposableIterator;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.task.AbstractMonitorableTask;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporrtoJDBCService extends AbstractMonitorableTask implements
+    ExporttoService {
+
+    private static final DataManager DATA_MANAGER = DALLocator.getDataManager();
+
+    private String dbName = null;
+    private String schema = null;
+    private String tableName = null;
+    private String pkField = null;
+    private String userName = null;
+    private String password = null;
+    private String host = null;
+    private int port = -1;
+    private String explorerName = null;
+    private String storeName = null;
+
+    private NewFeatureStoreParameters newFeatureStoreParameters;
+    private JDBCServerExplorer explorer;
+    private FeatureStore featureStore;
+
+    private ExporttoServiceFinishAction exporttoServiceFinishAction = null;
+
+    /**
+     * @param taskName
+     * @throws ServiceException
+     */
+    protected ExporrtoJDBCService(FeatureStore featureStore, String dbName,
+        String schema, String tableName, String pkField, String userName,
+        String password, String host, int port, String explorerName,
+        String storeName) {
+        super("Export to JDBC");
+        this.featureStore = featureStore;
+        this.dbName = dbName;
+        this.schema = schema;
+        this.tableName = tableName;
+        this.pkField = pkField;
+        this.userName = userName;
+        this.password = password;
+        this.host = host;
+        this.port = port;
+        this.storeName = storeName;
+        this.explorerName = explorerName;
+    }
+
+    public void export(FeatureSet featureSet) throws ExporttoServiceException {
+
+        initializeParams(featureSet);
+
+        DisposableIterator it1 = null;
+        FeatureStore target = null;
+        try {
+            EditableFeatureType fType =
+                featureStore.getDefaultFeatureType().getEditable();
+            if (pkField != null) {
+                EditableFeatureAttributeDescriptor pk =
+                    fType.add(pkField, DataTypes.LONG);
+                pk.setIsPrimaryKey(true);
+                pk.setIsAutomatic(true);
+            }
+
+            newFeatureStoreParameters.setDefaultFeatureType(fType);
+            explorer.add(storeName, newFeatureStoreParameters, true);
+
+            target =
+                (FeatureStore) DATA_MANAGER.openStore(storeName,
+                    newFeatureStoreParameters);
+            FeatureType targetType = target.getDefaultFeatureType();
+
+            target.edit(FeatureStore.MODE_APPEND);
+
+            taskStatus.setRangeOfValues(0, featureSet.getSize());
+            int featureCount = 1;
+
+            it1 = featureSet.fastIterator();
+            while (it1.hasNext()) {
+                Feature feature = (Feature) it1.next();
+                target.insert(target.createNewFeature(targetType, feature));
+
+                this.taskStatus.setCurValue(featureCount);
+
+                if (this.taskStatus.isCancellationRequested()) {
+                    return;
+                }
+                featureCount++;
+            }
+            target.finishEditing();
+
+            if (exporttoServiceFinishAction != null) {
+                exporttoServiceFinishAction.finished(
+                    newFeatureStoreParameters.getDataStoreName(),
+                    newFeatureStoreParameters);
+            }
+
+        } catch (Exception e) {
+            taskStatus.message(e.getMessage());
+            throw new ExporttoServiceException(e);
+        } finally {
+            if (it1 != null) {
+                it1.dispose();
+            }
+            featureSet.dispose();
+            if (target != null) {
+                target.dispose();
+            }
+            this.taskStatus.terminate();
+            this.taskStatus.remove();
+        }
+    }
+
+    private void initializeParams(FeatureSet featureSet)
+        throws ExporttoServiceException {
+        JDBCServerExplorerParameters explorerParam;
+        try {
+            explorerParam =
+                (JDBCServerExplorerParameters) DATA_MANAGER
+                    .createServerExplorerParameters(explorerName);
+
+            explorerParam.setHost(host);
+            if (port > -1) {
+                explorerParam.setPort(port);
+            }
+            explorerParam.setDBName(dbName);
+            explorerParam.setUser(userName);
+            explorerParam.setPassword(password);
+            if (schema != null && schema.length() > 0) {
+                explorerParam.setSchema(schema);
+            }
+
+            explorer =
+                (JDBCServerExplorer) DATA_MANAGER.openServerExplorer(
+                    explorerName, explorerParam);
+
+            newFeatureStoreParameters =
+                (NewFeatureStoreParameters) explorer.getAddParameters();
+
+            ((DBStoreParameters) newFeatureStoreParameters).setTable(tableName);
+            ((DBStoreParameters) newFeatureStoreParameters)
+                .setDefaultGeometryField(featureSet.getDefaultFeatureType()
+                    .getDefaultGeometryAttributeName());
+
+        } catch (InitializeException e) {
+            throw new ExporttoServiceException(e);
+        } catch (ProviderNotRegisteredException e) {
+            throw new ExporttoServiceException(e);
+        } catch (ValidateDataParametersException e) {
+            throw new ExporttoServiceException(e);
+        } catch (DataException e) {
+            throw new ExporttoServiceException(e);
+        }
+    }
+
+    public void setFinishAction(
+        ExporttoServiceFinishAction exporttoServiceFinishAction) {
+        this.exporttoServiceFinishAction = exporttoServiceFinishAction;
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/ExporrtoJDBCService.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/pom.xml	(revision 38300)
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.swing.prov.postgresql</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.exportto.swing.prov.postgresql</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.swing.prov</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+	<dependencies>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.lib.api</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.swing.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.spi</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.jdbc</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>
+            <classifier>spi</classifier>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+          <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.impl</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.ui</artifactId>
+            <scope>compile</scope>
+        </dependency>      
+	</dependencies>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 38300)
@@ -0,0 +1 @@
+org.gvsig.exportto.swing.prov.postgresql.ExporttoPostgreSQLProviderLibrary
\ No newline at end of file
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProviderLibrary.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProviderLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProviderLibrary.java	(revision 38300)
@@ -0,0 +1,57 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.postgresql;
+
+import org.gvsig.exportto.swing.ExporttoSwingLibrary;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+import org.gvsig.tools.service.spi.ProviderManager;
+
+/**
+ * Library to initialize and register the file Exporto provider
+ * implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoPostgreSQLProviderLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsServiceOf(ExporttoSwingLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+        // Nothing to do
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        ProviderManager providerManager =
+            ExporttoSwingProviderLocator.getManager();
+        providerManager
+            .addProviderFactory(new ExporttoPostgreSQLProviderFactory());
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProviderLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProviderFactory.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProviderFactory.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProviderFactory.java	(revision 38300)
@@ -0,0 +1,61 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.postgresql;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.spi.AbstractExporttoProviderFactory;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.service.spi.Provider;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Factory of file {@link ExportoProvider} objects.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoPostgreSQLProviderFactory extends
+    AbstractExporttoProviderFactory {
+
+    private static final String PROVIDER_NAME = "PostgreSQL";
+
+    public ExporttoPostgreSQLProviderFactory() {
+        super(new int[] {
+            ExporttoSwingManager.VECTORIAL_TABLE_WITHOUT_GEOMETRY,
+            ExporttoSwingManager.VECTORIAL_TABLE_WITH_GEOMETRY });
+    }
+
+    public Provider create(DynObject parameters, ProviderServices services)
+        throws ServiceException {
+        return new ExporttoPostgreSQLProvider(services,
+            (FeatureStore) parameters.getDynValue(PARAMETER_FEATURESTORE),
+            (IProjection) parameters.getDynValue(PARAMETER_PROJECTION));
+    }
+
+    public String getName() {
+        return PROVIDER_NAME;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProviderFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exporto package documentation</title>
+</head>
+<body>
+
+	<p>Exporto provider which gets Exporto from a file.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProvider.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProvider.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProvider.java	(revision 38300)
@@ -0,0 +1,62 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.postgresql;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.swing.prov.jdbc.AbstractExporttoJDBCProvider;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProvider;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Exporto provider which gets Exporto from a file.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoPostgreSQLProvider extends AbstractExporttoJDBCProvider
+    implements ExporttoSwingProvider {
+
+    /**
+     * Constructor.
+     * 
+     * @param providerServices
+     *            the services for the provider
+     * @param file
+     *            to get the Exporto from
+     */
+    public ExporttoPostgreSQLProvider(ProviderServices providerServices,
+        FeatureStore featureStore, IProjection projection) {
+        super(providerServices, featureStore, projection);
+    }
+
+    @Override
+    public String getStoreName() {
+        return "PostgreSQL";
+    }
+
+    @Override
+    public String getExplorerName() {
+        return "PostgreSQLExplorer";
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql/src/main/java/org/gvsig/exportto/swing/prov/postgresql/ExporttoPostgreSQLProvider.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.postgresql
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 38300)
@@ -0,0 +1 @@
+org.gvsig.exportto.swing.prov.mysql.ExporttoMySQLProviderLibrary
\ No newline at end of file
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exporto package documentation</title>
+</head>
+<body>
+
+	<p>Exporto provider which gets Exporto from a file.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProvider.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProvider.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProvider.java	(revision 38300)
@@ -0,0 +1,62 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.mysql;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.swing.prov.jdbc.AbstractExporttoJDBCProvider;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProvider;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Exporto provider which gets Exporto from a file.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoMySQLProvider extends AbstractExporttoJDBCProvider
+    implements ExporttoSwingProvider {
+
+    /**
+     * Constructor.
+     * 
+     * @param providerServices
+     *            the services for the provider
+     * @param file
+     *            to get the Exporto from
+     */
+    public ExporttoMySQLProvider(ProviderServices providerServices,
+        FeatureStore featureStore, IProjection projection) {
+        super(providerServices, featureStore, projection);
+    }
+
+    @Override
+    public String getStoreName() {
+        return "MySQL";
+    }
+
+    @Override
+    public String getExplorerName() {
+        return "MySQLExplorer";
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProvider.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProviderLibrary.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProviderLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProviderLibrary.java	(revision 38300)
@@ -0,0 +1,56 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.mysql;
+
+import org.gvsig.exportto.swing.ExporttoSwingLibrary;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+import org.gvsig.tools.service.spi.ProviderManager;
+
+/**
+ * Library to initialize and register the file Exporto provider
+ * implementation.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoMySQLProviderLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsServiceOf(ExporttoSwingLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+        // Nothing to do
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        ProviderManager providerManager =
+            ExporttoSwingProviderLocator.getManager();
+        providerManager.addProviderFactory(new ExporttoMySQLProviderFactory());
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProviderLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProviderFactory.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProviderFactory.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProviderFactory.java	(revision 38300)
@@ -0,0 +1,61 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.prov.mysql;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.spi.AbstractExporttoProviderFactory;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.service.spi.Provider;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * Factory of file {@link ExportoProvider} objects.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoMySQLProviderFactory extends
+    AbstractExporttoProviderFactory {
+
+    private static final String PROVIDER_NAME = "MySQL";
+
+    public ExporttoMySQLProviderFactory() {
+        super(new int[] {
+            ExporttoSwingManager.VECTORIAL_TABLE_WITHOUT_GEOMETRY,
+            ExporttoSwingManager.VECTORIAL_TABLE_WITH_GEOMETRY });
+    }
+
+    public Provider create(DynObject parameters, ProviderServices services)
+        throws ServiceException {
+        return new ExporttoMySQLProvider(services,
+            (FeatureStore) parameters.getDynValue(PARAMETER_FEATURESTORE),
+            (IProjection) parameters.getDynValue(PARAMETER_PROJECTION));
+    }
+
+    public String getName() {
+        return PROVIDER_NAME;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/src/main/java/org/gvsig/exportto/swing/prov/mysql/ExporttoMySQLProviderFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/pom.xml	(revision 38300)
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.swing.prov.mysql</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.exportto.swing.prov.mysql</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.swing.prov</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.swing.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.spi</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.jdbc</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>
+            <classifier>spi</classifier>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+          <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.impl</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.ui</artifactId>
+            <scope>compile</scope>
+        </dependency>
+	</dependencies>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.mysql
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/pom.xml	(revision 38300)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.swing.prov</artifactId>
+	<packaging>pom</packaging>
+	<name>org.gvsig.exportto.swing.prov</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.swing</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+
+	<modules>
+		<module>org.gvsig.exportto.swing.prov.generic</module>	
+		<module>org.gvsig.exportto.swing.prov.file</module>  
+		<module>org.gvsig.exportto.swing.prov.shape</module>    
+		<module>org.gvsig.exportto.swing.prov.dxf</module>  
+	    <module>org.gvsig.exportto.swing.prov.jdbc</module>  
+        <module>org.gvsig.exportto.swing.prov.postgresql</module>    
+        <module>org.gvsig.exportto.swing.prov.mysql</module>  	  
+        <module>org.gvsig.exportto.swing.prov.dbf</module>      
+	</modules>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/pom.xml	(revision 38300)
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.swing.api</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.exportto.swing.api</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.swing</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.lib.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency> 
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.swing.api</artifactId>
+            <scope>compile</scope>
+        </dependency> 
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency>      
+	</dependencies>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-jar-plugin</artifactId>
+				<configuration>
+				</configuration>
+				<executions>
+				<!--
+				Generates a jar file only with the test classes
+				-->
+					<execution>
+						<goals>
+							<goal>test-jar</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+</project>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/ExporttoSwingManagerTest.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/ExporttoSwingManagerTest.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/ExporttoSwingManagerTest.java	(revision 38300)
@@ -0,0 +1,85 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing;
+
+import org.gvsig.exportto.ExporttoLocator;
+import org.gvsig.exportto.ExporttoManager;
+import org.gvsig.fmap.crs.CRSFactory;
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.DataStoreParameters;
+import org.gvsig.fmap.dal.exception.InitializeException;
+import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
+import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase;
+import org.gvsig.tools.service.ServiceException;
+
+/**
+ * API compatibility tests for {@link ExporttoSwingManager} implementations.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public abstract class ExporttoSwingManagerTest extends
+    AbstractLibraryAutoInitTestCase {
+
+    protected ExporttoManager manager;
+    protected ExporttoSwingManager swingManager;
+    protected DataManager dataManager = null;
+
+    @Override
+    protected void doSetUp() throws Exception {
+        manager = ExporttoLocator.getManager();
+        swingManager = ExporttoSwingLocator.getSwingManager();
+        dataManager = DALLocator.getDataManager();
+    }
+
+    public void testGetManager() {
+        assertEquals(manager, swingManager.getManager());
+    }
+
+    public void testCreateWindowManager() {
+        ExporttoWindowManager windowManager = null;
+        swingManager.registerWindowManager(windowManager);
+        assertEquals(swingManager.getWindowManager(), windowManager);
+    }
+
+    public void testCreationJExporttoServicePanel() throws ServiceException,
+        ValidateDataParametersException, InitializeException,
+        ProviderNotRegisteredException {
+
+        JExporttoServicePanel panel1 =
+            swingManager.createExportto(createMemoryFeatureStore(),
+                CRSFactory.getCRS("EPSG:4326"));
+
+        assertNotNull(panel1);
+    }
+
+    private FeatureStore createMemoryFeatureStore() throws InitializeException,
+        ProviderNotRegisteredException, ValidateDataParametersException {
+        DataStoreParameters memoryParameters =
+            dataManager.createStoreParameters("Memory");
+        return (FeatureStore) dataManager.openStore("Memory", memoryParameters);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/ExporttoSwingManagerTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/ExporttoWindowManagerTest.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/ExporttoWindowManagerTest.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/ExporttoWindowManagerTest.java	(revision 38300)
@@ -0,0 +1,43 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing;
+
+import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase;
+
+/**
+ * API compatibility tests for {@link ExporttoWindowManager} implementations.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public abstract class ExporttoWindowManagerTest extends
+    AbstractLibraryAutoInitTestCase {
+
+    @Override
+    protected void doSetUp() throws Exception {
+
+    }
+
+    public void testUno() {
+        // FIXME: fltan por implementar
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/ExporttoWindowManagerTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/JExporttoServicePanelTest.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/JExporttoServicePanelTest.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/JExporttoServicePanelTest.java	(revision 38300)
@@ -0,0 +1,74 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing;
+
+import org.gvsig.exportto.ExporttoManager;
+import org.gvsig.exportto.ExporttoServiceException;
+import org.gvsig.fmap.crs.CRSFactory;
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.DataStoreParameters;
+import org.gvsig.fmap.dal.exception.InitializeException;
+import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
+import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase;
+import org.gvsig.tools.service.ServiceException;
+
+/**
+ * API compatibility tests for {@link JExporttoServicePanel} implementations.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public abstract class JExporttoServicePanelTest extends
+    AbstractLibraryAutoInitTestCase {
+
+    protected ExporttoManager manager;
+    protected ExporttoSwingManager swingManager;
+    protected DataManager dataManager = null;
+
+    @Override
+    protected void doSetUp() throws Exception {
+        swingManager = ExporttoSwingLocator.getSwingManager();
+        manager = swingManager.getManager();
+        dataManager = DALLocator.getDataManager();
+    }
+
+    public void testJExporttoServicePanel() throws ServiceException,
+        ExporttoServiceException, ValidateDataParametersException,
+        InitializeException, ProviderNotRegisteredException {
+        assertNotNull(swingManager);
+
+        JExporttoServicePanel panel =
+            swingManager.createExportto(createMemoryFeatureStore(),
+                CRSFactory.getCRS("EPSG:4326"));
+        assertNotNull(panel);
+    }
+
+    private FeatureStore createMemoryFeatureStore() throws InitializeException,
+        ProviderNotRegisteredException, ValidateDataParametersException {
+        DataStoreParameters memoryParameters =
+            dataManager.createStoreParameters("Memory");
+        return (FeatureStore) dataManager.openStore("Memory", memoryParameters);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/test/java/org/gvsig/exportto/swing/JExporttoServicePanelTest.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 38300)
@@ -0,0 +1 @@
+org.gvsig.exportto.swing.ExporttoSwingLibrary
\ No newline at end of file
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/JExporttoServicePanelListener.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/JExporttoServicePanelListener.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/JExporttoServicePanelListener.java	(revision 38300)
@@ -0,0 +1,39 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing;
+
+/**
+ * Listener for the {@link JExporttoServicePanel} that provides
+ * the method to manage the panel. The implementation of this
+ * interface has to be provided by the consumer of this library.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public interface JExporttoServicePanelListener {
+
+    /**
+     * This method is thrown when the close button is clicked.
+     */
+    public void close();
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/JExporttoServicePanelListener.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingManager.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingManager.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingManager.java	(revision 38300)
@@ -0,0 +1,136 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.ExporttoManager;
+import org.gvsig.exportto.ExporttoService;
+import org.gvsig.exportto.ExporttoServiceFinishAction;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+
+/**
+ * This class is responsible of the management of the library's swing user
+ * interface. It is the swing library's main entry point, and provides all the
+ * services to manage library swing components.
+ * 
+ * @see ExporttoWindowManager
+ * @see JExporttoServicePanel
+ * @author gvSIG team
+ * @version $Id$
+ */
+public interface ExporttoSwingManager {
+
+    public static final int VECTORIAL_TABLE_WITH_GEOMETRY = 0;
+    public static final int VECTORIAL_TABLE_WITHOUT_GEOMETRY = 1;
+
+    /**
+     * Returns the panel associated to a {@link ExporttoService}.
+     * 
+     * @param featureStore
+     *            the source feature store that is going to be copied.
+     * @param projection
+     *            the destination projection for the output.
+     * @return a {@link JExporttoServicePanel} with the panel of the
+     *         {@link ExporttoService}.
+     * @see JExporttoServicePanel
+     * @see ExporttoService
+     */
+    public JExporttoServicePanel createExportto(FeatureStore featureStore,
+        IProjection projection);
+
+    /**
+     * Returns the panel associated to a {@link ExporttoService}.
+     * 
+     * @param featureStore
+     *            the source feature store that is going to be copied.
+     * @param projection
+     *            the destination projection for the output.
+     * @param exporttoServiceFinishAction
+     *            the listener to manage the panel events.
+     * @return a {@link JExporttoServicePanel} with the panel of the
+     *         {@link ExporttoService}
+     * @see JExporttoServicePanel
+     * @see ExporttoService
+     */
+    public JExporttoServicePanel createExportto(FeatureStore featureStore,
+        IProjection projection,
+        ExporttoServiceFinishAction exporttoServiceFinishAction);
+
+    /**
+     * Returns the panel associated to a {@link ExporttoService}.
+     * 
+     * @param featureStore
+     *            the source feature store that is going to be copied.
+     * @param projection
+     *            the destination projection for the output.
+     * @param exporttoServiceFinishAction
+     *            the listener to manage the panel events.
+     * @param providerTypes
+     *            a set of the types that have to be displayed.
+     * @return a {@link JExporttoServicePanel} with the panel of the
+     *         {@link ExporttoService}
+     * @see JExporttoServicePanel
+     * @see ExporttoService
+     */
+    public JExporttoServicePanel createExportto(FeatureStore featureStore,
+        IProjection projection,
+        ExporttoServiceFinishAction exporttoServiceFinishAction,
+        int[] providerTypes);
+
+    /**
+     * Returns the {@link ExporttoManager}.
+     * 
+     * @return {@link ExporttoManager}
+     * @see {@link ExporttoManager}
+     */
+    public ExporttoManager getManager();
+
+    /**
+     * Returns the translation of a string.
+     * 
+     * @param key
+     *            String to translate
+     * @return a String with the translation of the string passed by parameter
+     */
+    public String getTranslation(String key);
+
+    /**
+     * Registers a new instance of a WindowManager which provides services to
+     * the management of the application windows.
+     * 
+     * @param manager
+     *            {@link ExporttoWindowManager} to register in the
+     *            ScriptingUIManager.
+     * @see ExporttoWindowManager
+     */
+    public void registerWindowManager(ExporttoWindowManager manager);
+
+    /**
+     * Returns the {@link ExporttoWindowManager}.
+     * 
+     * @return {@link ExporttoWindowManager}
+     * @see {@link ExporttoWindowManager}
+     */
+    public ExporttoWindowManager getWindowManager();
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingManager.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoWindowManager.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoWindowManager.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoWindowManager.java	(revision 38300)
@@ -0,0 +1,50 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing;
+
+/**
+ * Responsible of the window management to show the panels of the
+ * Exportto swing library.
+ * 
+ * @see ExporttoSwingManager
+ * @see JExporttoServicePanel
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public interface ExporttoWindowManager {
+
+    public static final int MODE_DIALOG = 1;
+    public static final int MODE_WINDOW = 2;
+    public static final int MODE_TOOL = 3;
+
+    /**
+     * Inserts a Panel in a window with a characteristic properties.
+     * 
+     * @param panel
+     *            JPanel with the content of the window
+     * @param title
+     *            String with the title of the window
+     * @param mode
+     *            int that defines the type of window
+     */
+    public void showWindow(JExporttoServicePanel panel, String title, int mode);
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoWindowManager.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/package.html	(revision 38300)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exportto package documentation</title>
+</head>
+<body>
+
+	<p>Exportto swing library API.</p>
+	
+	<p>
+	It allows to get swing panels to show Exportto, and to include them in windows.
+	</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/JExporttoServicePanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/JExporttoServicePanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/JExporttoServicePanel.java	(revision 38300)
@@ -0,0 +1,56 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing;
+
+import javax.swing.JPanel;
+
+import org.gvsig.exportto.ExporttoService;
+
+/**
+ * A panel to show a {@link ExporttoService}.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public abstract class JExporttoServicePanel extends JPanel {
+
+    private static final long serialVersionUID = 114900538340226231L;
+
+    /**
+     * @param exporttoServicePanelListener
+     *            sets a listener that can be used to execute the panel events.
+     */
+    public abstract void setExporttoServicePanelListener(
+        JExporttoServicePanelListener exporttoServicePanelListener);
+
+    /**
+     * returns status of panel.
+     * Values are:
+     * - JOptionPane.OK_OPTION
+     * - JOptionPane.CANCEL_OPTION
+     * - JOptionPane.UNDEFINED_CONDITION
+     * 
+     * @return
+     */
+    public abstract int getStatus();
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/JExporttoServicePanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingLocator.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingLocator.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingLocator.java	(revision 38300)
@@ -0,0 +1,93 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing;
+
+import org.gvsig.tools.locator.BaseLocator;
+
+/**
+ * This locator is the entry point for the Exportto swing library,
+ * providing access to all Exportto swing services through the
+ * {@link ExporttoSwingManager} .
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class ExporttoSwingLocator extends BaseLocator {
+
+    /**
+     * Exportto swing manager name.
+     */
+    public static final String SWING_MANAGER_NAME = "Exportto.swing.manager";
+
+    /**
+     * Exportto swing manager description.
+     */
+    public static final String SWING_MANAGER_DESCRIPTION = "Exportto UIManager";
+
+    private static final String LOCATOR_NAME = "Exportto.swing.locator";
+
+    /**
+     * Unique instance.
+     */
+    private static final ExporttoSwingLocator INSTANCE =
+        new ExporttoSwingLocator();
+
+    /**
+     * Return the singleton instance.
+     * 
+     * @return the singleton instance
+     */
+    public static ExporttoSwingLocator getInstance() {
+        return INSTANCE;
+    }
+
+    /**
+     * Return the Locator's name
+     * 
+     * @return a String with the Locator's name
+     */
+    public final String getLocatorName() {
+        return LOCATOR_NAME;
+    }
+
+    /**
+     * Registers the Class implementing the PersistenceManager interface.
+     * 
+     * @param clazz
+     *            implementing the PersistenceManager interface
+     */
+    public static void registerSwingManager(
+        Class<? extends ExporttoSwingManager> clazz) {
+        getInstance().register(SWING_MANAGER_NAME, SWING_MANAGER_DESCRIPTION,
+            clazz);
+    }
+
+    /**
+     * Gets the instance of the {@link ScriptingUIManager} registered.
+     * 
+     * @return {@link ScriptingUIManager}
+     */
+    public static ExporttoSwingManager getSwingManager() {
+        return (ExporttoSwingManager) getInstance().get(SWING_MANAGER_NAME);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingLocator.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingLibrary.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingLibrary.java	(revision 38300)
@@ -0,0 +1,59 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing;
+
+import org.gvsig.exportto.ExporttoLibrary;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+import org.gvsig.tools.locator.ReferenceNotRegisteredException;
+
+/**
+ * Library for Swing API initialization and configuration.
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class ExporttoSwingLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsAPI(ExporttoSwingLibrary.class);
+        require(ExporttoLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+        // Do nothing
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        // Validate there is any implementation registered.
+        ExporttoSwingManager manager = ExporttoSwingLocator.getSwingManager();
+        if (manager == null) {
+            throw new ReferenceNotRegisteredException(
+                ExporttoSwingLocator.SWING_MANAGER_NAME,
+                ExporttoSwingLocator.getInstance());
+        }
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/ExporttoSwingLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/preferences/ExporttoSwingPreferencesComponent.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/preferences/ExporttoSwingPreferencesComponent.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api/src/main/java/org/gvsig/exportto/swing/preferences/ExporttoSwingPreferencesComponent.java	(revision 38300)
@@ -0,0 +1,60 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.preferences;
+
+import java.util.Set;
+
+import org.gvsig.tools.swing.api.Component;
+
+/**
+ * API for the Export to swing preferences component panel.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public interface ExporttoSwingPreferencesComponent extends Component {
+
+    /**
+     * Returns the providers disabled by the user.
+     * 
+     * @return the providers disabled by the user
+     */
+    Set<?> getDisabledProviders();
+
+    /**
+     * Undoes all the user changes in the preferences.
+     */
+    void initializeDefaults();
+
+    /**
+     * Is the user has made any change in the preferences.
+     * 
+     * @return the user has made any change
+     */
+    boolean isValueChanged();
+
+    /**
+     * Tells the component the changes made by the user to the properties
+     * had been performed.
+     */
+    void setChangesApplied();
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.api
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/test/java/org/gvsig/exportto/swing/prov/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/test/java/org/gvsig/exportto/swing/prov/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/test/java/org/gvsig/exportto/swing/prov/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exporto package documentation</title>
+</head>
+<body>
+
+	<p>Exporto provider for tests.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/test/java/org/gvsig/exportto/swing/prov/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/AbstractExporttoProviderFactory.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/AbstractExporttoProviderFactory.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/AbstractExporttoProviderFactory.java	(revision 38300)
@@ -0,0 +1,105 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.spi;
+
+import org.gvsig.fmap.dal.DataTypes;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.i18n.Messages;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.dynobject.DynClass;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.service.ServiceException;
+
+/**
+ * Abstract parent class for {@link ExporttoSwingProviderFactory} implementation
+ * classes.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public abstract class AbstractExporttoProviderFactory implements
+    ExporttoSwingProviderFactory {
+
+    protected static final String PARAMETER_FEATURESTORE = "FeatureStore";
+    protected static final String PARAMETER_PROJECTION = "Projection";
+    protected DynClass parametersDefinition;
+    protected int[] providerTypes = null;
+
+    /**
+     * Constructor.
+     * 
+     * @param providerTypes
+     *            supported provider types
+     */
+    public AbstractExporttoProviderFactory(int[] providerTypes) {
+        this.providerTypes = providerTypes;
+    }
+
+    public DynObject createParameters() {
+        return ToolsLocator.getDynObjectManager().createDynObject(
+            parametersDefinition);
+    }
+
+    public void initialize() {
+        parametersDefinition =
+            ToolsLocator.getDynObjectManager().createDynClass(getName(),
+                getDescription());
+        parametersDefinition.addDynField(PARAMETER_FEATURESTORE)
+            .setType(DataTypes.OBJECT).setMandatory(true)
+            .setClassOfValue(FeatureStore.class);
+        parametersDefinition.addDynField(PARAMETER_PROJECTION)
+            .setType(DataTypes.CRS).setMandatory(false);
+    }
+
+    public boolean support(int providerType) throws ServiceException {
+        for (int i = 0; i < providerTypes.length; i++) {
+            if (providerTypes[i] == providerType) {
+                return true;
+            }
+        }
+        return false;
+    }
+
+    public String getDescription() {
+        return Messages.getText("general_exporter_description",
+            new String[] { getName() });
+    }
+
+    public String getLabel() {
+        return Messages.getText("general_exporter_label",
+            new String[] { getName() });
+    }
+
+    @Override
+    public String toString() {
+        return getLabel();
+    }
+
+    public boolean isEnabled() {
+        return ExporttoSwingProviderLocator.getManager().isProviderEnabled(this);
+    }
+
+    public void setEnabled(boolean value) {
+        ExporttoSwingProviderLocator.getManager().enableProvider(this, value);
+    }
+
+}
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderLocator.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderLocator.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderLocator.java	(revision 38300)
@@ -0,0 +1,102 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+
+package org.gvsig.exportto.swing.spi;
+
+import org.gvsig.tools.locator.BaseLocator;
+import org.gvsig.tools.locator.Locator;
+import org.gvsig.tools.locator.LocatorException;
+
+/**
+ * This locator is the entry point for the Exporto library SPI, providing
+ * access to all Exporto provider services through the
+ * {@link ExporttoSwingProviderManager} .
+ * 
+ * @author gvSIG team
+ * @version $Id$
+ */
+public class ExporttoSwingProviderLocator extends BaseLocator {
+
+    /**
+     * Exporto provider manager name.
+     */
+    public static final String MANAGER_NAME = "Exporto.provider.manager";
+
+    /**
+     * Exporto provider manager description.
+     */
+    public static final String MANAGER_DESCRIPTION = "Exporto Manager";
+
+    private static final String LOCATOR_NAME = "Exporto.provider.locator";
+
+    /**
+     * Unique instance.
+     */
+    private static final ExporttoSwingProviderLocator INSTANCE =
+        new ExporttoSwingProviderLocator();
+
+    /**
+     * Return the singleton instance.
+     * 
+     * @return the singleton instance
+     */
+    public static ExporttoSwingProviderLocator getInstance() {
+        return INSTANCE;
+    }
+
+    /**
+     * Return the Locator's name
+     * 
+     * @return a String with the Locator's name
+     */
+    public String getLocatorName() {
+        return LOCATOR_NAME;
+    }
+
+    /**
+     * Return a reference to the {@link ExporttoSwingProviderManager}
+     * 
+     * @return a reference to the {@link ExporttoSwingProviderManager}
+     * @throws LocatorException
+     *             if there is no access to the class or the class cannot be
+     *             instantiated
+     * @see Locator#get(String)
+     */
+    public static ExporttoSwingProviderManager getManager()
+        throws LocatorException {
+        return (ExporttoSwingProviderManager) getInstance().get(MANAGER_NAME);
+    }
+
+    /**
+     * Registers the Class implementing the {@link ExporttoSwingProviderManager}
+     * interface.
+     * 
+     * @param clazz
+     *            implementing the {@link ExporttoSwingProviderManager}
+     *            interface
+     */
+    public static void registerManager(
+        Class<? extends ExporttoSwingProviderManager> clazz) {
+        getInstance().register(MANAGER_NAME, MANAGER_DESCRIPTION, clazz);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderLocator.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderServices.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderServices.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderServices.java	(revision 38300)
@@ -0,0 +1,43 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+
+package org.gvsig.exportto.swing.spi;
+
+import org.gvsig.tools.service.spi.ProviderServices;
+
+/**
+ * The provider for a {@link ExportoService}.
+ * 
+ * @see ExporttoSwingProviderManager
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public interface ExporttoSwingProviderServices extends ProviderServices {
+
+    /**
+     * Returns the parameters needed to provide a service.
+     * 
+     * @return a {@link DynObject} with the parameters needed by the provider to
+     *         do the service
+     */
+    // public DynObject getParameters();
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderServices.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderLibrary.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderLibrary.java	(revision 38300)
@@ -0,0 +1,60 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.spi;
+
+import org.gvsig.exportto.swing.ExporttoSwingLibrary;
+import org.gvsig.i18n.Messages;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+import org.gvsig.tools.locator.ReferenceNotRegisteredException;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoSwingProviderLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsServiceOf(ExporttoSwingLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+        Messages.addResourceFamily("org.gvsig.exportto.swing.spi.i18n.text",
+            ExporttoSwingProviderLibrary.class.getClassLoader(),
+            ExporttoSwingProviderLibrary.class.getClass().getName());
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        // Validate there is any implementation registered.
+        ExporttoSwingProviderManager manager =
+            ExporttoSwingProviderLocator.getManager();
+        if (manager == null) {
+            throw new ReferenceNotRegisteredException(
+                ExporttoSwingProviderLocator.MANAGER_NAME,
+                ExporttoSwingProviderLocator.getInstance());
+        }
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoPanelValidationException.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoPanelValidationException.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoPanelValidationException.java	(revision 38300)
@@ -0,0 +1,62 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.spi;
+
+import org.gvsig.exportto.ExporttoException;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoPanelValidationException extends ExporttoException {
+
+    private static final long serialVersionUID = 236599587467526356L;
+
+    private static final String MESSAGE = "The panel is not valid";
+
+    private static final String KEY = "_ExporttoPanelValidationException";
+
+    /**
+     * @see BaseException#BaseException(String, Throwable, String, long).
+     * @param message
+     *            the default messageFormat to describe the exception
+     * @param cause
+     *            the original cause of the exception
+     */
+    public ExporttoPanelValidationException(String message, Throwable cause) {
+        super(message, cause, KEY, serialVersionUID);
+    }
+
+    /**
+     * @see BaseException#BaseException(String, Throwable, String, long).
+     * @param message
+     *            the default messageFormat to describe the exception
+     */
+    public ExporttoPanelValidationException(String message) {
+        super(message, KEY, serialVersionUID);
+    }
+
+    public ExporttoPanelValidationException() {
+        super(MESSAGE, KEY, serialVersionUID);
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoPanelValidationException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/package.html
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/package.html	(revision 38300)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>org.gvsig.exporto package documentation</title>
+</head>
+<body>
+
+	<p>Exporto library SPI.</p>
+
+</body>
+</html>
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/package.html
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderFactory.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderFactory.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderFactory.java	(revision 38300)
@@ -0,0 +1,76 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.spi;
+
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.service.spi.ProviderFactory;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public interface ExporttoSwingProviderFactory extends ProviderFactory {
+
+    /**
+     * Return if a provider supports a data type.
+     * 
+     * @param providerType
+     *            the provider type. One of the constants defined in the
+     *            {@link ExporttoSwingManager}.
+     * @return
+     *         if the provider supports a dataType.
+     * @throws ServiceException
+     */
+    public boolean support(int providerType) throws ServiceException;
+
+    /**
+     * Returns a description of the provider.
+     * 
+     * @return a description for the provider
+     */
+    public String getDescription();
+
+    /**
+     * Returns a label or short description for the provider.
+     * 
+     * @return a label or short description for the provider
+     */
+    public String getLabel();
+
+    /**
+     * If the provider this factory creates is enabled. This option might
+     * be used as a way to show or not some providers to the user.
+     * 
+     * @return if the provider is enabled
+     */
+    public boolean isEnabled();
+
+    /**
+     * Enable or disable this provider factory.
+     * 
+     * @param value
+     *            if to enable or disable the factory
+     */
+    public void setEnabled(boolean value);
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderManager.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderManager.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderManager.java	(revision 38300)
@@ -0,0 +1,169 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.spi;
+
+import java.util.List;
+
+import javax.print.attribute.standard.OutputDeviceAssigned;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.exportto.swing.ExporttoSwingManager;
+import org.gvsig.exportto.swing.preferences.ExporttoSwingPreferencesComponent;
+import org.gvsig.fmap.dal.feature.FeatureSet;
+import org.gvsig.fmap.dal.feature.FeatureStore;
+import org.gvsig.fmap.dal.feature.FeatureType;
+import org.gvsig.tools.service.ServiceException;
+import org.gvsig.tools.service.spi.ProviderManager;
+
+/**
+ * Responsible of the management of the providers business logic.
+ * 
+ * @see ExporttoSwingProvider
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public interface ExporttoSwingProviderManager extends ProviderManager {
+
+    /**
+     * @return
+     *         the list of providers that has been registered.
+     * @deprecated use {@link #getProviderFactories()} instead.
+     */
+    public List<String> getProviderNames();
+
+    /**
+     * Returns a list of providers that support all the
+     * provider types.
+     * 
+     * @param a
+     *            list of provider types, that are constants
+     *            defined in the {@link ExporttoSwingManager}.
+     * @return
+     *         the list of providers that has been registered.
+     * @deprecated use {@link #getProviderFactories(int[])} instead.
+     */
+    public List<String> getProviderNames(int[] providerTypes);
+
+    /**
+     * Returns all the available {@link ExporttoSwingProviderFactory}s.
+     * 
+     * @return all the available {@link ExporttoSwingProviderFactory}s
+     */
+    public List<ExporttoSwingProviderFactory> getProviderFactories();
+
+    /**
+     * Returns the {@link ExporttoSwingProviderFactory}s that support the
+     * given factory types.
+     * 
+     * @see ExporttoSwingManager#VECTORIAL_TABLE_WITH_GEOMETRY
+     * @see ExporttoSwingManager#VECTORIAL_TABLE_WITHOUT_GEOMETRY
+     * @param providerTypes
+     *            the types of factories
+     * @return the list of factories for the given factory types
+     */
+    public List<ExporttoSwingProviderFactory> getProviderFactories(
+        int[] providerTypes);
+
+    /**
+     * Returns the description for a concrete provider
+     * 
+     * @param providerName
+     *            the exportto provider.
+     * @return
+     *         the description of the provider.
+     */
+    public String getDescription(String providerName);
+
+    /**
+     * Return if a provider supports a data type.
+     * 
+     * @param providerName
+     *            the provider name.
+     * @param providerType
+     *            the provider type. One of the constants defined in the
+     *            {@link ExporttoSwingManager}.
+     * @return
+     *         if the provider supports a dataType.
+     * @throws ServiceException
+     */
+    public boolean support(String providerName, int providerType)
+        throws ServiceException;
+
+    /**
+     * Creates a {@link ExporttoSwingProvider} that is used to export a
+     * {@link FeatureSet}.
+     * 
+     * @param providerName
+     *            the name of the provider that has to be created.
+     * @param featureStore
+     *            the source feature store. It can be used to fix some
+     *            parameters like the {@link FeatureType} of the destination
+     *            {@link FeatureStore}.
+     * @param projection
+     *            the projection of the {@link OutputDeviceAssigned} store.
+     * @return
+     *         a provider that has to be used to export a {@link FeatureSet}.
+     */
+    public ExporttoSwingProvider createExporttoSwingProvider(
+        String providerName, FeatureStore featureStore, IProjection projection)
+        throws ServiceException;
+
+    /**
+     * Returns if the provider whose factory is provided is enabled.
+     * 
+     * @param factory
+     *            of the provider to check
+     * @return if the provider whose factory is provided is enabled
+     */
+    public boolean isProviderEnabled(ExporttoSwingProviderFactory factory);
+
+    /**
+     * Enables or disables an exportto provider.
+     * 
+     * @param factory
+     *            of the provider to enable or disable
+     * @param value
+     *            if the provider must be enabled or disabled
+     */
+    public void enableProvider(ExporttoSwingProviderFactory factory,
+        boolean value);
+
+    /**
+     * Returns the provider factory with the given name.
+     * 
+     * @param name
+     *            of the provider
+     * @return the provider factory
+     * @throws ServiceException
+     *             if there is an error getting the provider factory
+     */
+    public ExporttoSwingProviderFactory getExporttoSwingProviderFactory(
+        String name) throws ServiceException;
+
+    /**
+     * Creates a preferences component to manage the export to properties.
+     * 
+     * @return a preferences component
+     */
+    public ExporttoSwingPreferencesComponent createExporttoSwingProvidersPreferences();
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderManager.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProvider.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProvider.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProvider.java	(revision 38300)
@@ -0,0 +1,58 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+package org.gvsig.exportto.swing.spi;
+
+import org.gvsig.exportto.ExporttoService;
+
+/**
+ * A Exportto provider.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public interface ExporttoSwingProvider {
+
+    /**
+     * @return
+     *         the number of panels that are used por this provider.
+     */
+    public int getPanelCount();
+
+    /**
+     * A {@link ExporttoSwingProvider} are composed of a set of panels. This
+     * method
+     * is used to retrieve all these panels.
+     * 
+     * @param index
+     *            position of the panel to retrieve.
+     * @return
+     *         the panel that is in a concrete position.
+     */
+    public ExporttoSwingProviderPanel getPanelAt(int index);
+
+    /**
+     * @return a {@link ExporttoService} that has been initialized this
+     *         the values typed in the panels returned by this service.
+     */
+    public ExporttoService createExporttoService();
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProvider.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderPanel.java
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderPanel.java	(revision 38300)
@@ -0,0 +1,61 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+package org.gvsig.exportto.swing.spi;
+
+import javax.swing.JPanel;
+
+/**
+ * The panels returned by a {@link ExporttoSwingProvider} have to
+ * implement this interface.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public abstract class ExporttoSwingProviderPanel extends JPanel {
+
+    private static final long serialVersionUID = -342762576886358109L;
+
+    /**
+     * @return
+     *         the panel title that will be displayed with
+     *         this panel.
+     */
+    public abstract String getPanelTitle();
+
+    /**
+     * Checks if the panel is valid. If is not valid and throws
+     * an exception, the exception message is displayed and the
+     * user can not continue. If the return value is false,
+     * the user can not continue but any error message is shown
+     * to the user.
+     * 
+     * @return
+     *         if all the obligatory fields of the panel have been
+     *         filled.
+     * @throws ExporttoPanelValidationException
+     *             if there is any erro that has to be shown to the user.
+     */
+    public abstract boolean isValidPanel()
+        throws ExporttoPanelValidationException;
+
+}

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 38300)
@@ -0,0 +1 @@
+org.gvsig.exportto.swing.spi.ExporttoSwingProviderLibrary
\ No newline at end of file
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/resources/org/gvsig/exportto/swing/spi/i18n/text.properties
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/resources/org/gvsig/exportto/swing/spi/i18n/text.properties	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/resources/org/gvsig/exportto/swing/spi/i18n/text.properties	(revision 38300)
@@ -0,0 +1,2 @@
+general_exporter_description=Exporta al formato {0} 
+general_exporter_label=Formato {0}
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/resources/org/gvsig/exportto/swing/spi/i18n/text_en.properties
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/resources/org/gvsig/exportto/swing/spi/i18n/text_en.properties	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/resources/org/gvsig/exportto/swing/spi/i18n/text_en.properties	(revision 38300)
@@ -0,0 +1,2 @@
+general_exporter_description=Exporter to the {0} format 
+general_exporter_label={0} format
Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/pom.xml	(revision 38300)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.swing.spi</artifactId>
+	<packaging>jar</packaging>
+	<name>org.gvsig.exportto.swing.spi</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.swing</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+	<dependencies>
+	   <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.lib.api</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.swing.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.projection</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.geometry</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.fmap.dal</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.i18n</artifactId>    
+            <scope>compile</scope>        
+        </dependency>
+	</dependencies>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-jar-plugin</artifactId>
+				<configuration>
+				</configuration>
+				<executions>
+				<!--
+				Generates a jar file only with the test classes
+				-->
+					<execution>
+						<goals>
+							<goal>test-jar</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+</project>

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project


Index: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/pom.xml	(revision 38300)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.exportto.swing</artifactId>
+	<packaging>pom</packaging>
+	<name>org.gvsig.exportto.swing</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.lib.api</artifactId>
+			<version>1.0.0-SNAPSHOT</version>
+		</dependency>
+	</dependencies>
+
+	<modules>
+		<module>org.gvsig.exportto.swing.api</module>
+		<module>org.gvsig.exportto.swing.impl</module>
+		<module>org.gvsig.exportto.swing.spi</module>
+        <module>org.gvsig.exportto.swing.prov</module>
+	</modules>
+</project>
+

Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain


Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto/org.gvsig.exportto.swing
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath
.project



Property changes on: tags/v2_0_0_Build_2047/libraries/org.gvsig.exportto
___________________________________________________________________
Added: svn:ignore
   + target
bin
.settings
.classpath

.project


