org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/ui/deployment/DeployWizard.java
changeset 459 c278f0c8917f
parent 456 12b549765c34
child 460 c0bff5ed874c
equal deleted inserted replaced
458:5ff93668b08c 459:c278f0c8917f
    24 import org.eclipse.core.runtime.jobs.ISchedulingRule;
    24 import org.eclipse.core.runtime.jobs.ISchedulingRule;
    25 import org.eclipse.core.runtime.jobs.Job;
    25 import org.eclipse.core.runtime.jobs.Job;
    26 import org.eclipse.core.runtime.jobs.MultiRule;
    26 import org.eclipse.core.runtime.jobs.MultiRule;
    27 import org.eclipse.jface.wizard.Wizard;
    27 import org.eclipse.jface.wizard.Wizard;
    28 import org.eclipse.ui.statushandlers.StatusManager;
    28 import org.eclipse.ui.statushandlers.StatusManager;
       
    29 import org.symbian.tools.mtw.core.MTWCore;
    29 import org.symbian.tools.mtw.core.projects.IMTWProject;
    30 import org.symbian.tools.mtw.core.projects.IMTWProject;
       
    31 import org.symbian.tools.mtw.core.runtimes.IPackager;
    30 import org.symbian.tools.mtw.internal.deployment.DeployWizardContext;
    32 import org.symbian.tools.mtw.internal.deployment.DeployWizardContext;
    31 import org.symbian.tools.mtw.internal.deployment.DeploymentTargetWizardPage;
    33 import org.symbian.tools.mtw.internal.deployment.DeploymentTargetWizardPage;
    32 import org.symbian.tools.mtw.internal.deployment.DeploymentTargetWrapper;
    34 import org.symbian.tools.mtw.internal.deployment.DeploymentTargetWrapper;
    33 import org.symbian.tools.mtw.ui.MTWCoreUI;
    35 import org.symbian.tools.mtw.ui.MTWCoreUI;
    34 import org.symbian.tools.mtw.ui.ProjectMemo;
    36 import org.symbian.tools.mtw.ui.ProjectMemo;
    88         }
    90         }
    89 
    91 
    90         public IStatus run(IProgressMonitor monitor) {
    92         public IStatus run(IProgressMonitor monitor) {
    91             IStatus status;
    93             IStatus status;
    92             try {
    94             try {
    93                 status = target.deploy(project, project.getTargetRuntime(), monitor);
    95                 IPackager packager = MTWCore.getDefault().getRuntimesManager().getPackager(project);
       
    96                 status = target.deploy(project, packager, monitor);
    94             } catch (CoreException e) {
    97             } catch (CoreException e) {
    95                 status = e.getStatus();
    98                 status = e.getStatus();
    96             }
    99             }
    97             if (status.getSeverity() != IStatus.ERROR && status.getSeverity() != IStatus.WARNING) {
   100             if (status.getSeverity() != IStatus.ERROR && status.getSeverity() != IStatus.WARNING) {
    98                 StatusManager.getManager().handle(status, StatusManager.SHOW);
   101                 StatusManager.getManager().handle(status, StatusManager.SHOW);