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/ProgressWizard.java

View differences:

ProgressWizard.java
34 34
import javax.swing.JOptionPane;
35 35
import javax.swing.JPanel;
36 36

  
37
import org.gvsig.gui.beans.wizard.WizardPanel;
38 37
import org.gvsig.gui.beans.wizard.panel.OptionPanel;
38
import org.gvsig.i18n.Messages;
39 39
import org.gvsig.installer.lib.api.InstallerLocator;
40 40
import org.gvsig.installer.lib.api.PackageInfo;
41 41
import org.gvsig.installer.lib.api.creation.MakePackageService;
......
58 58
    private JOutputPanel outputPanel;
59 59
    private JProgressPanel progressPanel;
60 60

  
61
    public ProgressWizard(WizardPanel wizard, PackageInfo packageInfo,
62
        JOutputPanel outputPanel) {
61
    public ProgressWizard(DefaultMakeSymbolPackageWizard wizard,
62
        PackageInfo packageInfo, JOutputPanel outputPanel) {
63 63
        super();
64
        this.wizard = (DefaultMakeSymbolPackageWizard) wizard;
64
        this.wizard = wizard;
65 65
        this.packageInfo = packageInfo;
66 66
        this.outputPanel = outputPanel;
67 67
        progressPanel =
......
70 70
    }
71 71

  
72 72
    private String getText(String msg) {
73
        return msg; // FIXME
73
        return Messages.getText(msg);
74 74
    }
75 75

  
76 76
    public JPanel getJPanel() {
......
78 78
    }
79 79

  
80 80
    public String getPanelTitle() {
81
        return getText("_Installer_progress");
81
        return Messages.getText("_Installer_progress");
82 82
    }
83 83

  
84 84
    public void lastPanel() {
......
106 106
            }
107 107
        }
108 108

  
109
        wizard.setFinishButtonEnabled(false);
110
        wizard.setCancelButtonEnabled(false);
111

  
109 112
        SimpleTaskStatus taskStatus =
110 113
            ToolsLocator.getTaskStatusManager().createDefaultSimpleTaskStatus(
111 114
                packageInfo.getName());
......
132 135
            // Set the finished text
133 136
            taskStatus.message(getText("_Finished"));
134 137
        } catch (MakePackageServiceException e) {
135
            JOptionPane.showMessageDialog(null, getText("_cant_create_package")
138
            JOptionPane.showMessageDialog(null, getText("_cant_create_the_package")
136 139
                + "\n\n" + e.getLocalizedMessageStack(),
137 140
                getText("_create_package"), JOptionPane.ERROR_MESSAGE);
138 141
        }
......
147 150
            os = new FileOutputStream(file);
148 151
        } catch (FileNotFoundException e1) {
149 152
            JOptionPane.showMessageDialog(null,
150
                getText("_cant_create_package_file") + " (" + file + ").",
153
                getText("_cant_create_the_package") + " (" + file + ").",
151 154
                getText("_create_package"), JOptionPane.WARNING_MESSAGE);
152 155
            return null;
153 156
        }

Also available in: Unified diff