Package org.eclipse.egit.ui.internal.branch

Examples of org.eclipse.egit.ui.internal.branch.CleanupUncomittedChangesDialog


      public void run() {
        Shell shell = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getShell();
        String repoName = Activator.getDefault().getRepositoryUtil()
            .getRepositoryName(repository);
        CleanupUncomittedChangesDialog cleanupUncomittedChangesDialog = new CleanupUncomittedChangesDialog(
            shell,
            MessageFormat
                .format(UIText.AbstractRebaseCommandHandler_cleanupDialog_title,
                    repoName),
            UIText.AbstractRebaseCommandHandler_cleanupDialog_text,
            repository, files);
        cleanupUncomittedChangesDialog.open();
        if (cleanupUncomittedChangesDialog.shouldContinue()) {
          try {
            execute(repository);
          } catch (ExecutionException e) {
            Activator.logError(e.getMessage(), e);
          }
View Full Code Here


    if (status.hasUncommittedChanges()) {
      List<String> files = new ArrayList<String>(status.getModified());
      Collections.sort(files);
      String repoName = Activator.getDefault().getRepositoryUtil()
          .getRepositoryName(repo);
      CleanupUncomittedChangesDialog cleanupUncomittedChangesDialog = new CleanupUncomittedChangesDialog(
          shell,
          MessageFormat
              .format(UIText.AbstractRebaseCommandHandler_cleanupDialog_title,
                  repoName),
          UIText.AbstractRebaseCommandHandler_cleanupDialog_text,
          repo, files);
      cleanupUncomittedChangesDialog.open();
      return cleanupUncomittedChangesDialog.shouldContinue();
    } else
      return true;
  }
View Full Code Here

   */
  private void handleUncommittedChanges(final Repository repository,
      final List<String> files, Shell shell) {
    String repoName = Activator.getDefault().getRepositoryUtil()
        .getRepositoryName(repository);
    CleanupUncomittedChangesDialog cleanupUncomittedChangesDialog = new CleanupUncomittedChangesDialog(
        shell,
        MessageFormat
            .format(UIText.AbstractRebaseCommandHandler_cleanupDialog_title,
                repoName),
        UIText.AbstractRebaseCommandHandler_cleanupDialog_text,
        repository, files);
    cleanupUncomittedChangesDialog.open();
    if (cleanupUncomittedChangesDialog.shouldContinue()) {
      final PullOperationUI parentOperation = this;
      final PullOperationUI pullOperationUI = new PullOperationUI(
          Collections.singleton(repository));
      tasksToWaitFor.incrementAndGet();
      pullOperationUI.start(new JobChangeAdapter() {
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.branch.CleanupUncomittedChangesDialog

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.