Package org.eclipse.egit.ui.internal.fetch

Examples of org.eclipse.egit.ui.internal.fetch.FetchResultDialog


    GridDataFactory.fillDefaults().grab(true, true).applyTo(
        fetchResultGroup);
    FetchResult fRes = result.getFetchResult();
    if (hasFetchResults()) {
      GridLayoutFactory.fillDefaults().applyTo(fetchResultGroup);
      FetchResultDialog dlg = new FetchResultDialog(getParentShell(),
          repo, fRes, result.getFetchedFrom());
      Control fresult = dlg.createFetchResultTable(fetchResultGroup);
      Object layoutData = fresult.getLayoutData();
      if (layoutData instanceof GridData)
        GridDataFactory.createFrom((GridData) layoutData)
            .hint(SWT.DEFAULT, 130).applyTo(fresult);

    } else {
      GridLayoutFactory.swtDefaults().applyTo(fetchResultGroup);
      Label noResult = new Label(fetchResultGroup, SWT.NONE);
      if (result.getFetchedFrom().equals(".")) //$NON-NLS-1$
        noResult
            .setText(UIText.PullResultDialog_NothingToFetchFromLocal);
      else
        noResult.setText(NLS.bind(
            UIText.FetchResultDialog_labelEmptyResult, result
                .getFetchedFrom()));

    }
    Group mergeResultGroup = new Group(main, SWT.SHADOW_ETCHED_IN);
    mergeResultGroup
        .setText(UIText.PullResultDialog_MergeResultGroupHeader);
    if (hasMergeResults()) {
      GridDataFactory.fillDefaults().grab(true, true).applyTo(
          mergeResultGroup);
      GridLayoutFactory.fillDefaults().applyTo(mergeResultGroup);
      MergeResultDialog dlg = new MergeResultDialog(getParentShell(),
          repo, result.getMergeResult());
      dlg.createDialogArea(mergeResultGroup);
    } else if (hasRebaseResults()) {
      RebaseResultDialog.createFailedOrConflictsParts(mergeResultGroup,
          result.getRebaseResult());
      GridDataFactory.fillDefaults().grab(true, false).applyTo(
          mergeResultGroup);
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.fetch.FetchResultDialog

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.