Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/distribution/distribution.xml
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/distribution/distribution.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/distribution/distribution.xml	(revision 38355)
@@ -0,0 +1,2 @@
+<assembly>
+</assembly>
\ No newline at end of file

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

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/distribution/distribution.xml
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/distribution/distribution.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/distribution/distribution.xml	(revision 38355)
@@ -0,0 +1,42 @@
+<assembly>
+	<id>distribution</id>
+	<formats>
+		<format>dir</format>
+	</formats>
+	<fileSets>
+		<!-- Estructure for the extension -->
+		<fileSet>
+			<directory>src/main/resources</directory>
+			<outputDirectory>${extension.install.dir.name}
+			</outputDirectory>
+		</fileSet>
+	</fileSets>
+    <files>
+        <file>
+            <source>package.info</source>
+            <outputDirectory>${extension.install.dir.name}</outputDirectory>
+        </file>
+    </files>	
+	<dependencySets>
+		<dependencySet>
+			<outputDirectory>${extension.install.dir.name}/${library-dir}
+			</outputDirectory>
+			<includes>
+				<include>org.gvsig:org.gvsig.exportto.app.extension</include>
+				<include>org.gvsig:org.gvsig.exportto.lib.api</include>
+				<include>org.gvsig:org.gvsig.exportto.swing.api</include>
+				<include>org.gvsig:org.gvsig.exportto.lib.impl</include>
+				<include>org.gvsig:org.gvsig.exportto.swing.impl</include>
+				<include>org.gvsig:org.gvsig.exportto.swing.spi</include>
+				<include>org.gvsig:org.gvsig.exportto.swing.prov.generic</include>
+				<include>org.gvsig:org.gvsig.exportto.swing.prov.file</include>
+				<include>org.gvsig:org.gvsig.exportto.swing.prov.shape</include>
+				<include>org.gvsig:org.gvsig.exportto.swing.prov.dxf</include>
+				<include>org.gvsig:org.gvsig.exportto.swing.prov.jdbc</include>
+                <include>org.gvsig:org.gvsig.exportto.swing.prov.postgresql</include>
+                <include>org.gvsig:org.gvsig.exportto.swing.prov.mysql</include>
+                <include>org.gvsig:org.gvsig.exportto.swing.prov.dbf</include>
+			</includes>
+		</dependencySet>
+	</dependencySets>
+</assembly>

Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/distribution/distribution.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/buildNumber.properties
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/buildNumber.properties	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/buildNumber.properties	(revision 38355)
@@ -0,0 +1,3 @@
+#maven.buildNumber.plugin properties file
+#Tue May 29 16:40:48 CEST 2012
+buildNumber=2055

Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/buildNumber.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/test/resources/README.txt
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/test/resources/README.txt	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/test/resources/README.txt	(revision 38355)
@@ -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/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/test/resources/README.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/test/resources/log4j.xml
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/test/resources/log4j.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/test/resources/log4j.xml	(revision 38355)
@@ -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/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/test/resources/log4j.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/plugin-persistence.def
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/plugin-persistence.def	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/plugin-persistence.def	(revision 38355)
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!--
+Definitions of plugin persistence org.gvsig.exportto.app.extension.  
+ -->
+<definitions>
+  <version>1.0.0</version>
+  <classes>
+    <class name="org.gvsig.exportto.app.extension">
+      <description>Persistence of the Exportto plugin</description>
+      <fields>
+        <field name="enabledProviders" type="Set" classOfItems="java.lang.String" mandatory="false">
+          <description>List of export to provider names enabled by the user</description>
+        </field>
+        <field name="disabledProviders" type="Set" classOfItems="java.lang.String" mandatory="false">
+          <description>List of export to provider names disabled by the user</description>
+        </field>
+      </fields>
+    </class>
+  </classes>
+</definitions>  
Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/config.xml
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/config.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/config.xml	(revision 38355)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<plugin-config>
+	<depends plugin-name="org.gvsig.app" />
+    <depends plugin-name="org.gvsig.app.document.table.app.mainplugin" />
+	<resourceBundle name="text"/>
+	<libraries library-dir="lib"/>
+	<extensions>
+		<extension class-name="org.gvsig.exportto.app.extension.ExporttoLayerExtension"
+			description=""
+			active="true"
+			priority="1">
+			<menu text="Capa/export_to"
+				position="11"
+				action-command="Exportto"/>				
+		</extension>		
+		<extension class-name="org.gvsig.exportto.app.extension.ExporttoTableExtension"
+            description=""
+            active="true"
+            priority="1">
+            <menu text="Tabla/export_to"
+                position="50"
+                action-command="Exportto"/>             
+        </extension>        
+        <extension class-name="org.gvsig.exportto.app.extension.ExporttoPreferencesExtension"
+            description=""
+            active="true"
+            priority="1">
+        </extension>        
+	</extensions>
+</plugin-config>

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

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/images/document-save-as.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/images/document-save-as.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/build.number
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/build.number	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/build.number	(revision 38355)
@@ -0,0 +1,3 @@
+#Build Number for ANT. Do not edit!
+#Tue Apr 28 16:00:47 CEST 2009
+build.number=2005
Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/org/gvsig/exportto/app/extension/i18n/text_en.properties
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/org/gvsig/exportto/app/extension/i18n/text_en.properties	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/org/gvsig/exportto/app/extension/i18n/text_en.properties	(revision 38355)
@@ -0,0 +1,4 @@
+add_table_to_project=Add the table to the project?
+add_table=Add table
+exportto_preferences=Export to
+exportto_preferences_panel_description=Enable or disable "export to" formats
\ No newline at end of file

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

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/org/gvsig/exportto/app/extension/i18n/text.properties
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/org/gvsig/exportto/app/extension/i18n/text.properties	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/resources/org/gvsig/exportto/app/extension/i18n/text.properties	(revision 38355)
@@ -0,0 +1,4 @@
+add_table_to_project=Desea a�adir la tabla al proyecto?
+add_table=A�adir tabla
+exportto_preferences=Exportar a
+exportto_preferences_panel_description=Marque los formatos de exportaci�n a que quiera activar o desactivar
\ No newline at end of file

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

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoWindowListener.java
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoWindowListener.java	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoWindowListener.java	(revision 38355)
@@ -0,0 +1,46 @@
+/* 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.app.extension;
+
+import org.gvsig.andami.PluginServices;
+import org.gvsig.andami.ui.mdiManager.IWindow;
+import org.gvsig.exportto.swing.JExporttoServicePanelListener;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoWindowListener implements JExporttoServicePanelListener {
+
+    private IWindow exporttoWindow = null;
+
+    public ExporttoWindowListener(IWindow exporttoWindow) {
+        super();
+        this.exporttoWindow = exporttoWindow;
+    }
+
+    public void close() {
+        PluginServices.getMDIManager().closeWindow(exporttoWindow);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoWindowListener.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoPreferencesExtension.java
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoPreferencesExtension.java	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoPreferencesExtension.java	(revision 38355)
@@ -0,0 +1,144 @@
+/* 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.app.extension;
+
+import java.util.Iterator;
+import java.util.Locale;
+import java.util.Set;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.andami.PluginServices;
+import org.gvsig.andami.plugins.Extension;
+import org.gvsig.exportto.app.extension.preferences.ExporttoPreferencesPage;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderFactory;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderManager;
+import org.gvsig.i18n.Messages;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.extensionpoint.ExtensionPoint;
+import org.gvsig.tools.extensionpoint.ExtensionPointManager;
+import org.gvsig.tools.service.ServiceException;
+
+/**
+ * Andami extension to register the ExportTo preferences panel.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoPreferencesExtension extends Extension {
+
+    private static final Logger LOG = LoggerFactory
+        .getLogger(ExporttoPreferencesExtension.class);
+
+    /**
+     * The name of the preferences property with the names of the hidden
+     * ExporttoSwingProviderFactory.
+     */
+    public static final String PREFERENCE_DISABLED_PROVIDERS =
+        "disabledProviders";
+    public static final String PREFERENCE_ENABLED_PROVIDERS =
+        "enabledProviders";
+
+    public void initialize() {
+        if (!Messages.hasLocales()) {
+            Messages.addLocale(Locale.getDefault());
+        }
+        Messages.addResourceFamily(
+            "org.gvsig.exportto.app.extension.i18n.text",
+            ExporttoLayerExtension.class.getClassLoader(),
+            ExporttoLayerExtension.class.getClass().getName());
+
+        ExporttoSwingProviderManager providerManager =
+            ExporttoSwingProviderLocator.getManager();
+        // Load from preferences the list of Exportto Providers to ignore.
+        DynObject preferences = this.getPlugin().getPluginProperties();
+        @SuppressWarnings("unchecked")
+        Set<String> disabledProviders =
+            (Set<String>) preferences
+                .getDynValue(PREFERENCE_DISABLED_PROVIDERS);
+        if (disabledProviders != null) {
+            for (Iterator<String> iterator = disabledProviders.iterator(); iterator
+                .hasNext();) {
+                ExporttoSwingProviderFactory factory;
+                String providerName = null;
+                try {
+                    providerName = iterator.next();
+                    factory =
+                        providerManager
+                            .getExporttoSwingProviderFactory(providerName);
+                    providerManager.enableProvider(factory, Boolean.FALSE);
+                } catch (ServiceException e) {
+                    LOG.warn("Disabled exportto swing provider " + providerName
+                        + " is not available", e);
+                }
+            }
+        }
+        @SuppressWarnings("unchecked")
+        Set<String> enabledProviders =
+            (Set<String>) preferences.getDynValue(PREFERENCE_ENABLED_PROVIDERS);
+        if (enabledProviders != null) {
+            for (Iterator<String> iterator = enabledProviders.iterator(); iterator
+                .hasNext();) {
+                ExporttoSwingProviderFactory factory;
+                String providerName = null;
+                try {
+                    providerName = iterator.next();
+                    factory =
+                        providerManager
+                            .getExporttoSwingProviderFactory(providerName);
+                    providerManager.enableProvider(factory, Boolean.TRUE);
+                } catch (ServiceException e) {
+                    LOG.warn("Enabled exportto swing provider " + providerName
+                        + " is not available", e);
+                }
+            }
+        }
+
+        // Register preferences page
+        ExtensionPointManager extensionPoints =
+            ToolsLocator.getExtensionPointManager();
+        ExtensionPoint ep = extensionPoints.add("AplicationPreferences", "");
+
+        PluginServices.getIconTheme().registerDefault(
+            "exportto-properties",
+            ExporttoPreferencesPage.class.getClassLoader().getResource(
+                "images/document-save-as.png"));
+
+        ep.append("ExporttoPreferencesPage", "", new ExporttoPreferencesPage());
+    }
+
+    public void execute(String actionCommand) {
+        // Nothing to do
+    }
+
+    public boolean isEnabled() {
+        return true;
+    }
+
+    public boolean isVisible() {
+        return false;
+    }
+
+}
Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/LoadTableAction.java
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/LoadTableAction.java	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/LoadTableAction.java	(revision 38355)
@@ -0,0 +1,97 @@
+/* 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.app.extension;
+
+import javax.swing.JComponent;
+import javax.swing.JOptionPane;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.andami.PluginServices;
+import org.gvsig.app.ApplicationLocator;
+import org.gvsig.app.project.ProjectManager;
+import org.gvsig.app.project.documents.table.TableDocument;
+import org.gvsig.app.project.documents.table.TableManager;
+import org.gvsig.exportto.ExporttoServiceFinishAction;
+import org.gvsig.fmap.dal.DALLocator;
+import org.gvsig.fmap.dal.DataManager;
+import org.gvsig.fmap.dal.DataStoreParameters;
+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.FeatureStore;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class LoadTableAction implements ExporttoServiceFinishAction {
+
+    private static final Logger LOG = LoggerFactory
+        .getLogger(LoadLayerAction.class);
+    private static final DataManager DATA_MANAGER = DALLocator.getDataManager();
+
+    public LoadTableAction() {
+        super();
+    }
+
+    public void finished(String tableName,
+        DataStoreParameters dataStoreParameters) {
+
+        int res =
+            JOptionPane.showConfirmDialog((JComponent) PluginServices
+                .getMDIManager().getActiveWindow(), PluginServices.getText(
+                this, "add_table_to_project"), PluginServices.getText(this,
+                "add_table"), JOptionPane.YES_NO_OPTION);
+
+        if (res == JOptionPane.YES_OPTION) {
+            try {
+                FeatureStore featureStore =
+                    (FeatureStore) DATA_MANAGER.openStore(
+                        dataStoreParameters.getDataStoreName(),
+                        dataStoreParameters);
+                TableDocument tableDocument =
+                    (TableDocument) ProjectManager.getInstance()
+                        .createDocument(TableManager.TYPENAME, tableName);
+                tableDocument.setStore(featureStore);
+
+                ApplicationLocator.getManager().getProjectManager()
+                    .getCurrentProject().add(tableDocument);
+                // FeatureTableDocumentPanel featureTableDocumentPanel =
+                // new FeatureTableDocumentPanel(tableDocument);
+                //
+                // MDI_MANAGER.addWindow(featureTableDocumentPanel);
+            } catch (ValidateDataParametersException e) {
+                LOG.error("Error opening the exported table", e);
+            } catch (InitializeException e) {
+                LOG.error("Error opening the exported table", e);
+            } catch (ProviderNotRegisteredException e) {
+                LOG.error("Error opening the exported table", e);
+            } catch (DataException e) {
+                LOG.error("Error opening the exported table", e);
+            }
+        }
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/LoadTableAction.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/GvSIGExporttoWindowManager.java
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/GvSIGExporttoWindowManager.java	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/GvSIGExporttoWindowManager.java	(revision 38355)
@@ -0,0 +1,78 @@
+/* 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.app.extension;
+
+import java.awt.event.ComponentEvent;
+import java.awt.event.ComponentListener;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.swing.JPanel;
+
+import org.gvsig.andami.PluginServices;
+import org.gvsig.andami.ui.mdiManager.IWindow;
+import org.gvsig.exportto.swing.ExporttoWindowManager;
+import org.gvsig.exportto.swing.JExporttoServicePanel;
+
+/**
+ * {@link ExporttoWindowManager} implementation to show Exportto
+ * windows as gvSIG windows
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class GvSIGExporttoWindowManager implements ExporttoWindowManager,
+    ComponentListener {
+
+    private Map<JPanel, IWindow> panelToWindow = new HashMap<JPanel, IWindow>();
+
+    public void showWindow(JExporttoServicePanel panel, String title, int mode) {
+        ExporttoWindow window = new ExporttoWindow(panel, title, mode);
+        panel
+            .setExporttoServicePanelListener(new ExporttoWindowListener(window));
+
+        panel.addComponentListener(this);
+
+        panelToWindow.put(panel, window);
+
+        PluginServices.getMDIManager().addCentredWindow(window);
+    }
+
+    public void componentHidden(ComponentEvent componentEvent) {
+        JPanel panel = (JPanel) componentEvent.getSource();
+        IWindow window = panelToWindow.get(panel);
+        PluginServices.getMDIManager().closeWindow(window);
+        panelToWindow.remove(panel);
+    }
+
+    public void componentMoved(ComponentEvent e) {
+        // Nothing to do
+    }
+
+    public void componentResized(ComponentEvent e) {
+        // Nothing to do
+    }
+
+    public void componentShown(ComponentEvent e) {
+        // Nothing to do
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/GvSIGExporttoWindowManager.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoTableExtension.java
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoTableExtension.java	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoTableExtension.java	(revision 38355)
@@ -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.app.extension;
+
+import org.gvsig.andami.PluginServices;
+import org.gvsig.andami.plugins.Extension;
+import org.gvsig.andami.ui.mdiManager.IWindow;
+import org.gvsig.app.ApplicationLocator;
+import org.gvsig.app.ApplicationManager;
+import org.gvsig.app.project.documents.table.TableDocument;
+import org.gvsig.app.project.documents.table.gui.FeatureTableDocumentPanel;
+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.fmap.dal.feature.FeatureStore;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoTableExtension extends Extension {
+
+    private ExporttoSwingManager swingManager;
+    private static final ApplicationManager APPLICATION_MANAGER =
+        ApplicationLocator.getManager();
+
+    public void initialize() {
+
+    }
+
+    @Override
+    public void postInitialize() {
+        super.postInitialize();
+        swingManager = ExporttoSwingLocator.getSwingManager();
+    }
+
+    public void execute(String actionCommand) {
+        org.gvsig.andami.ui.mdiManager.IWindow f =
+            PluginServices.getMDIManager().getActiveWindow();
+
+        if (f instanceof FeatureTableDocumentPanel) {
+            FeatureTableDocumentPanel featureTableDocumentPanel =
+                (FeatureTableDocumentPanel) f;
+            TableDocument tableDocument =
+                (TableDocument) featureTableDocumentPanel.getDocument();
+            showExportto(tableDocument.getStore());
+        }
+    }
+
+    private void showExportto(FeatureStore featureStore) {
+        JExporttoServicePanel panel =
+            swingManager
+                .createExportto(
+                    featureStore,
+                    null,
+                    new LoadTableAction(),
+                    new int[] { ExporttoSwingManager.VECTORIAL_TABLE_WITHOUT_GEOMETRY });
+
+        swingManager.getWindowManager().showWindow(panel, "Exportto",
+            ExporttoWindowManager.MODE_WINDOW);
+
+    }
+
+    public boolean isEnabled() {
+        return true;
+    }
+
+    public boolean isVisible() {
+        IWindow window = APPLICATION_MANAGER.getUIManager().getActiveWindow();
+
+        if (window == null) {
+            return false;
+        }
+
+        if (window instanceof FeatureTableDocumentPanel) {
+            return true;
+        }
+        return false;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoTableExtension.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/LoadLayerAction.java
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/LoadLayerAction.java	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/LoadLayerAction.java	(revision 38355)
@@ -0,0 +1,79 @@
+/* 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.app.extension;
+
+import javax.swing.JComponent;
+import javax.swing.JOptionPane;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.andami.PluginServices;
+import org.gvsig.exportto.ExporttoServiceFinishAction;
+import org.gvsig.fmap.dal.DataStoreParameters;
+import org.gvsig.fmap.mapcontext.MapContext;
+import org.gvsig.fmap.mapcontext.MapContextLocator;
+import org.gvsig.fmap.mapcontext.MapContextManager;
+import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException;
+import org.gvsig.fmap.mapcontext.layers.FLayer;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class LoadLayerAction implements ExporttoServiceFinishAction {
+
+    private static final Logger LOG = LoggerFactory
+        .getLogger(LoadLayerAction.class);
+    private static final MapContextManager MAP_CONTEXT_MANAGER =
+        MapContextLocator.getMapContextManager();
+
+    private MapContext mapContext = null;
+
+    public LoadLayerAction(MapContext mapContext) {
+        super();
+        this.mapContext = mapContext;
+    }
+
+    public void finished(String layerName,
+        DataStoreParameters dataStoreParameters) {
+        try {
+            int res =
+                JOptionPane.showConfirmDialog((JComponent) PluginServices
+                    .getMDIManager().getActiveWindow(), PluginServices.getText(
+                    this, "insertar_en_la_vista_la_capa_creada"),
+                    PluginServices.getText(this, "insertar_capa"),
+                    JOptionPane.YES_NO_OPTION);
+
+            if (res == JOptionPane.YES_OPTION) {
+                FLayer layer =
+                    MAP_CONTEXT_MANAGER.createLayer(layerName,
+                        dataStoreParameters);
+                mapContext.getLayers().addLayer(layer);
+            }
+
+        } catch (LoadLayerException e) {
+            LOG.error("Error loading the exported layer", e);
+        }
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/LoadLayerAction.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoWindow.java
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoWindow.java	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoWindow.java	(revision 38355)
@@ -0,0 +1,94 @@
+/* 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.app.extension;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+
+import javax.swing.JPanel;
+
+import org.gvsig.andami.ui.mdiManager.IWindow;
+import org.gvsig.andami.ui.mdiManager.WindowInfo;
+import org.gvsig.exportto.swing.ExporttoWindowManager;
+
+/**
+ * {@link IWindow} to show a Exportto.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoWindow extends JPanel implements IWindow {
+
+    private static final long serialVersionUID = -4401123724140025094L;
+
+    private WindowInfo info;
+
+    private Object profile = WindowInfo.EDITOR_PROFILE;
+
+    /**
+     * Constructor.
+     * 
+     * @param panel
+     *            the panel to show
+     * @param title
+     *            the window title
+     * @param mode
+     *            the window mode
+     * @see {@link ExporttoWindowManager#MODE_DIALOG}
+     * @see {@link ExporttoWindowManager#MODE_TOOL}
+     * @see {@link ExporttoWindowManager#MODE_WINDOW}
+     */
+    public ExporttoWindow(JPanel panel, String title, int mode) {
+        this.setLayout(new BorderLayout());
+        add(panel, BorderLayout.CENTER);
+        Dimension dimension = new Dimension(800, 400);
+        setSize(dimension);
+        int code =
+            WindowInfo.ICONIFIABLE | WindowInfo.MAXIMIZABLE
+                | WindowInfo.RESIZABLE;
+        switch (mode) {
+        case ExporttoWindowManager.MODE_DIALOG:
+            code |= WindowInfo.MODALDIALOG;
+            profile = WindowInfo.DIALOG_PROFILE;
+            break;
+        case ExporttoWindowManager.MODE_TOOL:
+            code |= WindowInfo.PALETTE;
+            profile = WindowInfo.TOOL_PROFILE;
+            break;
+        case ExporttoWindowManager.MODE_WINDOW:
+        default:
+            code |= WindowInfo.MODELESSDIALOG;
+            profile = WindowInfo.EDITOR_PROFILE;
+        }
+        info = new WindowInfo(code);
+        info.setTitle(title);
+        info.setMinimumSize(dimension);
+    }
+
+    public WindowInfo getWindowInfo() {
+        return info;
+    }
+
+    public Object getWindowProfile() {
+        return profile;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoWindow.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoLayerExtension.java
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoLayerExtension.java	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoLayerExtension.java	(revision 38355)
@@ -0,0 +1,143 @@
+/* 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.app.extension;
+
+import java.util.Locale;
+
+import org.cresques.cts.IProjection;
+
+import org.gvsig.andami.messages.NotificationManager;
+import org.gvsig.andami.plugins.Extension;
+import org.gvsig.andami.ui.mdiManager.IWindow;
+import org.gvsig.app.ApplicationLocator;
+import org.gvsig.app.ApplicationManager;
+import org.gvsig.app.project.documents.view.ViewDocument;
+import org.gvsig.app.project.documents.view.ViewManager;
+import org.gvsig.app.project.documents.view.gui.DefaultViewPanel;
+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.fmap.mapcontext.MapContext;
+import org.gvsig.fmap.mapcontext.layers.FLayer;
+import org.gvsig.fmap.mapcontext.layers.FLayers;
+import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
+import org.gvsig.i18n.Messages;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ExporttoLayerExtension extends Extension {
+
+    private ExporttoSwingManager swingManager;
+    private static final ApplicationManager APPLICATION_MANAGER =
+        ApplicationLocator.getManager();
+
+    public void initialize() {
+        if (!Messages.hasLocales()) {
+            Messages.addLocale(Locale.getDefault());
+        }
+        Messages.addResourceFamily(
+            "org.gvsig.exportto.app.extension.i18n.text",
+            ExporttoLayerExtension.class.getClassLoader(),
+            ExporttoLayerExtension.class.getClass().getName());
+    }
+
+    @Override
+    public void postInitialize() {
+        super.postInitialize();
+        // Asignamos el locator e iniciamos la instancia
+        swingManager = ExporttoSwingLocator.getSwingManager();
+
+        swingManager.registerWindowManager(new GvSIGExporttoWindowManager());
+    }
+
+    public void execute(String actionCommand) {
+        ApplicationManager application = ApplicationLocator.getManager();
+        ViewDocument view =
+            (ViewDocument) application.getActiveDocument(ViewManager.TYPENAME);
+        if (view != null) {
+            MapContext mapContext = view.getMapContext();
+            FLayers layers = mapContext.getLayers();
+            FLayer[] actives = layers.getActives();
+            try {
+                for (int i = 0; i < actives.length; i++) {
+                    if (actives[i] instanceof FLyrVect) {
+                        FLyrVect fLyrVect = (FLyrVect) actives[i];
+                        showExportto(fLyrVect, mapContext.getProjection(),
+                            mapContext);
+                    }
+                }
+            } catch (Exception e) {
+                NotificationManager.showMessageError(e.getMessage(), e);
+            }
+        }
+    }
+
+    public int showExportto(FLyrVect fLyrVect, IProjection projection,
+        MapContext mapContext) {
+
+        JExporttoServicePanel panel =
+            swingManager
+                .createExportto(
+                    fLyrVect.getFeatureStore(),
+                    projection,
+                    new LoadLayerAction(mapContext),
+                    new int[] { ExporttoSwingManager.VECTORIAL_TABLE_WITH_GEOMETRY });
+
+        swingManager.getWindowManager().showWindow(panel, "Exportto",
+            ExporttoWindowManager.MODE_WINDOW);
+
+        return panel.getStatus();
+
+    }
+
+    public boolean isEnabled() {
+        ApplicationManager application = ApplicationLocator.getManager();
+        ViewDocument view =
+            (ViewDocument) application.getActiveDocument(ViewManager.TYPENAME);
+        if (view != null) {
+            FLayer[] actives = view.getMapContext().getLayers().getActives();
+            for (int i = 0; i < actives.length; i++) {
+                if (actives[i] instanceof FLyrVect) {
+                    return true;
+                }
+            }
+        }
+        return false;
+    }
+
+    public boolean isVisible() {
+        IWindow window = APPLICATION_MANAGER.getUIManager().getActiveWindow();
+
+        if (window == null) {
+            return false;
+        }
+
+        if (window instanceof DefaultViewPanel) {
+            return true;
+        }
+        return false;
+    }
+}

Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/ExporttoLayerExtension.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/package.html
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/package.html	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/package.html	(revision 38355)
@@ -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 gvSIG extension</p>
+	
+	<p>
+	Shows Exportto into gvSIG.
+	</p>
+
+</body>
+</html>
\ No newline at end of file

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

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/preferences/ExporttoPreferencesPage.java
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/preferences/ExporttoPreferencesPage.java	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/src/main/java/org/gvsig/exportto/app/extension/preferences/ExporttoPreferencesPage.java	(revision 38355)
@@ -0,0 +1,141 @@
+/* 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.app.extension.preferences;
+
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import javax.swing.ImageIcon;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+
+import org.gvsig.andami.PluginServices;
+import org.gvsig.andami.PluginsLocator;
+import org.gvsig.andami.preferences.AbstractPreferencePage;
+import org.gvsig.andami.preferences.StoreException;
+import org.gvsig.exportto.app.extension.ExporttoPreferencesExtension;
+import org.gvsig.exportto.swing.preferences.ExporttoSwingPreferencesComponent;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderFactory;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator;
+import org.gvsig.exportto.swing.spi.ExporttoSwingProviderManager;
+import org.gvsig.i18n.Messages;
+import org.gvsig.tools.dynobject.DynObject;
+
+/**
+ * Exportto related preferences page.
+ * 
+ * @author gvSIG Team
+ * @version $Id$
+ */
+public class ExporttoPreferencesPage extends AbstractPreferencePage {
+
+    private static final long serialVersionUID = -5751805016601819817L;
+
+    private ImageIcon icon;
+
+    private ExporttoSwingProviderManager manager;
+
+    private ExporttoSwingPreferencesComponent preferences;
+
+    /**
+     * Constructor.
+     */
+    public ExporttoPreferencesPage() {
+        icon = PluginServices.getIconTheme().get("exportto-properties");
+
+        manager = ExporttoSwingProviderLocator.getManager();
+        addComponent(new JLabel(
+            Messages.getText("exportto_preferences_panel_description")));
+        preferences = manager.createExporttoSwingProvidersPreferences();
+        addComponent(preferences.asJComponent());
+    }
+
+    public String getID() {
+        return getClass().getName();
+    }
+
+    public String getTitle() {
+        return Messages.getText("exportto_preferences");
+    }
+
+    public JPanel getPanel() {
+        return this;
+    }
+
+    public void initializeValues() {
+        // Nothing to do
+    }
+
+    public void initializeDefaults() {
+        preferences.initializeDefaults();
+    }
+
+    public ImageIcon getIcon() {
+        return icon;
+    }
+
+    public boolean isValueChanged() {
+        return preferences.isValueChanged();
+    }
+
+    @Override
+    public void storeValues() throws StoreException {
+        // Update manager values
+        List<ExporttoSwingProviderFactory> providers =
+            manager.getProviderFactories();
+        @SuppressWarnings({ "unchecked" })
+        Set<ExporttoSwingProviderFactory> disabledProviders =
+            (Set<ExporttoSwingProviderFactory>) preferences
+                .getDisabledProviders();
+        Set<String> enabledNames = new HashSet<String>();
+        Set<String> disabledNames =
+            new HashSet<String>(disabledProviders.size());
+        for (int i = 0; i < providers.size(); i++) {
+            ExporttoSwingProviderFactory provider = providers.get(i);
+            boolean disabled = disabledProviders.contains(provider);
+            provider.setEnabled(!disabled);
+            if (disabled) {
+                disabledNames.add(provider.getName());
+            } else {
+                enabledNames.add(provider.getName());
+            }
+        }
+        // Persist them
+        DynObject preferences =
+            PluginsLocator.getManager()
+                .getPlugin("org.gvsig.exportto.app.extension")
+                .getPluginProperties();
+        preferences.setDynValue(
+            ExporttoPreferencesExtension.PREFERENCE_ENABLED_PROVIDERS,
+            enabledNames);
+        preferences.setDynValue(
+            ExporttoPreferencesExtension.PREFERENCE_DISABLED_PROVIDERS,
+            disabledNames);
+    }
+
+    @Override
+    public void setChangesApplied() {
+        preferences.setChangesApplied();
+    }
+
+}
Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension/pom.xml	(revision 38355)
@@ -0,0 +1,150 @@
+<?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.app.extension</artifactId>
+	<packaging>jar</packaging>
+	<name>Export framework</name>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.exportto.app</artifactId>
+		<version>1.0.0-SNAPSHOT</version>
+	</parent>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.andami</artifactId>
+            <scope>compile</scope>
+		</dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.app</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.app.document.table.app.mainplugin</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.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.mapcontext</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.ui</artifactId>
+            <scope>compile</scope>
+        </dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.lib.api</artifactId>
+            <scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.swing.api</artifactId>
+            <scope>compile</scope>
+		</dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.spi</artifactId>
+        </dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.lib.impl</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.exportto.swing.impl</artifactId>
+		</dependency>
+	    <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.generic</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.file</artifactId>
+        </dependency>
+		<dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.shape</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.dxf</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.jdbc</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.postgresql</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.mysql</artifactId>
+        </dependency>     
+         <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.exportto.swing.prov.dbf</artifactId>
+        </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.control</artifactId>
+            <scope>compile</scope>
+        </dependency>     
+	</dependencies>
+	<profiles>
+		<profile>
+			<id>gvsig-install</id>
+			<activation>
+				<activeByDefault>true</activeByDefault>
+			</activation>
+			<properties>
+				<!--
+					Default gvSIG installation folder relative to the current workspace
+				-->
+				<gvsig.install.dir>${basedir}/../../build/product</gvsig.install.dir>
+			</properties>
+		</profile>
+	</profiles>
+    <properties>
+        <package.info.dependencies>required: org.gvsig.app.document.table.app.mainplugin -ge 2</package.info.dependencies>
+        <package.info.categories>Import And Export</package.info.categories>
+    </properties>
+	
+</project>
\ No newline at end of file

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


Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/org.gvsig.exportto.app.extension
___________________________________________________________________
Added: svn:ignore
   + .classpath 
.project 
.settings 
maven-eclipse.xml
target
bin
hs_err_pid*
.externalToolBuilders
.settings
.classpath
.project
package.info


Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/buildNumber.properties
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/buildNumber.properties	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/buildNumber.properties	(revision 38355)
@@ -0,0 +1,3 @@
+#maven.buildNumber.plugin properties file
+#Tue May 29 16:40:48 CEST 2012
+buildNumber=2055

Property changes on: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/buildNumber.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/prepare-workspace.xml
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/prepare-workspace.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/prepare-workspace.xml	(revision 38355)
@@ -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/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/prepare-workspace.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/pom.xml
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/pom.xml	(revision 38355)
@@ -0,0 +1,169 @@
+<?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.app</artifactId>
+    <packaging>pom</packaging>
+    <version>1.0.0-SNAPSHOT</version>
+    <name>org.gvsig.exportto.app</name>
+    <description>Extension of the Exportto example project</description>
+    <parent>
+        <groupId>org.gvsig</groupId>
+        <artifactId>org.gvsig.maven.base.extension.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/extensions/org.gvsig.exportto.app</connection>
+        <developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/extensions/org.gvsig.exportto.app</developerConnection>
+        <url>https://devel.gvsig.org/redmine/projects/gvsig-desktop/repository/show/branches/v2_0_0_prep/extensions/org.gvsig.exportto.app</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.andami</artifactId>
+                <version>2.0-SNAPSHOT</version>
+            </dependency>
+            <dependency>
+                <groupId>org.gvsig</groupId>
+                <artifactId>org.gvsig.app</artifactId>
+                <version>2.0-SNAPSHOT</version>
+            </dependency>
+            <dependency>
+                <groupId>org.gvsig</groupId>
+                <artifactId>org.gvsig.app.document.table.app.mainplugin</artifactId>
+                <version>2.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.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.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.file</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.jdbc</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.exportto.swing.prov.dbf</artifactId>
+                <version>1.0.0-SNAPSHOT</version>
+                <scope>runtime</scope>
+            </dependency>            
+        </dependencies>
+    </dependencyManagement>
+
+    <modules>
+        <module>org.gvsig.exportto.app.extension</module>
+    </modules>
+    <properties>
+    	<package.info.state>alpha5</package.info.state>
+    </properties>
+
+</project>
\ No newline at end of file

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

Index: tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/README.txt
===================================================================
--- tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/README.txt	(revision 0)
+++ tags/v2_0_0_Build_2047/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/README.txt	(revision 38355)
@@ -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/extensions/org.gvsig.exportto.app/org.gvsig.exportto.app/README.txt
___________________________________________________________________
Added: svn:mime-type
   + text/plain


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

.project


