Revision 37186 branches/v2_0_0_prep/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.symbolinstaller/src/main/java/org/gvsig/symbology/app/symbolinstaller/creation/wizard/OutputWizard.java
OutputWizard.java | ||
---|---|---|
35 | 35 |
|
36 | 36 |
import org.gvsig.andami.PluginsLocator; |
37 | 37 |
import org.gvsig.andami.PluginsManager; |
38 |
import org.gvsig.gui.beans.wizard.WizardPanel; |
|
39 | 38 |
import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException; |
40 | 39 |
import org.gvsig.gui.beans.wizard.panel.OptionPanel; |
40 |
import org.gvsig.i18n.Messages; |
|
41 | 41 |
import org.gvsig.installer.lib.api.InstallerLocator; |
42 | 42 |
import org.gvsig.installer.lib.api.PackageInfo; |
43 | 43 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
44 | 44 |
import org.gvsig.installer.swing.api.creation.JOutputPanel; |
45 |
import org.gvsig.symbology.app.symbolinstaller.creation.DefaultMakeSymbolPackageWizard; |
|
45 | 46 |
|
46 | 47 |
/** |
47 | 48 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
... | ... | |
52 | 53 |
* |
53 | 54 |
*/ |
54 | 55 |
private static final long serialVersionUID = 555020268506822671L; |
55 |
// private WizardPanel wizard; |
|
56 | 56 |
private JOutputPanel outputPanel; |
57 | 57 |
private PackageInfo packageInfo; |
58 | 58 |
|
59 |
// private DefaultMakeSymbolPackageWizard wizard; |
|
60 |
|
|
59 | 61 |
// private static final Logger logger = |
60 | 62 |
// LoggerFactory.getLogger(OutputWizard.class); |
61 | 63 |
|
62 |
public OutputWizard(WizardPanel wizardPanel, PackageInfo packageInfo) { |
|
64 |
public OutputWizard(DefaultMakeSymbolPackageWizard wizard, |
|
65 |
PackageInfo packageInfo) { |
|
63 | 66 |
super(); |
64 |
// this.wizard = wizardPanel;
|
|
67 |
// this.wizard = wizard; |
|
65 | 68 |
outputPanel = |
66 | 69 |
SwingInstallerLocator.getSwingInstallerManager() |
67 | 70 |
.createOutputPanel(); |
... | ... | |
73 | 76 |
} |
74 | 77 |
|
75 | 78 |
private String getText(String msg) { |
76 |
return msg; // FIXME
|
|
79 |
return Messages.getText(msg);
|
|
77 | 80 |
} |
78 | 81 |
|
79 | 82 |
public String getPanelTitle() { |
80 |
return getText("output_options"); |
|
83 |
return getText("_output_options");
|
|
81 | 84 |
} |
82 | 85 |
|
83 | 86 |
public void lastPanel() { |
... | ... | |
89 | 92 |
File file = outputPanel.getPackageFile(); |
90 | 93 |
File filePath = new File(file.getParent()); |
91 | 94 |
if (!filePath.exists()) { |
92 |
JOptionPane |
|
93 |
.showMessageDialog(outputPanel, |
|
94 |
getText("The_package_file_folder_does_not_exist: _") |
|
95 |
+ filePath); |
|
95 |
JOptionPane.showMessageDialog(outputPanel, |
|
96 |
getText("_the_package_file_folder_does_not_exist") + ": " |
|
97 |
+ filePath); |
|
96 | 98 |
throw new NotContinueWizardException("", null, false); |
97 | 99 |
} |
98 | 100 |
if (outputPanel.isCreatePackageIndex()) { |
... | ... | |
104 | 106 |
File indexFilePath = new File(indexFile.getParent()); |
105 | 107 |
if (!indexFilePath.exists()) { |
106 | 108 |
JOptionPane.showMessageDialog(outputPanel, |
107 |
getText("The_package_index_file_folder_does_not_exist: _")
|
|
108 |
+ indexFilePath); |
|
109 |
getText("_the_package_index_file_folder_does_not_exist")
|
|
110 |
+ ": " + indexFilePath);
|
|
109 | 111 |
throw new NotContinueWizardException("", null, false); |
110 | 112 |
} |
111 | 113 |
} |
Also available in: Unified diff