| package org.eclipse.epp.installer.internal.ui.steps; |
| |
| import org.eclipse.core.runtime.IStatus; |
| import org.eclipse.epp.installer.core.model.IInstallStep; |
| import org.eclipse.epp.installer.core.steps.SelectInstallTypeStep; |
| import org.eclipse.epp.installer.internal.ui.pages.SelectInstallTypePage; |
| import org.eclipse.epp.installer.ui.WizardStep; |
| import org.eclipse.jface.wizard.WizardPage; |
| |
| |
| /** |
| * <p> |
| * Copyright (c) 2006, Instantiations, Inc.<br> |
| * All Rights Reserved |
| */ |
| public class SelectInstallTypeWizardStep extends WizardStep { |
| |
| public SelectInstallTypeWizardStep(IInstallStep step) { |
| super(step); |
| } |
| |
| protected WizardPage createPage() { |
| SelectInstallTypePage page = new SelectInstallTypePage(this, "installTypePage"); |
| return page; |
| } |
| |
| public void updatePageComplete() { |
| SelectInstallTypePage page = (SelectInstallTypePage) getPage(); |
| SelectInstallTypeStep step = (SelectInstallTypeStep) getInstallStep(); |
| |
| IStatus status = SelectInstallTypeStep.validateProductString(page.getSelectedInstallTypeName()); |
| updatePageComplete(status); |
| step.updateOption(page.getSelectedInstallType()); |
| } |
| |
| public void init() { |
| SelectInstallTypePage page = (SelectInstallTypePage) getPage(); |
| SelectInstallTypeStep step = (SelectInstallTypeStep) getInstallStep(); |
| page.addInstallTypes(step.getInstallTypes()); |
| } |
| } |