Package org.eclipse.pde.internal.ui.build

Examples of org.eclipse.pde.internal.ui.build.PluginExportJob


    return "WebContent";
  }
 
  private void executeDeploy(BundlePluginModelBase plugin) {
    int flag=0;
    PluginExportJob job;
    FeatureExportInfo info = new FeatureExportInfo();
    info.toDirectory = true;
    info.useJarFormat = true;
    info.exportSource = false;
    info.destinationDirectory = getDestinationDirectory();
    info.zipFileName = null;
    info.items = new Object[] { plugin };
    info.signingInfo = null;
    info.qualifier = null;
    if ((info.items == null) || (info.items.length == 0)) {
      return;
    }
    //������ʶ
    if (this.totalNoExportFlag){
      return;
    }
    //������ʷ
    if (hasHistoryVersion(plugin)) {
      if (!(this.totalExportFlag)) {
        MessageDialog dialog = new MessageDialog(new Shell(), "ȷ���ļ��滻",
            null, "�ò�����ɾ��SoTower��Ŀ "
                + this.client.getName()
                + " ��ģ����Ŀ "
                + plugin.getBundleDescription()
                    .getSymbolicName() + " �ľɰ汾���Ƿ������", 3,
            new String[] { "��", "��", "ȫ����", "ȫ����" }, 0);
        flag = dialog.open();
      }
    }
    switch (flag) {
    case 0:
      deleteHistoryVersion(plugin);
      job = new PluginExportJob(info);
      job.setUser(true);
      job.schedule();
      job.setProperty(IProgressConstants.ICON_PROPERTY,
          PDEPluginImages.DESC_PLUGIN_OBJ);
      break;
    case 1:
      break;
    case 2:
      this.totalExportFlag = true;
      deleteHistoryVersion(plugin);
      job = new PluginExportJob(info);
      job.setUser(true);
      job.schedule();
      job.setProperty(IProgressConstants.ICON_PROPERTY,
          PDEPluginImages.DESC_PLUGIN_OBJ);
      break;
    case 3:
      this.totalNoExportFlag = true;
    default:
      deleteHistoryVersion(plugin);
      job = new PluginExportJob(info);
      job.setUser(true);
      job.schedule();
      job.setProperty(IProgressConstants.ICON_PROPERTY,
          PDEPluginImages.DESC_PLUGIN_OBJ);
      job = new PluginExportJob(info);
      job.setUser(true);
      job.schedule();
      job.setProperty(IProgressConstants.ICON_PROPERTY,
          PDEPluginImages.DESC_PLUGIN_OBJ);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.pde.internal.ui.build.PluginExportJob

Copyright © 2018 www.massapicom. 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.