Package com.dubture.composer.ui.actions

Source Code of com.dubture.composer.ui.actions.InstallDevAction

package com.dubture.composer.ui.actions;

import org.eclipse.core.resources.IProject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IWorkbenchPartSite;
import com.dubture.composer.ui.ComposerUIPluginImages;
import com.dubture.composer.ui.job.InstallDevJob;

public class InstallDevAction extends ComposerAction {

  public InstallDevAction(IProject project, IWorkbenchPartSite site) {
    super(project, site, "com.dubture.composer.ui.command.installDev");
  }
 
  @Override
  public void run() {
    ensureSaved();
   
    InstallDevJob job = new InstallDevJob(project);
    job.setUser(true);
    job.schedule();
  }

  @Override
  public ImageDescriptor getImageDescriptor() {
    return ComposerUIPluginImages.INSTALL_DEV;
  }
 
}
TOP

Related Classes of com.dubture.composer.ui.actions.InstallDevAction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.