/**
* @author <a href="mailto:droden@gmail.com">David Roden </a>
- * @version $Id: Main.java 456 2006-04-03 17:54:44Z bombe $
+ * @version $Id$
*/
public class Main implements ActionListener, ListSelectionListener, WizardListener, NodeManagerListener {
PAGE_NODE_MANAGER, PAGE_PROJECTS, PAGE_PROJECT_FILES, PAGE_INSERT_PROJECT
}
- private static final Locale[] SUPPORTED_LOCALES = new Locale[] { Locale.ENGLISH, Locale.GERMAN };
+ private static final Locale[] SUPPORTED_LOCALES = new Locale[] { Locale.ENGLISH, Locale.GERMAN, Locale.FRENCH };
private Map<Locale, Action> languageActions = new HashMap<Locale, Action>();
private Action manageNodeAction;
private Action aboutAction;
((ProjectFilesPage) pages.get(PageType.PAGE_PROJECT_FILES)).setProject(project);
((ProjectInsertPage) pages.get(PageType.PAGE_INSERT_PROJECT)).setProject(project);
showPage(PageType.PAGE_PROJECT_FILES);
+ wizard.setNextName(I18n.getMessage("jsite.project-files.insert-now"));
wizard.setPreviousName(I18n.getMessage("jsite.wizard.previous"));
} else if ("page.project.files".equals(pageName)) {
ProjectPage projectPage = (ProjectPage) pages.get(PageType.PAGE_PROJECTS);
JOptionPane.showMessageDialog(wizard, I18n.getMessage("jsite.project-files.no-node-running"), null, JOptionPane.ERROR_MESSAGE);
return;
}
+ configuration.save();
+ wizard.setNextName(I18n.getMessage("jsite.wizard.next"));
showPage(PageType.PAGE_INSERT_PROJECT);
nodeMenu.setEnabled(false);
} else if ("page.project.insert".equals(pageName)) {
wizard.setPreviousName(I18n.getMessage("jsite.wizard.previous"));
} else if ("page.project.files".equals(pageName)) {
showPage(PageType.PAGE_PROJECTS);
+ wizard.setNextName(I18n.getMessage("jsite.wizard.next"));
wizard.setPreviousName((String) manageNodeAction.getValue(Action.NAME));
} else if ("page.project.insert".equals(pageName)) {
showPage(PageType.PAGE_PROJECT_FILES);