public void pageAdded(TWizard wizard) {
this.wizard.setPreviousName(I18n.getMessage("jsite.wizard.previous"));
this.wizard.setPreviousEnabled(false);
- this.wizard.setNextName(I18n.getMessage("jsite.wizard.next"));
+ this.wizard.setNextName(I18n.getMessage("jsite.general.cancel"));
this.wizard.setQuitName(I18n.getMessage("jsite.wizard.quit"));
}
*/
public void startInsert() {
running = true;
- wizard.setNextEnabled(false);
copyURIAction.setEnabled(false);
progressBar.setValue(0);
progressBar.setString(I18n.getMessage("jsite.insert.starting"));
public void run() {
progressBar.setValue(progressBar.getMaximum());
progressBar.setString(I18n.getMessage("jsite.insert.done") + " (" + getTransferRate() + " " + I18n.getMessage("jsite.insert.k-per-s") + ")");
+ wizard.setNextName(I18n.getMessage("jsite.wizard.next"));
wizard.setNextEnabled(true);
wizard.setQuitEnabled(true);
}
nodeMenu.setEnabled(false);
optionsPreferencesAction.setEnabled(false);
} else if ("page.project.insert".equals(pageName)) {
- showPage(PageType.PAGE_PROJECTS);
- nodeMenu.setEnabled(true);
- optionsPreferencesAction.setEnabled(true);
+ ProjectInsertPage projectInsertPage = (ProjectInsertPage) pages.get(PageType.PAGE_INSERT_PROJECT);
+ if (projectInsertPage.isRunning()) {
+ projectInsertPage.stopInsert();
+ } else {
+ showPage(PageType.PAGE_PROJECTS);
+ nodeMenu.setEnabled(true);
+ optionsPreferencesAction.setEnabled(true);
+ }
} else if ("page.preferences".equals(pageName)) {
showPage(PageType.PAGE_PROJECTS);
optionsPreferencesAction.setEnabled(true);