Revision 32406 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/creation/wizard/SelectPlugintoInstallWizard.java
SelectPlugintoInstallWizard.java | ||
---|---|---|
30 | 30 |
import javax.swing.JOptionPane; |
31 | 31 |
import javax.swing.JPanel; |
32 | 32 |
|
33 |
import org.gvsig.installer.lib.api.InstallerInfo; |
|
33 | 34 |
import org.gvsig.installer.lib.api.InstallerLocator; |
34 | 35 |
import org.gvsig.installer.lib.api.creation.InstallerCreationService; |
35 | 36 |
import org.gvsig.installer.swing.impl.InstallerWizardPanel; |
... | ... | |
62 | 63 |
|
63 | 64 |
public void lastPanel() { |
64 | 65 |
// TODO Auto-generated method stub |
65 |
|
|
66 |
|
|
66 | 67 |
} |
67 | 68 |
|
68 | 69 |
public void nextPanel() { |
69 |
try { |
|
70 |
InstallerCreationService installerCreationService = |
|
71 |
InstallerLocator.getInstallerManager().getInstallerCreationService(); |
|
72 |
installerCreationService.setPluginDirectory(getSelectedPluginDirectory()); |
|
73 |
installerCreationWizard.setInstallerCreationService(installerCreationService); |
|
74 |
} catch (Exception e) { |
|
75 |
logger.error(swingInstallerManager.getText("installer_infofile_exception"), e); |
|
76 |
JOptionPane.showMessageDialog(installerCreationWizard, |
|
77 |
swingInstallerManager.getText("installer_infofile_exception")); |
|
78 |
} |
|
79 |
} |
|
80 |
|
|
70 |
installerCreationWizard.getInstallerCreationService().setSelectedPlugin(super.getSelectedInstallerInfo().getCode()); |
|
71 |
} |
|
81 | 72 |
|
82 | 73 |
public void updatePanel() { |
83 | 74 |
|
... | ... | |
87 | 78 |
* @see org.gvsig.installer.swing.impl.creation.panel.SelectPluginToInstallPanel#setSelectedPlugin(java.lang.String) |
88 | 79 |
*/ |
89 | 80 |
@Override |
90 |
public void setSelectedPlugin(String selectedPlugin) { |
|
91 |
super.setSelectedPlugin(selectedPlugin); |
|
92 |
installerCreationWizard.setNextButtonEnabled(selectedPlugin != null); |
|
81 |
public void setSelectedInstallerInfo(InstallerInfo installerInfo) { |
|
82 |
super.setSelectedInstallerInfo(installerInfo); |
|
83 |
installerInfo.setType("plugin"); |
|
84 |
installerCreationWizard.setNextButtonEnabled(installerInfo != null); |
|
93 | 85 |
} |
94 | 86 |
} |
95 | 87 |
|
Also available in: Unified diff