Revision 37887 branches/v2_0_0_prep/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/ExporterSelectionWizard.java
ExporterSelectionWizard.java | ||
---|---|---|
32 | 32 |
import org.gvsig.exportto.swing.ExporttoSwingManager; |
33 | 33 |
import org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel; |
34 | 34 |
import org.gvsig.exportto.swing.impl.panel.ProviderSelectionPanel; |
35 |
import org.gvsig.exportto.swing.spi.ExporttoSwingProviderFactory; |
|
35 | 36 |
import org.gvsig.exportto.swing.spi.ExporttoSwingProviderLocator; |
36 | 37 |
import org.gvsig.exportto.swing.spi.ExporttoSwingProviderManager; |
37 | 38 |
import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException; |
... | ... | |
66 | 67 |
} |
67 | 68 |
|
68 | 69 |
public void nextPanel() throws NotContinueWizardException { |
69 |
String providerName = this.getSelectedProvider();
|
|
70 |
ExporttoSwingProviderFactory providerFactory = this.getSelectedProvider();
|
|
70 | 71 |
|
71 |
if (providerName != null) {
|
|
72 |
if (providerFactory != null) {
|
|
72 | 73 |
try { |
73 |
exporttoServicePanel.selectExporttoSwingProvider(providerName);
|
|
74 |
exporttoServicePanel.selectExporttoSwingProvider(providerFactory);
|
|
74 | 75 |
} catch (ServiceException e) { |
75 | 76 |
LOG.error("Not possible to create a exporto swing provider", e); |
76 | 77 |
throw new NotContinueWizardException( |
... | ... | |
82 | 83 |
} |
83 | 84 |
|
84 | 85 |
public void lastPanel() { |
85 |
// TODO Auto-generated method stub |
|
86 |
|
|
86 |
// Nothing to do |
|
87 | 87 |
} |
88 | 88 |
|
89 | 89 |
public void updatePanel() { |
90 |
// TODO Auto-generated method stub |
|
91 |
|
|
90 |
// Nothing to do |
|
92 | 91 |
} |
93 | 92 |
|
94 | 93 |
public JPanel getJPanel() { |
... | ... | |
96 | 95 |
} |
97 | 96 |
|
98 | 97 |
public void valueChanged(ListSelectionEvent e) { |
99 |
String providerName = this.getSelectedProvider();
|
|
98 |
ExporttoSwingProviderFactory providerFactory = this.getSelectedProvider();
|
|
100 | 99 |
|
101 |
if (providerName != null) {
|
|
100 |
if (providerFactory != null) {
|
|
102 | 101 |
descriptionText.setText(EXPORTTO_SWING_PROVIDER_MANAGER |
103 |
.getDescription(providerName));
|
|
102 |
.getDescription(providerFactory.getDescription()));
|
|
104 | 103 |
|
105 | 104 |
exporttoServicePanel.setNextButtonEnabled(true); |
106 | 105 |
} |
Also available in: Unified diff