Revision 34005 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/wizard/SelectBundlesWizard.java
SelectBundlesWizard.java | ||
---|---|---|
31 | 31 |
import java.net.MalformedURLException; |
32 | 32 |
import java.net.URL; |
33 | 33 |
|
34 |
import javax.swing.JOptionPane; |
|
35 | 34 |
import javax.swing.JPanel; |
36 | 35 |
|
37 | 36 |
import org.slf4j.Logger; |
38 | 37 |
import org.slf4j.LoggerFactory; |
39 | 38 |
|
39 |
import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException; |
|
40 | 40 |
import org.gvsig.gui.beans.wizard.panel.OptionPanel; |
41 | 41 |
import org.gvsig.installer.lib.api.execution.InstallPackageService; |
42 | 42 |
import org.gvsig.installer.lib.api.execution.InstallPackageServiceException; |
... | ... | |
62 | 62 |
URL defaultDownloadURL) { |
63 | 63 |
super(defaultDownloadURL); |
64 | 64 |
this.installerExecutionWizard = installerExecutionWizard; |
65 |
updatePanel(); |
|
65 | 66 |
} |
66 | 67 |
|
67 | 68 |
public JPanel getJPanel() { |
... | ... | |
77 | 78 |
|
78 | 79 |
} |
79 | 80 |
|
80 |
public void nextPanel() { |
|
81 |
public void nextPanel() throws NotContinueWizardException {
|
|
81 | 82 |
InstallPackageService installerExecutionService = |
82 | 83 |
installerExecutionWizard.getInstallerExecutionService(); |
83 | 84 |
try { |
... | ... | |
98 | 99 |
} |
99 | 100 |
} |
100 | 101 |
} catch (InstallPackageServiceException e) { |
101 |
LOG.error("Error adding installer info", e); |
|
102 |
JOptionPane.showMessageDialog(installerExecutionWizard, |
|
103 |
swingInstallerManager.getText("execute_adding_error")); |
|
102 |
throw new NotContinueWizardException( |
|
103 |
swingInstallerManager.getText("execute_adding_error"), e, this); |
|
104 | 104 |
} catch (MalformedURLException e) { |
105 |
LOG.error("Error adding installer info", e); |
|
106 |
JOptionPane.showMessageDialog(installerExecutionWizard, |
|
107 |
swingInstallerManager.getText("execute_adding_error")); |
|
105 |
throw new NotContinueWizardException( |
|
106 |
swingInstallerManager.getText("execute_adding_error"), e, this); |
|
108 | 107 |
} |
109 | 108 |
} |
110 | 109 |
|
111 | 110 |
public void updatePanel() { |
112 |
|
|
111 |
if (installerExecutionWizard != null) { |
|
112 |
installerExecutionWizard.setBackButtonEnabled(false); |
|
113 |
} |
|
113 | 114 |
} |
114 | 115 |
|
115 | 116 |
@Override |
Also available in: Unified diff