Package org.eclipse.egit.core.internal.FileChecker

Examples of org.eclipse.egit.core.internal.FileChecker.CheckResult


      if (dc != null)
        dc.unlock();
    }

    boolean mergeToolAvailable = true;
    final CheckResult checkResult;
    if (!conflictListFailure) {
      checkResult = FileChecker.checkFiles(repo, conflictPaths);
      mergeToolAvailable = checkResult.isOk();
    }
    else {
      checkResult = null;
      mergeToolAvailable = false;
    }

    if (conflictListFailure) {
      Label failureLabel = new Label(main, SWT.NONE);
      failureLabel
          .setText(UIText.RebaseResultDialog_ConflictListFailureMessage);
    } else {
      if (checkResult != null && !checkResult.isOk()) {
        Label failureLabel = new Label(main, SWT.NONE);
        failureLabel
          .setText(getProblemDescription(checkResult));
      }
      Label conflictListLabel = new Label(main, SWT.NONE);
      conflictListLabel
      .setText(UIText.RebaseResultDialog_DiffDetailsLabel);
      TableViewer conflictList = new TableViewer(main, SWT.BORDER);
      GridDataFactory.fillDefaults().span(2, 1).grab(true, true).applyTo(
          conflictList.getTable());
      conflictList.setContentProvider(ArrayContentProvider.getInstance());
      conflictList.setInput(conflictPaths);
      conflictList.setLabelProvider(new LabelProvider() {
        @Override
        public String getText(Object element) {
          String path = (String) element;
          if (checkResult != null && !checkResult.isOk()) {
            CheckResultEntry entry = checkResult.getEntry(path);
            if (entry != null) {
              if (!entry.inWorkspace)
                return UIText.RebaseResultDialog_notInWorkspace + SPACE + path;
              if (!entry.shared)
                return UIText.RebaseResultDialog_notShared + SPACE + path;
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.internal.FileChecker.CheckResult

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.