Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/buildNumber.properties
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/buildNumber.properties	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/buildNumber.properties	(revision 37487)
@@ -0,0 +1,3 @@
+#maven.buildNumber.plugin properties file
+#Wed Nov 23 09:49:50 CET 2011
+buildNumber=2041

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

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/pom.xml
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/pom.xml	(revision 37487)
@@ -0,0 +1,73 @@
+<?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.symbology.app.importsymbols</artifactId>
+	<packaging>jar</packaging>
+	<name>Tools: Import marker symbols tool</name>
+        <description>Importador de simbolos puntuales a partir de las imagenes que existan en una carpeta</description>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.symbology.app</artifactId>
+		<version>2.0.0-SNAPSHOT</version>
+	</parent>
+	<profiles>
+    	<profile>
+    		<id>gvsig-install</id>
+    		<activation>
+    			<activeByDefault>true</activeByDefault>
+    		</activation>
+    		<properties>
+				<!--  gvSIG installation folder -->
+    			<gvsig.install.dir>${basedir}/../../build/product</gvsig.install.dir>
+    		</properties>
+    	</profile>
+   	</profiles>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.app</artifactId>
+		        <scope>compile</scope>
+		</dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.andami</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.i18n</artifactId>
+            <scope>compile</scope>
+        </dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.symbology.lib.api</artifactId>
+            <scope>compile</scope>
+		</dependency>		
+
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <scope>compile</scope>
+        </dependency>       
+        <dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.fmap.mapcontext</artifactId>
+            <scope>compile</scope>
+		</dependency>
+	</dependencies>
+    <properties>
+    	<package.info.dependencies>required: org.gvsig.app -ge 2</package.info.dependencies>
+	</properties>
+</project>

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

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/distribution/distribution.xml
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/distribution/distribution.xml	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/distribution/distribution.xml	(revision 37487)
@@ -0,0 +1,44 @@
+<assembly>
+	<id>distribution</id>
+	<formats>
+		<format>dir</format>
+	</formats>
+	<fileSets>
+		<fileSet>
+			<directory>src/main/resources/config</directory>
+			<outputDirectory>${extension.install.dir.name}
+			</outputDirectory>
+		</fileSet>
+		<fileSet>
+			<directory>src/main/resources/images</directory>
+			<outputDirectory>${extension.install.dir.name}/images
+			</outputDirectory>
+		</fileSet>
+		<fileSet>
+			<directory>src/main/resources/about</directory>
+			<outputDirectory>${extension.install.dir.name}
+			</outputDirectory>
+		</fileSet>
+		<fileSet>
+			<directory>src/main/resources/locale</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.symbology.app.importsymbols:jar</include>		
+			</includes>
+		</dependencySet>		
+	</dependencySets>
+</assembly>

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

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/buildNumber.properties
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/buildNumber.properties	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/buildNumber.properties	(revision 37487)
@@ -0,0 +1,3 @@
+#maven.buildNumber.plugin properties file
+#Wed Nov 23 09:49:51 CET 2011
+buildNumber=2042

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

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/panel/SelectSymbolsFolderImportPanel.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/panel/SelectSymbolsFolderImportPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/panel/SelectSymbolsFolderImportPanel.java	(revision 37487)
@@ -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.symbology.app.importsymbols.panel;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.MouseEvent;
+import java.awt.event.MouseListener;
+import java.io.File;
+import java.util.ArrayList;
+
+import javax.swing.JList;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.ListSelectionModel;
+
+import org.gvsig.andami.PluginsLocator;
+import org.gvsig.andami.PluginsManager;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class SelectSymbolsFolderImportPanel extends JPanel {
+
+    private static final long serialVersionUID = 948949741432221418L;
+
+    private JList folderJList;
+    private File symbolsDirectory = null;
+    private ArrayList<String> folders = null;
+
+    private ImportSymbolsPanel importSymbolsPanel;
+
+    public SelectSymbolsFolderImportPanel(ImportSymbolsPanel importSymbolsPanel) {
+        super();
+        this.importSymbolsPanel = importSymbolsPanel;
+        initComponents();
+    }
+
+    private void initComponents() {
+
+//        JLabel symbolsFolderLabel =
+//            new JLabel(getText("_select_folder_destination") + ":");
+
+        PluginsManager pluginManager = PluginsLocator.getManager();
+        symbolsDirectory =
+            new File(pluginManager.getApplicationHomeFolder() + File.separator
+                + "Symbols");
+
+        String[] itemsArray = symbolsDirectory.list();
+        folders = new ArrayList<String>();
+
+        for (int i = 0; i < itemsArray.length; i++) {
+            File f = new File(symbolsDirectory, itemsArray[i]);
+            if (f.isDirectory()) {
+                folders.add(itemsArray[i]);
+            }
+        }
+
+        folderJList = new JList(folders.toArray());
+        folderJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
+
+        folderJList.addMouseListener(new MouseClickListener(this));
+
+        // setLayout(new BorderLayout(2, 2));
+//         setBounds(2, 2, 200, 200);
+
+//        add(symbolsFolderLabel, BorderLayout.NORTH);
+
+        JScrollPane scroller = new JScrollPane(folderJList);
+
+        add(scroller);
+    }
+
+    public String getSelectedFolder() {
+        String folderName = folders.get(folderJList.getSelectedIndex());
+        // return new File(symbolsDirectory + "/" + folderName.toString());
+        return folderName;
+    }
+
+    public void setSelectedFolder(File selectedFile) {
+        folderJList.setSelectedValue(selectedFile, true);
+    }
+
+    public void actionPerformed(ActionEvent arg0) {
+        // TODO Auto-generated method stub
+    }
+
+    private class MouseClickListener implements MouseListener {
+
+        private SelectSymbolsFolderImportPanel parent;
+
+        public MouseClickListener(SelectSymbolsFolderImportPanel parent) {
+            this.parent = parent;
+        }
+
+        public void mouseReleased(MouseEvent e) {
+            // do nothing
+        }
+
+        public void mousePressed(MouseEvent e) {
+            // do nothing
+        }
+
+        public void mouseExited(MouseEvent e) {
+            // do nothing
+        }
+
+        public void mouseEntered(MouseEvent e) {
+            // do nothing
+        }
+
+        public void mouseClicked(MouseEvent e) {
+            String selectedFile = this.parent.getSelectedFolder();
+            this.parent.importSymbolsPanel.setTextFieldFolder(selectedFile);
+            importSymbolsPanel.updatePanel();
+        }
+    }
+    
+//    private String getText(String string) {
+//        return Messages.getText(string);
+//    }
+
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/panel/SelectSymbolsFolderImportPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/panel/ImportSymbolsPanel.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/panel/ImportSymbolsPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/panel/ImportSymbolsPanel.java	(revision 37487)
@@ -0,0 +1,432 @@
+/* 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.symbology.app.importsymbols.panel;
+
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.event.ActionEvent;
+import java.beans.PropertyChangeListener;
+import java.io.File;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.Set;
+
+import javax.swing.Action;
+import javax.swing.JButton;
+import javax.swing.JFileChooser;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JTextField;
+import javax.swing.border.EmptyBorder;
+import javax.swing.filechooser.FileFilter;
+
+import org.gvsig.fmap.mapcontext.MapContextLocator;
+import org.gvsig.fmap.mapcontext.rendering.symbols.SymbolManager;
+import org.gvsig.symbology.app.importsymbols.wizard.ImportSymbolsWizard;
+import org.gvsig.tools.swing.api.ToolsSwingLocator;
+import org.gvsig.tools.swing.api.usability.UsabilitySwingManager;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ImportSymbolsPanel extends JPanel {
+
+    private static final long serialVersionUID = 8666781163497235054L;
+
+    private static final Set<String> imageExtensionsAllowed;
+    static {
+        imageExtensionsAllowed = new HashSet<String>();
+        imageExtensionsAllowed.add("png");
+        imageExtensionsAllowed.add("jpg");
+        imageExtensionsAllowed.add("jpeg");
+        imageExtensionsAllowed.add("gif");
+        imageExtensionsAllowed.add("bmp");
+        imageExtensionsAllowed.add("svg");
+    }
+
+    ImportSymbolsWizard wizard;
+
+    private JButton botonImportar;
+    private JButton botonCerrar;
+    private JButton botonExaminar;
+    private JLabel labelOrigen;
+    private JLabel labelDestino;
+    private JTextField textFieldOrigen;
+    private JTextField textFieldDestino;
+    private JFileChooser fc = null;
+
+    private File destinationFolder;
+
+    private SelectSymbolsFolderImportPanel symbolsPanel;
+
+    public ImportSymbolsPanel(ImportSymbolsWizard wizard) {
+        super();
+        this.wizard = wizard;
+        initComponents();
+        createGUI();
+    }
+
+    private void initComponents() {
+
+        // primer seleccio de carpeta origen
+        labelOrigen =
+            new JLabel("1) " + getText("_select_images_to_import") + ":");
+
+        // despres seleccio carpeta desti
+        labelDestino =
+            new JLabel("2) " + getText("_select_destination_folder") + ":");
+
+        textFieldOrigen = new JTextField(20);
+        textFieldDestino = new JTextField(20);
+
+        symbolsPanel = new SelectSymbolsFolderImportPanel(this);
+    }
+
+    private void createGUI() {
+
+        // java.awt.FlowLayout flowLayout;
+        // this.setLayout(new java.awt.FlowLayout());
+
+        java.awt.GridBagConstraints gridBagConstraints;
+        this.setLayout(new java.awt.GridBagLayout());
+
+        // this.setSize(500,500);
+
+        // Add an empty margin
+        this.setBorder(new EmptyBorder(5, 5, 5, 5));
+
+        this.setBounds(3, 3, 2000, 2000);
+
+        UsabilitySwingManager usabilitymanager =
+            ToolsSwingLocator.getUsabilitySwingManager();
+
+        // JLabel layerText = new JLabel("_Select_a_layer:");
+        // JLabel transformText = new JLabel("_Select_a_transform:");
+        JPanel botones = new JPanel();
+
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        // gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
+        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
+        gridBagConstraints.gridwidth = 2;
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 0;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 0.0;
+        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
+        this.add(labelOrigen, gridBagConstraints);
+
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
+        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 1;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 0.0;
+        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
+        this.add(textFieldOrigen, gridBagConstraints);
+
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
+        gridBagConstraints.gridx = 1;
+        gridBagConstraints.gridy = 1;
+        gridBagConstraints.weightx = 0.0;
+        gridBagConstraints.weighty = 0.0;
+        botonExaminar = usabilitymanager.createJButton(new ActionExamine());
+        botonExaminar.setText("_examinar");
+        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
+        this.add(botonExaminar, gridBagConstraints);
+
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
+        gridBagConstraints.gridwidth = 2;
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 2;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 0.0;
+        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
+        this.add(labelDestino, gridBagConstraints);
+
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
+        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
+        gridBagConstraints.gridwidth = 2;
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 3;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 0.0;
+        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
+        this.add(textFieldDestino, gridBagConstraints);
+
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        // gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
+        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
+        gridBagConstraints.gridwidth = 2;
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 4;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 1.0;
+        gridBagConstraints.insets = new java.awt.Insets(10, 2, 5, 2);
+        this.add(symbolsPanel, gridBagConstraints);
+
+        botones.setLayout(new FlowLayout(FlowLayout.RIGHT));
+        botonImportar = usabilitymanager.createJButton(new ActionImport(this));
+        botonImportar.setText("_Import_simbols");
+        botonCerrar = usabilitymanager.createJButton(new ActionClose(this));
+        botonCerrar.setText("_Cancel");
+        botones.add(botonImportar);
+        botones.add(botonCerrar);
+        botonImportar.setEnabled(false);
+
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 5;
+        gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHEAST;
+        gridBagConstraints.gridwidth = 2;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 0.0;
+        gridBagConstraints.insets = new java.awt.Insets(10, 2, 2, 2);
+        this.add(botones, gridBagConstraints);
+
+        botonImportar.setEnabled(false);
+
+        updatePanel();
+    }
+
+    private void showFileChooser() {
+        // Create a file chooser
+        fc = new JFileChooser();
+        // Component parent = null;
+
+        // the fileChooser will only accept jpg, gif, png, jpeg, bmp and svg
+        // image formats
+        fc.setFileFilter(new FileFilter() {
+
+            /*
+             * Get the extension of a file.
+             */
+            public String getExtension(File f) {
+                String ext = null;
+                String s = f.getName();
+                int i = s.lastIndexOf('.');
+
+                if (i > 0 && i < s.length() - 1) {
+                    ext = s.substring(i + 1).toLowerCase();
+                }
+                return ext;
+            }
+
+            @Override
+            public String getDescription() {
+                return "JPG, GIF, PNG, JPEG, BMP & SVG Images";
+            }
+
+            @Override
+            public boolean accept(File f) {
+                if (f.isDirectory()) {
+                    return true;
+                }
+
+                String extension = getExtension(f);
+                return extension != null
+                    && imageExtensionsAllowed.contains(extension);
+            }
+        });
+
+        fc.setMultiSelectionEnabled(true);
+
+        // fc.showDialog(parent, getText("_Import_symbols"));
+        fc.showDialog(getParent(), getText("_Select_symbols"));
+
+    }
+
+    public ArrayList<File> getSelectedImages() {
+        ArrayList<File> selectedImagesList = new ArrayList<File>();
+
+        // TODO: comprobar que passa quan no se selecciona cap arxiu
+        for (int i = 0; i < fc.getSelectedFiles().length; i++) {
+            selectedImagesList.add(fc.getSelectedFiles()[i]);
+        }
+        return selectedImagesList;
+    }
+
+    @Override
+    public Dimension getPreferredSize() {
+        return new Dimension(250, 300);
+    }
+
+    private class ActionExamine implements Action {
+
+        public void addPropertyChangeListener(PropertyChangeListener arg0) {
+        }
+
+        public Object getValue(String arg0) {
+            return null;
+        }
+
+        public boolean isEnabled() {
+            return true;
+        }
+
+        public void putValue(String arg0, Object arg1) {
+        }
+
+        public void removePropertyChangeListener(PropertyChangeListener arg0) {
+        }
+
+        public void setEnabled(boolean arg0) {
+        }
+
+        public void actionPerformed(ActionEvent arg0) {
+            showFileChooser();
+
+            // set textFieldOrigen with the selected images
+            ArrayList<File> selectedImagesList = getSelectedImages();
+
+            // comprobar si s'ha seleccionat alguna imatge...
+            // if (selectedImagesList != null) {
+            String textOrigen = null;
+            for (int i = 0; i < selectedImagesList.size(); i++) {
+                if (textOrigen == null) {
+                    textOrigen = selectedImagesList.get(i).getName();
+                } else {
+                    textOrigen += ", " + selectedImagesList.get(i).getName();
+                }
+            }
+            // }
+            textFieldOrigen.setText(textOrigen);
+            updatePanel();
+        }
+
+    }
+
+    private class ActionImport implements Action {
+
+        private ImportSymbolsPanel parent;
+
+        public ActionImport(ImportSymbolsPanel parent) {
+            this.parent = parent;
+        }
+
+        public void addPropertyChangeListener(PropertyChangeListener listener) {
+        }
+
+        public Object getValue(String key) {
+            return null;
+        }
+
+        public boolean isEnabled() {
+            return true;
+        }
+
+        public void putValue(String key, Object value) {
+        }
+
+        public void removePropertyChangeListener(PropertyChangeListener listener) {
+        }
+
+        public void setEnabled(boolean b) {
+        }
+
+        public void actionPerformed(ActionEvent e) {
+            updatePanel();
+            wizard.addImages();
+            this.parent.wizard.setVisible(false);
+        }
+
+    }
+
+    private class ActionClose implements Action {
+
+        private ImportSymbolsPanel parent;
+
+        public ActionClose(ImportSymbolsPanel parent) {
+            this.parent = parent;
+        }
+
+        public void addPropertyChangeListener(PropertyChangeListener listener) {
+        }
+
+        public Object getValue(String key) {
+            return null;
+        }
+
+        public boolean isEnabled() {
+            return true;
+        }
+
+        public void putValue(String key, Object value) {
+        }
+
+        public void removePropertyChangeListener(PropertyChangeListener listener) {
+        }
+
+        public void setEnabled(boolean b) {
+        }
+
+        public void actionPerformed(ActionEvent e) {
+            this.parent.wizard.setVisible(false);
+        }
+
+    }
+
+
+    public void updatePanel() {
+
+        SymbolManager manager = MapContextLocator.getSymbolManager();
+        File symbolsFolder = new File(manager.getSymbolPreferences().getSymbolLibraryPath());
+        
+        // update destination folder
+        if (textFieldDestino.getText().equals("")) {
+            destinationFolder = symbolsFolder;
+        } else {
+            destinationFolder = new File(symbolsFolder + "/" + textFieldDestino.getText());
+        }
+        
+        if (fc != null) {
+            if (fc.getSelectedFiles().length > 0) {
+                botonImportar.setEnabled(true);
+            } else {
+                botonImportar.setEnabled(false);
+            }
+        } else {
+            botonImportar.setEnabled(false);
+        }
+
+        textFieldOrigen.getText();
+
+    }
+
+    private String getText(String msg) {
+        return msg;
+    }
+
+    public void setTextFieldFolder(String selectedFile) {
+        textFieldDestino.setText(selectedFile);
+    }
+
+    public File getDestinationFolder() {
+        return destinationFolder;
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/panel/ImportSymbolsPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportSymbolsExtension.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportSymbolsExtension.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportSymbolsExtension.java	(revision 37487)
@@ -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.symbology.app.importsymbols;
+
+import org.gvsig.andami.plugins.Extension;
+import org.gvsig.andami.ui.ToolsWindowManager;
+import org.gvsig.i18n.Messages;
+import org.gvsig.symbology.app.importsymbols.wizard.ImportSymbolsWizard;
+import org.gvsig.tools.swing.api.windowmanager.WindowManager;
+
+public class ImportSymbolsExtension extends Extension {
+
+    public void initialize() {
+
+    }
+
+    @Override
+    public void postInitialize() {
+
+    }
+
+    public boolean isEnabled() {
+        return true;
+    }
+
+    public boolean isVisible() {
+        return true;
+    }
+
+    public void execute(String actionCommand) {
+        if (actionCommand.equalsIgnoreCase("Import_symbols")) {
+
+            ImportSymbolsWizard wizard = new ImportSymbolsWizard();
+
+            WindowManager windowManager = new ToolsWindowManager();
+            windowManager.showWindow(wizard,
+                Messages.getText("_Import_wizard"), WindowManager.MODE.DIALOG);
+
+        }
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportSymbolsExtension.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/wizard/ImportSymbolsWizard.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/wizard/ImportSymbolsWizard.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/wizard/ImportSymbolsWizard.java	(revision 37487)
@@ -0,0 +1,266 @@
+/* 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.symbology.app.importsymbols.wizard;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.net.URL;
+import java.text.MessageFormat;
+import java.util.ArrayList;
+
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import org.gvsig.fmap.mapcontext.MapContextLocator;
+import org.gvsig.fmap.mapcontext.rendering.symbols.SymbolManager;
+import org.gvsig.symbology.SymbologyLocator;
+import org.gvsig.symbology.SymbologyManager;
+import org.gvsig.symbology.app.importsymbols.ImportSymbolsExtension;
+import org.gvsig.symbology.app.importsymbols.panel.ImportSymbolsPanel;
+import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IPictureMarkerSymbol;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.persistence.PersistenceManager;
+import org.gvsig.tools.persistence.PersistentState;
+import org.gvsig.tools.persistence.exception.PersistenceException;
+import org.gvsig.tools.persistence.exception.PersistenceValidateExceptions;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class ImportSymbolsWizard extends JPanel {
+
+    private static final long serialVersionUID = 3659310319939677441L;
+    private static Logger LOG =
+        LoggerFactory.getLogger(ImportSymbolsExtension.class);
+
+    private ImportSymbolsPanel panel = null;
+
+    public ImportSymbolsWizard() {
+        super();
+        panel = new ImportSymbolsPanel(this);
+        this.add(panel);
+    }
+
+    public String getPanelTitle() {
+        return getText("_Import_Symbols");
+    }
+
+    public JPanel getPanel() {
+        return panel;
+    }
+
+    public void addImages() {
+        ArrayList<File> selectedImageFiles = panel.getSelectedImages();
+
+        for (int i = 0; i < selectedImageFiles.size(); i++) {
+            try {
+                System.out.println("image: " + selectedImageFiles.get(i).getPath());
+                addImageSymbol(selectedImageFiles.get(i));
+            } catch (IOException e) {
+                LOG
+                    .error(
+                        MessageFormat
+                            .format(
+                                getText("_An error_ocurred_creating_the_symbol_related_to_{0}"),
+                                selectedImageFiles.get(i).getAbsolutePath()), e);
+
+                // Error message, the symbol may not have been imported.
+                JOptionPane
+                    .showMessageDialog(
+                        null,
+                        MessageFormat
+                            .format(
+                                getText("_An_error_ocurred_creating_the_simbol_related_to_{0}"),
+                                selectedImageFiles.get(i).getAbsolutePath()),
+                        "_Import_symbols", JOptionPane.ERROR_MESSAGE);
+            }
+        }
+        // Message that the import has finished, with or without errors.
+        JOptionPane.showMessageDialog(null,
+            getText("_Importing_symbols_has_finished."), "_Import_symbols",
+            JOptionPane.INFORMATION_MESSAGE);
+    }
+
+    private void addImageSymbol(File image) throws IOException {
+
+        int option;
+        boolean sobreescribir = true;
+        File selImage = getSelImage(image);
+
+        // if home/gvSIG/Symbols does not exist, it is created.
+        if (!getOutputFolderPath().exists()) {
+            getOutputFolderPath().mkdir();
+        }
+
+        File imageOut = new File(getOutputFolderPath() + "/" + image.getName());
+        File selImageOut =
+            new File(getOutputFolderPath() + "/" + selImage.getName());
+        
+        System.out.println("imageOut: " + imageOut.getPath());
+        System.out.println("selimageOut: " + selImageOut.getPath());
+
+        // Overwrite or not
+        if (imageOut.exists()) {
+            Object[] options = { getText("_Overwrite"), getText("_Cancel") };
+
+            option =
+                JOptionPane
+                    .showOptionDialog(
+                        null,
+                        MessageFormat
+                            .format(
+                                getText("The file_{0}_already_exists.\n\n_Do_you_want_to_overwrite_it?"),
+                                imageOut.getPath()),
+                        getText("_Import_symbols"), JOptionPane.DEFAULT_OPTION,
+                        JOptionPane.INFORMATION_MESSAGE, null, options,
+                        options[0]);
+
+            if (option == 1) {
+                sobreescribir = false;
+            }
+        }
+
+        SymbologyManager manager = SymbologyLocator.getSymbologyManager();
+        SymbolManager symbolManager = MapContextLocator.getSymbolManager();
+
+        if (sobreescribir) {
+            try {
+
+                // Copies the image to the output folder
+                copy(image, imageOut);
+
+                URL imageURL = imageOut.toURI().toURL();
+                URL selImageURL = null;
+
+                // tries to copy the selection image
+                if (selImage.exists()) {
+                    copy(selImage, selImageOut);
+                    selImageURL = selImageOut.toURI().toURL();
+                }
+
+                IPictureMarkerSymbol symbol =
+                    manager.createPictureMarkerSymbol(imageURL, selImageURL);
+
+                PersistenceManager persistenceManager =
+                    ToolsLocator.getPersistenceManager();
+
+                PersistentState state = persistenceManager.getState(symbol);
+
+                // change file extension
+                String outFileName =
+                    deleteExtension(imageOut)
+                        + symbolManager.getSymbolPreferences()
+                            .getSymbolFileExtension();
+
+                FileOutputStream out = new FileOutputStream(outFileName);
+                persistenceManager.saveState(state, out);
+
+            } catch (PersistenceValidateExceptions e) {
+                IOException ioex = new IOException();
+                ioex.initCause(e);
+                throw ioex;
+            } catch (PersistenceException e) {
+                IOException ioex = new IOException();
+                ioex.initCause(e);
+                throw ioex;
+            }
+        } else {
+
+        }
+    }
+
+    // gets the selection image (from filename.png it returns filenamesel.png,
+    // for example)
+    private File getSelImage(File imageIn) {
+
+        String cadena = deleteExtension(imageIn);
+        String extension =
+            imageIn.getPath().substring(imageIn.getPath().lastIndexOf("."),
+                imageIn.getPath().length());
+
+        String selPath = cadena + "sel" + extension;
+        File imageOut = new File(selPath);
+
+        return imageOut;
+
+    }
+
+    // Copies File imageIn to imageOut
+    private void copy(File imageIn, File imageOut) throws IOException {
+
+        FileInputStream from = null;
+        FileOutputStream to = null;
+
+        from = new FileInputStream(imageIn.getPath());
+        to = new FileOutputStream(imageOut.getPath());
+
+        try {
+
+            byte[] buffer = new byte[4096];
+            int bytesRead;
+
+            while ((bytesRead = from.read(buffer)) != -1) {
+                to.write(buffer, 0, bytesRead); // write
+            }
+
+        } finally {
+            if (from != null) {
+                try {
+                    from.close();
+                } catch (IOException e) {
+                    ;
+                }
+            }
+            if (to != null) {
+                try {
+                    to.close();
+                } catch (IOException e) {
+                    ;
+                }
+            }
+        }
+
+    }
+
+    private File getOutputFolderPath() {
+        return panel.getDestinationFolder();
+    }
+
+    private String deleteExtension(File file) {
+        String outFileName =
+            file.getPath().substring(0, file.getPath().lastIndexOf("."));
+        return outFileName;
+    }
+
+    private String getText(String msg) {
+        return msg;
+        // return Messages.getText(msg);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/wizard/ImportSymbolsWizard.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/locale/text.properties
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/locale/text.properties	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/locale/text.properties	(revision 37487)
@@ -0,0 +1,6 @@
+make_plugin_package=Crear paquete instalación de plugin
+make_plugin_package_description=Crea un paquete de instalación de un plugin instalado
+install_package=Instalar un nuevo paquete
+install_package_description=instala un nuevo paquete (plugin, traducciones, tema, etc.) en gvSIG
+install_package_extension_warning=Herramienta en desarrollo no exenta de fallos. ¿Desea continuar?
+select_an_option=Seleccione una opción
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/locale/text.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/locale/text_en.properties
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/locale/text_en.properties	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/locale/text_en.properties	(revision 37487)
@@ -0,0 +1,6 @@
+make_plugin_package=Create plugin installation package
+make_plugin_package_description=Create an installation package from an already installed plugin
+install_package=Install a new package
+install_package_description=Installs a new package (plugin, translations, theme, etc.) in gvSIG
+install_package_extension_warning=Tool under development. It may contain errors. Continue anyway?
+select_an_option=Select an Option
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/locale/text_en.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/config/config.xml
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/config/config.xml	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/config/config.xml	(revision 37487)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<plugin-config>
+	<libraries library-dir="lib"/>
+	<depends plugin-name="org.gvsig.app"/>
+	<resourceBundle name="text"/>
+	<extensions>
+		<extension class-name="org.gvsig.symbology.app.importsymbols.ImportSymbolsExtension"
+			description=""
+			active="true">
+			<menu text="tools/Symbols/Import symbols"
+				  tooltip="Punctual symbol importer from images that exist in a folder"
+				  action-command="Import_symbols" />			
+		</extension>
+	</extensions>
+</plugin-config>

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


Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols
___________________________________________________________________
Added: svn:ignore
   + .settings
target
.classpath
.project
package.info


Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/buildNumber.properties
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/buildNumber.properties	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/buildNumber.properties	(revision 37487)
@@ -0,0 +1,3 @@
+#maven.buildNumber.plugin properties file
+#Wed Nov 23 09:49:53 CET 2011
+buildNumber=2040

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

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/panel/SelectSymbolsFolderInstallPanel.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/panel/SelectSymbolsFolderInstallPanel.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/panel/SelectSymbolsFolderInstallPanel.java	(revision 37487)
@@ -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.symbology.app.symbolinstaller.creation.panel;
+
+import java.awt.BorderLayout;
+import java.awt.event.ActionEvent;
+import java.io.File;
+import java.util.ArrayList;
+
+import javax.swing.JLabel;
+import javax.swing.JList;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.ListSelectionModel;
+
+import org.gvsig.andami.PluginsLocator;
+import org.gvsig.andami.PluginsManager;
+import org.gvsig.i18n.Messages;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class SelectSymbolsFolderInstallPanel extends JPanel {
+
+    private static final long serialVersionUID = 948949741432221418L;
+
+    private JList folderJList;
+    private File symbolsDirectory = null;
+    private ArrayList<String> folders = null;
+
+    public SelectSymbolsFolderInstallPanel() {
+        super();
+        initComponents();
+    }
+
+    private String getText(String string) {
+        return Messages.getText(string);
+    }
+
+    private void initComponents() {
+
+        JLabel symbolsFolderLabel =
+            new JLabel(
+                getText("_select_the_folder_to_create_the_package_with")
+                    + ":");
+
+        PluginsManager pluginManager = PluginsLocator.getManager();
+        symbolsDirectory =
+            new File(pluginManager.getApplicationHomeFolder() + File.separator
+                + "Symbols");
+
+        String[] itemsArray = symbolsDirectory.list();
+        folders = new ArrayList<String>();
+
+        for (int i = 0; i < itemsArray.length; i++) {
+            File f = new File(symbolsDirectory, itemsArray[i]);
+            if (f.isDirectory()) {
+                folders.add(itemsArray[i]);
+            }
+        }
+
+        folderJList = new JList(folders.toArray());
+        folderJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
+
+        // TODO: actionEvent should be added
+        folderJList.setSelectedIndex(0);
+
+        setLayout(new BorderLayout(2, 2));
+        setBounds(2, 2, 2, 2);
+
+        add(symbolsFolderLabel, BorderLayout.NORTH);
+
+        JScrollPane scroller = new JScrollPane(folderJList);
+
+        add(scroller);
+    }
+
+    public File getSelectedFolder() {
+        String folderName = folders.get(folderJList.getSelectedIndex());
+        return new File(symbolsDirectory + "/" + folderName.toString());
+    }
+
+    public void setSelectedFolder(File selectedFile) {
+        folderJList.setSelectedValue(selectedFile, true);
+    }
+
+    public void actionPerformed(ActionEvent arg0) {
+        // TODO Auto-generated method stub
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/panel/SelectSymbolsFolderInstallPanel.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/OutputWizard.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/OutputWizard.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/OutputWizard.java	(revision 37487)
@@ -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.
+ * 
+ */
+
+/*
+ * AUTHORS (In addition to CIT):
+ * 2010 {Prodevelop}   {Task}
+ */
+
+package org.gvsig.symbology.app.symbolinstaller.creation.wizard;
+
+import java.io.File;
+import java.net.URL;
+
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+
+import org.gvsig.andami.PluginsLocator;
+import org.gvsig.andami.PluginsManager;
+import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException;
+import org.gvsig.gui.beans.wizard.panel.OptionPanel;
+import org.gvsig.i18n.Messages;
+import org.gvsig.installer.lib.api.InstallerLocator;
+import org.gvsig.installer.lib.api.PackageInfo;
+import org.gvsig.installer.swing.api.SwingInstallerLocator;
+import org.gvsig.installer.swing.api.creation.JOutputPanel;
+import org.gvsig.symbology.app.symbolinstaller.creation.DefaultMakeSymbolPackageWizard;
+
+/**
+ * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
+ */
+public class OutputWizard implements OptionPanel {
+
+    private JOutputPanel outputPanel;
+    private PackageInfo packageInfo;
+
+    // private DefaultMakeSymbolPackageWizard wizard;
+
+    // private static final Logger logger =
+    // LoggerFactory.getLogger(OutputWizard.class);
+
+    public OutputWizard(DefaultMakeSymbolPackageWizard wizard,
+        PackageInfo packageInfo) {
+        super();
+        // this.wizard = wizard;
+        outputPanel =
+            SwingInstallerLocator.getSwingInstallerManager()
+                .createOutputPanel();
+        this.packageInfo = packageInfo;
+    }
+
+    public JPanel getJPanel() {
+        return this.outputPanel;
+    }
+
+    private String getText(String msg) {
+        return Messages.getText(msg);
+    }
+
+    public String getPanelTitle() {
+        return getText("_output_options");
+    }
+
+    public void lastPanel() {
+
+    }
+
+    public void nextPanel() throws NotContinueWizardException {
+        // try {
+        File file = outputPanel.getPackageFile();
+        File filePath = new File(file.getParent());
+        if (!filePath.exists()) {
+            JOptionPane.showMessageDialog(outputPanel,
+                getText("_the_package_file_folder_does_not_exist") + ": "
+                    + filePath);
+            throw new NotContinueWizardException("", null, false);
+        }
+        if (outputPanel.isCreatePackageIndex()) {
+            URL url = outputPanel.getDownloadURL();
+            if (url == null) {
+                throw new NotContinueWizardException("", null, false);
+            }
+            File indexFile = outputPanel.getPackageIndexFile();
+            File indexFilePath = new File(indexFile.getParent());
+            if (!indexFilePath.exists()) {
+                JOptionPane.showMessageDialog(outputPanel,
+                    getText("_the_package_index_file_folder_does_not_exist")
+                        + ": " + indexFilePath);
+                throw new NotContinueWizardException("", null, false);
+            }
+        }
+        // } catch (FileNotFoundException e) {
+        // logger.info(
+        // getText("create_output_file_exception"), e);
+        // JOptionPane.showMessageDialog(wizard,
+        // getText("create_output_file_exception"));
+        // }
+    }
+
+    public void updatePanel() {
+        outputPanel.setPackageFile(getDefaultPackageBundleFile());
+        outputPanel.setPackageIndexFile(getDefaultPackageIndexBundleFile());
+    }
+
+    private File getDefaultPackageBundleFile() {
+        PluginsManager manager = PluginsLocator.getManager();
+        File installsFolder = manager.getInstallFolder();
+        String fileName =
+            InstallerLocator.getInstallerManager().getPackageFileName(
+                packageInfo);
+        return new File(installsFolder, fileName);
+    }
+
+    private File getDefaultPackageIndexBundleFile() {
+        PluginsManager manager = PluginsLocator.getManager();
+        File installsFolder = manager.getInstallFolder();
+        String fileName =
+            InstallerLocator.getInstallerManager().getPackageIndexFileName(
+                packageInfo);
+        return new File(installsFolder, fileName);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/OutputWizard.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/ProgressWizard.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/ProgressWizard.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/ProgressWizard.java	(revision 37487)
@@ -0,0 +1,158 @@
+/* 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.symbology.app.symbolinstaller.creation.wizard;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.OutputStream;
+
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+
+import org.gvsig.gui.beans.wizard.panel.OptionPanel;
+import org.gvsig.i18n.Messages;
+import org.gvsig.installer.lib.api.InstallerLocator;
+import org.gvsig.installer.lib.api.PackageInfo;
+import org.gvsig.installer.lib.api.creation.MakePackageService;
+import org.gvsig.installer.lib.api.creation.MakePackageServiceException;
+import org.gvsig.installer.swing.api.JProgressPanel;
+import org.gvsig.installer.swing.api.SwingInstallerLocator;
+import org.gvsig.installer.swing.api.creation.JOutputPanel;
+import org.gvsig.symbology.app.symbolinstaller.creation.DefaultMakeSymbolPackageWizard;
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.task.SimpleTaskStatus;
+
+/**
+ * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
+ */
+public class ProgressWizard implements OptionPanel {
+
+    private DefaultMakeSymbolPackageWizard wizard;
+    private PackageInfo packageInfo;
+    private JOutputPanel outputPanel;
+    private JProgressPanel progressPanel;
+
+    public ProgressWizard(DefaultMakeSymbolPackageWizard wizard,
+        PackageInfo packageInfo, JOutputPanel outputPanel) {
+        super();
+        this.wizard = wizard;
+        this.packageInfo = packageInfo;
+        this.outputPanel = outputPanel;
+        progressPanel =
+            SwingInstallerLocator.getSwingInstallerManager()
+                .createProgressPanel();
+    }
+
+    private String getText(String msg) {
+        return Messages.getText(msg);
+    }
+
+    public JPanel getJPanel() {
+        return this.progressPanel;
+    }
+
+    public String getPanelTitle() {
+        return Messages.getText("_Installer_progress");
+    }
+
+    public void lastPanel() {
+        wizard.setFinishButtonEnabled(false);
+        wizard.setCancelButtonEnabled(true);
+    }
+
+    public void nextPanel() {
+        // Do nothing
+    }
+
+    public void updatePanel() {
+
+        OutputStream outputStream =
+            openFileOutputStream(outputPanel.getPackageFile());
+        if (outputStream == null) {
+            return;
+        }
+        OutputStream indexOutputStream = null;
+        if (outputPanel.isCreatePackageIndex()) {
+            indexOutputStream =
+                openFileOutputStream(outputPanel.getPackageIndexFile());
+            if (indexOutputStream == null) {
+                return;
+            }
+        }
+
+        wizard.setFinishButtonEnabled(false);
+        wizard.setCancelButtonEnabled(false);
+
+        SimpleTaskStatus taskStatus =
+            ToolsLocator.getTaskStatusManager().createDefaultSimpleTaskStatus(
+                packageInfo.getName());
+
+        this.progressPanel.bind(taskStatus);
+
+        try {
+
+            MakePackageService makePackageService =
+                InstallerLocator.getInstallerManager().createMakePackage(
+                    wizard.getSymbolFolderToInsertInPackage(), packageInfo);
+
+            taskStatus.message(getText("_Compressing"));
+
+            makePackageService.preparePackage();
+            makePackageService.createPackage(outputStream);
+            if (indexOutputStream != null) {
+                taskStatus.message(getText("_Creating_index"));
+                makePackageService.createPackageIndex(outputPanel
+                    .getDownloadURL(), indexOutputStream);
+            }
+            taskStatus.terminate();
+
+            // Set the finished text
+            taskStatus.message(getText("_Finished"));
+        } catch (MakePackageServiceException e) {
+            JOptionPane.showMessageDialog(null, getText("_cant_create_the_package")
+                + "\n\n" + e.getLocalizedMessageStack(),
+                getText("_create_package"), JOptionPane.ERROR_MESSAGE);
+        }
+        wizard.setFinishButtonEnabled(true);
+        wizard.setCancelButtonEnabled(false);
+    }
+
+    private OutputStream openFileOutputStream(File file) {
+        OutputStream os;
+
+        try {
+            os = new FileOutputStream(file);
+        } catch (FileNotFoundException e1) {
+            JOptionPane.showMessageDialog(null,
+                getText("_cant_create_the_package") + " (" + file + ").",
+                getText("_create_package"), JOptionPane.WARNING_MESSAGE);
+            return null;
+        }
+        return os;
+    }
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/ProgressWizard.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/PackageInfoWizard.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/PackageInfoWizard.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/PackageInfoWizard.java	(revision 37487)
@@ -0,0 +1,89 @@
+package org.gvsig.symbology.app.symbolinstaller.creation.wizard;
+
+/* 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}
+ */
+
+import javax.swing.JPanel;
+
+import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException;
+import org.gvsig.gui.beans.wizard.panel.OptionPanel;
+import org.gvsig.i18n.Messages;
+import org.gvsig.installer.lib.api.PackageInfo;
+import org.gvsig.installer.swing.api.SwingInstallerLocator;
+import org.gvsig.installer.swing.api.creation.JPackageInfoPanel;
+import org.gvsig.symbology.app.symbolinstaller.creation.DefaultMakeSymbolPackageWizard;
+
+/**
+ * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
+ */
+public class PackageInfoWizard implements OptionPanel {
+
+    private JPackageInfoPanel packageInfoPanel;
+
+    private PackageInfo packageInfo;
+
+    // private DefaultMakeSymbolPackageWizard wizard;
+
+    public PackageInfoWizard(DefaultMakeSymbolPackageWizard wizard,
+        PackageInfo packageInfo) {
+        super();
+        // this.wizard = wizard;
+        this.packageInfoPanel =
+            SwingInstallerLocator.getSwingInstallerManager()
+                .createPackageInfoPanel();
+        this.packageInfo = packageInfo;
+    }
+
+    private String getText(String msg) {
+        return Messages.getText(msg);
+    }
+
+    public JPanel getJPanel() {
+        return this.packageInfoPanel;
+    }
+
+    public String getPanelTitle() {
+        return getText("_plugin_description");
+    }
+
+    public void lastPanel() {
+        // TODO Auto-generated method stub
+
+    }
+
+    public void nextPanel() throws NotContinueWizardException {
+        if (!this.packageInfoPanel.validatePanel()) {
+            throw new NotContinueWizardException("", null, false);
+        }
+        this.packageInfoPanel.panelToPackageInfo(packageInfo);
+    }
+
+    public void updatePanel() {
+        this.packageInfoPanel.packageInfoToPanel(packageInfo);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/PackageInfoWizard.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/SelectSymbolsFolderInstallWizard.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/SelectSymbolsFolderInstallWizard.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/SelectSymbolsFolderInstallWizard.java	(revision 37487)
@@ -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.symbology.app.symbolinstaller.creation.wizard;
+
+import javax.swing.JPanel;
+
+import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException;
+import org.gvsig.gui.beans.wizard.panel.OptionPanel;
+import org.gvsig.i18n.Messages;
+import org.gvsig.installer.lib.api.PackageInfo;
+import org.gvsig.symbology.app.symbolinstaller.creation.DefaultMakeSymbolPackageWizard;
+import org.gvsig.symbology.app.symbolinstaller.creation.panel.SelectSymbolsFolderInstallPanel;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class SelectSymbolsFolderInstallWizard implements OptionPanel {
+
+    private SelectSymbolsFolderInstallPanel panel = null;
+    // private PackageInfo packageInfo;
+    DefaultMakeSymbolPackageWizard wizard;
+
+    /**
+     * @param defaultMakeSymbolPackageWizard
+     * @param packageInfo
+     */
+    public SelectSymbolsFolderInstallWizard(
+        DefaultMakeSymbolPackageWizard defaultMakeSymbolPackageWizard,
+        PackageInfo packageInfo) {
+        super();
+        wizard = defaultMakeSymbolPackageWizard;
+        panel = new SelectSymbolsFolderInstallPanel();
+        // this.packageInfo = packageInfo;
+    }
+
+    public JPanel getJPanel() {
+        return panel;
+    }
+
+    public void lastPanel() {
+
+    }
+
+    public void nextPanel() throws NotContinueWizardException {
+
+        wizard.setSymbolFolderToInsertInPackage(panel.getSelectedFolder());
+    }
+
+    public void updatePanel() {
+
+    }
+
+    public String getPanelTitle() {
+        return getText("_select_symbol_folder");
+    }
+
+    private String getText(String msg) {
+        return Messages.getText(msg);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/SelectSymbolsFolderInstallWizard.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/DefaultMakeSymbolPackageWizard.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/DefaultMakeSymbolPackageWizard.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/DefaultMakeSymbolPackageWizard.java	(revision 37487)
@@ -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.symbology.app.symbolinstaller.creation;
+
+import java.awt.BorderLayout;
+import java.io.File;
+import java.net.URL;
+
+import javax.swing.ImageIcon;
+import javax.swing.JPanel;
+
+import org.gvsig.gui.beans.wizard.WizardPanel;
+import org.gvsig.gui.beans.wizard.WizardPanelActionListener;
+import org.gvsig.gui.beans.wizard.WizardPanelWithLogo;
+import org.gvsig.installer.lib.api.InstallerLocator;
+import org.gvsig.installer.lib.api.PackageInfo;
+import org.gvsig.installer.swing.api.creation.JOutputPanel;
+import org.gvsig.symbology.app.symbolinstaller.WizardListenerAdapter;
+import org.gvsig.symbology.app.symbolinstaller.creation.wizard.OutputWizard;
+import org.gvsig.symbology.app.symbolinstaller.creation.wizard.PackageInfoWizard;
+import org.gvsig.symbology.app.symbolinstaller.creation.wizard.ProgressWizard;
+import org.gvsig.symbology.app.symbolinstaller.creation.wizard.SelectSymbolsFolderInstallWizard;
+import org.gvsig.symbology.app.symbolinstaller.execution.SymbolInstallerExecutionProviderFactory;
+import org.gvsig.tools.locator.LocatorException;
+
+public class DefaultMakeSymbolPackageWizard extends JPanel implements
+    WizardPanel {
+
+    private static final long serialVersionUID = 9205891710214122265L;
+    private WizardPanelWithLogo wizardPanelWithLogo = null;
+
+    // Wizards
+    private PackageInfoWizard packageInfoWizard = null;
+    private ProgressWizard progressWizard = null;
+    private OutputWizard outputWizard = null;
+    private SelectSymbolsFolderInstallWizard selectSymbolsFolderInstallWizard =
+        null;
+    private PackageInfo packageInfo = null;
+
+    private File symbolFolderToInsertInPackage = null;
+
+    private WizardListenerAdapter wizardListenerAdapter = null;
+
+    public DefaultMakeSymbolPackageWizard() throws LocatorException {
+        URL iconURL =
+            getClass().getClassLoader().getResource(
+                "images/makepluginpackageicon.png");
+        ImageIcon icon = new ImageIcon(iconURL);
+        wizardPanelWithLogo = new WizardPanelWithLogo(icon);
+
+        setCancelButtonEnabled(true);
+        setFinishButtonEnabled(false);
+
+        // WizardPanel wizardPanel = this;
+
+        packageInfo =
+            InstallerLocator.getInstallerManager().createPackageInfo();
+        packageInfo
+            .setType(SymbolInstallerExecutionProviderFactory.PROVIDER_NAME);
+
+        selectSymbolsFolderInstallWizard =
+            new SelectSymbolsFolderInstallWizard(this, packageInfo);
+        packageInfoWizard = new PackageInfoWizard(this, packageInfo);
+        outputWizard = new OutputWizard(this, packageInfo);
+        progressWizard =
+            new ProgressWizard(this, packageInfo, (JOutputPanel) (outputWizard
+                .getJPanel()));
+
+        addWizards();
+
+        // Adding the listeners
+        wizardPanelWithLogo.setWizardListener(this);
+
+        this.setLayout(new BorderLayout());
+        this.add(wizardPanelWithLogo, BorderLayout.CENTER);
+    }
+
+    private void addWizards() {
+        wizardPanelWithLogo.addOptionPanel(selectSymbolsFolderInstallWizard);
+        wizardPanelWithLogo.addOptionPanel(packageInfoWizard);
+        wizardPanelWithLogo.addOptionPanel(outputWizard);
+        wizardPanelWithLogo.addOptionPanel(progressWizard);
+    }
+
+    public void setNextButtonEnabled(boolean isEnabled) {
+        wizardPanelWithLogo.setNextButtonEnabled(isEnabled);
+    }
+
+    public void setCancelButtonEnabled(boolean isEnabled) {
+        wizardPanelWithLogo.setCancelButtonEnabled(isEnabled);
+    }
+
+    public void setFinishButtonEnabled(boolean isEnabled) {
+        wizardPanelWithLogo.setFinishButtonEnabled(isEnabled);
+    }
+
+    public void setBackButtonEnabled(boolean isEnabled) {
+        wizardPanelWithLogo.setBackButtonEnabled(isEnabled);
+    }
+
+    public WizardPanelActionListener getWizardPanelActionListener() {
+        if (wizardListenerAdapter == null) { // && (getWizardActionListener() !=
+            // null))) {
+            return new WizardListenerAdapter(this);
+        }
+        return wizardListenerAdapter;
+    }
+
+    public void setWizardPanelActionListener(
+        WizardPanelActionListener wizardActionListener) {
+        // TODO Auto-generated method stub
+        // this.wizardListenerAdapter = wizardActionListener;
+        throw new RuntimeException("Esto falta por ver que hace");
+    }
+
+    public void setSymbolFolderToInsertInPackage(File file) {
+        symbolFolderToInsertInPackage = file;
+    }
+
+    public File getSymbolFolderToInsertInPackage() {
+        return symbolFolderToInsertInPackage;
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/DefaultMakeSymbolPackageWizard.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/WizardListenerAdapter.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/WizardListenerAdapter.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/WizardListenerAdapter.java	(revision 37487)
@@ -0,0 +1,51 @@
+/* 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.symbology.app.symbolinstaller;
+
+import org.gvsig.gui.beans.wizard.WizardPanel;
+import org.gvsig.gui.beans.wizard.WizardPanelActionListener;
+import org.gvsig.symbology.app.symbolinstaller.creation.DefaultMakeSymbolPackageWizard;
+
+/**
+ * @author gvSIG Team
+ * @version $Id$
+ * 
+ */
+public class WizardListenerAdapter implements WizardPanelActionListener {
+
+    private DefaultMakeSymbolPackageWizard installerWizardPanel;
+
+    public WizardListenerAdapter(
+        DefaultMakeSymbolPackageWizard installerWizardPanel) {
+        super();
+        this.installerWizardPanel = installerWizardPanel;
+    }
+
+    public void cancel(WizardPanel wizardPanel) {
+        installerWizardPanel.setVisible(false);
+    }
+
+    public void finish(WizardPanel wizardPanel) {
+        installerWizardPanel.setVisible(false);
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/WizardListenerAdapter.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/SymbolInstallerProviderLibrary.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/SymbolInstallerProviderLibrary.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/SymbolInstallerProviderLibrary.java	(revision 37487)
@@ -0,0 +1,51 @@
+/* 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.symbology.app.symbolinstaller;
+
+import org.gvsig.installer.lib.api.InstallerLibrary;
+import org.gvsig.installer.lib.spi.InstallerProviderLocator;
+import org.gvsig.symbology.app.symbolinstaller.execution.SymbolInstallerExecutionProviderFactory;
+import org.gvsig.tools.library.AbstractLibrary;
+import org.gvsig.tools.library.LibraryException;
+import org.gvsig.tools.service.spi.ProviderManager;
+
+public class SymbolInstallerProviderLibrary extends AbstractLibrary {
+
+    @Override
+    public void doRegistration() {
+        registerAsServiceOf(InstallerLibrary.class);
+    }
+
+    @Override
+    protected void doInitialize() throws LibraryException {
+    }
+
+    @Override
+    protected void doPostInitialize() throws LibraryException {
+        ProviderManager providerManager =
+            InstallerProviderLocator.getProviderManager();
+
+        providerManager
+            .addProviderFactory(new SymbolInstallerExecutionProviderFactory());
+    }
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/SymbolInstallerProviderLibrary.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExtension.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExtension.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExtension.java	(revision 37487)
@@ -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.symbology.app.symbolinstaller.execution;
+
+import java.util.Locale;
+
+import org.gvsig.andami.plugins.Extension;
+import org.gvsig.andami.ui.ToolsWindowManager;
+import org.gvsig.i18n.Messages;
+import org.gvsig.symbology.app.symbolinstaller.creation.DefaultMakeSymbolPackageWizard;
+import org.gvsig.tools.swing.api.windowmanager.WindowManager;
+
+public class SymbolInstallerExtension extends Extension {
+
+    public void initialize() {
+        if (!Messages.hasLocales()) {
+            Messages.addLocale(Locale.getDefault());
+        }
+        Messages.addResourceFamily("org.gvsig.symbology.app.symbolinstaller.text",
+            SymbolInstallerExtension.class.getClassLoader(),
+            SymbolInstallerExtension.class.getClass().getName());
+    }
+
+    @Override
+    public void postInitialize() {
+    }
+
+    public boolean isEnabled() {
+        return true;
+    }
+
+    public boolean isVisible() {
+        return true;
+    }
+
+    public void execute(String actionCommand) {
+        if (actionCommand.equals("Create_Package")) {
+            DefaultMakeSymbolPackageWizard wizard =
+                new DefaultMakeSymbolPackageWizard();
+
+            WindowManager windowManager = new ToolsWindowManager();
+            windowManager.showWindow(wizard, Messages.getText("_Symbols_wizard"),
+                WindowManager.MODE.DIALOG);
+        }
+    }
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExtension.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExecutionProvider.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExecutionProvider.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExecutionProvider.java	(revision 37487)
@@ -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.symbology.app.symbolinstaller.execution;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+
+import org.gvsig.andami.PluginsLocator;
+import org.gvsig.andami.PluginsManager;
+import org.gvsig.installer.lib.api.PackageInfo;
+import org.gvsig.installer.lib.api.execution.InstallPackageServiceException;
+import org.gvsig.installer.lib.spi.InstallPackageProviderServices;
+import org.gvsig.installer.lib.spi.InstallerProviderLocator;
+import org.gvsig.installer.lib.spi.InstallerProviderManager;
+import org.gvsig.installer.lib.spi.execution.InstallPackageProvider;
+import org.gvsig.tools.service.spi.AbstractProvider;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+public class SymbolInstallerExecutionProvider extends AbstractProvider
+    implements InstallPackageProvider {
+
+    public SymbolInstallerExecutionProvider(ProviderServices providerServices) {
+        super(providerServices);
+    }
+
+    public class InstallerSymbolsDirectoryNotFoundException extends
+        InstallPackageServiceException {
+
+        private static final long serialVersionUID = 4416143986837955880L;
+        private static final String message = "Symbols directory not found";
+        private static final String KEY = "symbols_directory_not_found";
+
+        public InstallerSymbolsDirectoryNotFoundException() {
+            super(message, KEY, serialVersionUID);
+        }
+    }
+
+    public void install(File applicationDirectory, InputStream inputStream,
+        PackageInfo packageInfo) throws InstallPackageServiceException {
+
+        PluginsManager pluginManager = PluginsLocator.getManager();
+
+        File symbolsDirectory =
+            new File(pluginManager.getApplicationHomeFolder() + File.separator
+                + "Symbols");
+
+        try {
+            if (!symbolsDirectory.exists()) {
+                throw new InstallerSymbolsDirectoryNotFoundException();
+            }
+            InstallerProviderManager installerProviderManager =
+                InstallerProviderLocator.getProviderManager();
+            InstallPackageProviderServices installerProviderServices =
+                installerProviderManager.createInstallerProviderServices();
+
+            installerProviderServices.decompress(inputStream, symbolsDirectory);
+
+        } catch (Exception e) {
+            throw new InstallPackageServiceException(e);
+        }
+    }
+
+    public void installLater(File applicationDirectory,
+        InputStream inputStream, PackageInfo packageInfo)
+        throws InstallPackageServiceException, IOException {
+        // TODO Auto-generated method stub
+
+    }
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExecutionProvider.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExecutionProviderFactory.java
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExecutionProviderFactory.java	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExecutionProviderFactory.java	(revision 37487)
@@ -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.symbology.app.symbolinstaller.execution;
+
+import org.gvsig.tools.ToolsLocator;
+import org.gvsig.tools.dynobject.DynClass;
+import org.gvsig.tools.dynobject.DynObject;
+import org.gvsig.tools.dynobject.DynObjectManager;
+import org.gvsig.tools.service.spi.AbstractProviderFactory;
+import org.gvsig.tools.service.spi.Provider;
+import org.gvsig.tools.service.spi.ProviderServices;
+
+public class SymbolInstallerExecutionProviderFactory extends
+    AbstractProviderFactory {
+
+    public static final String PROVIDER_NAME = "symbol_installer_provider";
+    public static final String PROVIDER_DESCRIPTION = "";
+
+    private DynClass dynclass;
+
+    @Override
+    protected DynClass createParametersDynClass() {
+        if (dynclass == null) {
+            initialize();
+        }
+        return dynclass;
+    }
+
+    @Override
+    protected Provider doCreate(DynObject parameters, ProviderServices services) {
+        return new SymbolInstallerExecutionProvider(services);
+    }
+
+    public void initialize() {
+        if (dynclass == null) {
+            DynObjectManager dynObjectManager =
+                ToolsLocator.getDynObjectManager();
+            dynclass =
+                dynObjectManager.createDynClass(PROVIDER_NAME,
+                    PROVIDER_DESCRIPTION);
+            dynObjectManager.add(dynclass);
+        }
+    }
+
+}

Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/execution/SymbolInstallerExecutionProviderFactory.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/resources/config.xml
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/resources/config.xml	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/resources/config.xml	(revision 37487)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<plugin-config>
+	<libraries library-dir="lib"/>
+	<depends plugin-name="org.gvsig.app"/>
+	<resourceBundle name="text"/>
+	<extensions>
+		<extension class-name="org.gvsig.symbology.app.symbolinstaller.execution.SymbolInstallerExtension"
+			description=""
+			active="true">
+			<menu text="tools/Symbols/Create package"
+				  tooltip="Create a symbols package from symbols that exist in a folder."
+				  action-command="Create_Package" />
+				  	
+		</extension>
+	</extensions>
+</plugin-config>

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

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/resources/META-INF/services/org.gvsig.tools.library.Library	(revision 37487)
@@ -0,0 +1 @@
+org.gvsig.symbology.app.symbolinstaller.SymbolInstallerProviderLibrary
\ No newline at end of file
Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/pom.xml
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/pom.xml	(revision 37487)
@@ -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.symbology.app.symbolinstaller</artifactId>
+	<packaging>jar</packaging>
+	<name>Tools: Install marker symbols tool</name>
+        <description>Plugin that allows to install packages of symbols</description>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>org.gvsig.symbology.app</artifactId>
+		<version>2.0.0-SNAPSHOT</version>
+	</parent>
+	<profiles>
+    	<profile>
+    		<id>gvsig-install</id>
+    		<activation>
+    			<activeByDefault>true</activeByDefault>
+    		</activation>
+    		<properties>
+				<!--  gvSIG installation folder -->
+    			<gvsig.install.dir>${basedir}/../../build/product</gvsig.install.dir>
+    		</properties>
+    	</profile>
+   	</profiles>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.app</artifactId>
+		        <scope>compile</scope>
+		</dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.andami</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.i18n</artifactId>
+            <scope>compile</scope>
+        </dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.symbology.lib.api</artifactId>
+            <scope>compile</scope>
+		</dependency>		
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <scope>compile</scope>
+        </dependency>       
+        <dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.installer.lib.api</artifactId>
+            <scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.installer.lib.spi</artifactId>
+            <scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.installer.swing.api</artifactId>
+            <scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>jwizardcomponent</groupId>
+			<artifactId>jwizardcomponent</artifactId>
+            <scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.ui</artifactId>
+            <scope>compile</scope>
+		</dependency>
+	</dependencies>
+    <properties>
+    	<package.info.dependencies>required: org.gvsig.app -ge 2</package.info.dependencies>
+	</properties>
+</project>

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

Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/distribution/distribution.xml
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/distribution/distribution.xml	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/distribution/distribution.xml	(revision 37487)
@@ -0,0 +1,29 @@
+<assembly>
+	<id>distribution</id>
+	<formats>
+		<format>dir</format>
+	</formats>
+	<fileSets>
+		<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.symbology.app.symbolinstaller:jar</include>		
+			</includes>
+		</dependencySet>		
+	</dependencySets>
+</assembly>

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


Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller
___________________________________________________________________
Added: svn:ignore
   + target
.project
.settings
.classpath
package.info


Index: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/pom.xml
===================================================================
--- tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app/pom.xml	(revision 37487)
@@ -0,0 +1,101 @@
+<?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.symbology.app</artifactId>
+	<packaging>pom</packaging>
+	<version>2.0.0-SNAPSHOT</version>
+	<name>org.gvsig.symbology.app</name>
+	<description></description>
+	<url>http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/docs/reference/org.gvsig.symbology.app/${project.version}</url>
+    <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://svn.forge.osor.eu/svn/gvsig-desktop/branches/v2_0_0_prep/extensions/org.gvsig.symbology.app</connection>
+		<developerConnection>scm:svn:https://svn.forge.osor.eu/svn/gvsig-desktop/branches/v2_0_0_prep/extensions/org.gvsig.symbology.app</developerConnection>
+		<url>https://forge.osor.eu/plugins/scmsvn/viewcvs.php/branches/v2_0_0_prep/extensions/org.gvsig.symbology.app/?root=gvsig-desktop</url>
+	</scm>
+
+	<developers>
+		<developer>
+			<id>jjdelcerro</id>
+			<name>Joaquín José del Cerro</name>
+			<email>jjdelcerro@gvsig.org</email>
+			<roles>
+				<role>Architect</role>
+			</roles>
+		</developer>
+		<developer>
+			<id>nfrancisco</id>
+			<name>Nadal Francisco</name>
+			<email>francisco_nad@gva.es</email>
+			<roles>
+				<role>Developer</role>
+			</roles>
+		</developer>
+	</developers>
+
+	<distributionManagement>
+		<site>
+			<id>gvsig-repository</id>
+			<url>scp://shell.forge.osor.eu/home/groups/gvsig-desktop/www/downloads/pub/projects/gvSIG-desktop/docs/reference/org.gvsig.symbology.app/${project.version}</url>
+		</site>
+	</distributionManagement>
+	<repositories>
+		<repository>
+			<id>gvsig-public-http-repository</id>
+			<name>gvSIG maven public HTTP repository</name>
+			<url>http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/maven-repository</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>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-release-plugin</artifactId>
+				<configuration>
+					<tagBase>https://svn.forge.osor.eu/svn/gvsig-desktop/tags</tagBase>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+	<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.app</artifactId>
+				<version>2.0-SNAPSHOT</version>
+			</dependency>
+		</dependencies>
+	</dependencyManagement>
+
+	<modules>
+		<module>org.gvsig.symbology.app.importsymbols</module>
+		<module>org.gvsig.symbology.app.symbolinstaller</module>
+	</modules>
+	<properties>
+		<package.info.state>alpha2</package.info.state>
+	</properties>
+</project>

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

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

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


Property changes on: tags/v2_0_0_Build_2042/extensions/org.gvsig.symbology.app
___________________________________________________________________
Added: svn:ignore
   + target

.project


