Revision 44395 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/export/swing/impl/DefaultJExportProcessPanel.java

View differences:

DefaultJExportProcessPanel.java
27 27
import java.awt.Dimension;
28 28
import java.awt.event.ActionEvent;
29 29
import java.awt.event.ActionListener;
30
import java.util.Date;
30 31
import java.util.HashSet;
31 32
import java.util.Set;
32 33
import javax.swing.JButton;
......
133 134
        try {
134 135
            removePreviousPanels();
135 136
            if (this.process.getParameters() != null) {
136
                if ( StringUtils.equals(this.process.getParameters().getServiceName(),serviceFactory.getName())) {
137
                    this.process.setParameters(null);
137
                // Check parameters are for the actual serviceFactory, if not, reset.
138
                if ( !StringUtils.equals(this.process.getParameters().getServiceName(),serviceFactory.getName())) {
139
                    this.process.setOutputFormat(serviceFactory.getName());
138 140
                }
139
            }
140
            
141
            if (this.process.getParameters()==null) {
141
            } else if (this.process.getParameters()==null) {
142 142
                this.process.setOutputFormat(serviceFactory.getName());
143 143
            }
144 144
            
......
293 293
        ExportParameters copyParams = null;
294 294
        try {
295 295
            copyParams = (ExportParameters) params.clone();
296
            copyParams.setCreationDate(new Date());
296 297
            History<ExportParameters> h = exportManager.getHistory();
297 298
            h.add(copyParams);
298 299
        } catch (Exception ex) {

Also available in: Unified diff