Package org.eclipse.egit.ui.internal.stash

Examples of org.eclipse.egit.ui.internal.stash.StashCreateUI


      JobUtil.scheduleUserWorkspaceJob(operation, jobname,
          JobFamilies.RESET);
      shouldContinue = true;
      break;
    case IDialogConstants.SKIP_ID:
      StashCreateUI stashCreateUI = new StashCreateUI(repository);
      shouldContinue = stashCreateUI.createStash(getShell());
      break;
    case IDialogConstants.CANCEL_ID:
    }
    super.buttonPressed(buttonId);
  }
View Full Code Here


  public Object execute(ExecutionEvent event) throws ExecutionException {
    Repository repository = getRepository();
    if (repository == null)
      return null;

    StashCreateUI stashCreateUI = new StashCreateUI(repository);
    stashCreateUI.createStash(getShell(event));

    return null;
  }
View Full Code Here

  private static IContributionItem createStashChangesItem(
      final Repository repository) {
    Action action = new Action(UIText.StashesMenu_StashChangesActionText) {
      @Override
      public void run() {
        StashCreateUI stashCreateUI = new StashCreateUI(repository);
        Shell shell = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getShell();
        stashCreateUI.createStash(shell);
      }

      @Override
      public boolean isEnabled() {
        return StashCreateHandler.isEnabled(repository);
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.stash.StashCreateUI

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.