Package bndtools.release.ui

Examples of bndtools.release.ui.WorkspaceReleaseDialog


            ReleaseHelper.initializeProjectDiffs(projectDiffs);

            Runnable runnable = new Runnable() {
                @Override
                public void run() {
                    WorkspaceReleaseDialog dialog = new WorkspaceReleaseDialog(shell, projectDiffs, false);
                    int ret = dialog.open();
                    if (ret == WorkspaceReleaseDialog.OK) {
                        boolean runJob = false;
                        for (ProjectDiff diff : projectDiffs) {
                            if (diff.isRelease()) {
                                runJob = true;
                                break;
                            }
                        }
                        if (!runJob) {
                            return;
                        }
                        WorkspaceReleaseJob releaseJob = new WorkspaceReleaseJob(projectDiffs, dialog.getReleaseOption(), dialog.isShowMessage());
                        releaseJob.setRule(ResourcesPlugin.getWorkspace().getRoot());
                        releaseJob.schedule();
                    }
                }
            };
View Full Code Here


      ReleaseHelper.initializeProjectDiffs(projectDiffs);

      Runnable runnable = new Runnable() {
        public void run() {
          WorkspaceReleaseDialog dialog = new WorkspaceReleaseDialog(
              shell, projectDiffs, false);
          int ret = dialog.open();
          if (ret == WorkspaceReleaseDialog.OK) {
                       boolean runJob = false;
             for (ProjectDiff diff : projectDiffs) {
                 if (diff.isRelease()) {
                                runJob = true;
                                break;
                            }
                        }
              if (!runJob) {
                  return;
              }
            WorkspaceReleaseJob releaseJob = new WorkspaceReleaseJob(
                projectDiffs, dialog.getReleaseOption(), dialog.isShowMessage());
            releaseJob.setRule(ResourcesPlugin.getWorkspace().getRoot());
            releaseJob.schedule();
          }
        }
      };
View Full Code Here

      Runnable runnable = new Runnable() {
        public void run() {
            List<ProjectDiff> projectDiffs = new ArrayList<ProjectDiff>();
            projectDiffs.add(new ProjectDiff(project, diffs));
                ReleaseHelper.initializeProjectDiffs(projectDiffs);
            WorkspaceReleaseDialog dialog = new WorkspaceReleaseDialog(shell, projectDiffs, true);
          if (dialog.open() == WorkspaceReleaseDialog.OK) {
              boolean runJob = false;
                  for (ProjectDiff diff : projectDiffs) {
                      if (diff.isRelease()) {
                          runJob = true;
                          break;
                      }
                  }
              if (!runJob) {
                  return;
              }
                        WorkspaceReleaseJob releaseJob = new WorkspaceReleaseJob(
                                projectDiffs, dialog.getReleaseOption(), dialog.isShowMessage());
                        releaseJob.setRule(ResourcesPlugin.getWorkspace().getRoot());
                        releaseJob.schedule();
          }
        }
      };
View Full Code Here

TOP

Related Classes of bndtools.release.ui.WorkspaceReleaseDialog

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.