Package org.eclipse.egit.ui.internal.commit

Examples of org.eclipse.egit.ui.internal.commit.DiffViewer


      }
    };

    commentViewer.configure(configuration);

    diffViewer = new DiffViewer(commentAndDiffComposite, null, SWT.NONE, false);
    diffViewer.getControl().setLayoutData(
        GridDataFactory.fillDefaults().grab(true, false).create());
    diffViewer.setEditable(false);

    setWrap(store
View Full Code Here


      }
    };
    showAnnotationsLink
        .addSelectionListener(showAnnotationsLinkSelectionAdapter);

    DiffViewer diffText = new DiffViewer(diffComposite, null, SWT.NONE,
        false);
    diffText.setEditable(false);
    diffText.getControl().setLayoutData(
        GridDataFactory.fillDefaults().grab(true, true).create());

    IDocument document = new Document();
    DiffStyleRangeFormatter diffFormatter = new DiffStyleRangeFormatter(
        document);
    diffFormatter.setContext(1);
    diffFormatter.setRepository(revision.getRepository());
    diffFormatter.format(interestingDiff, diff.getOldText(),
        diff.getNewText());

    diffText.setDocument(document);
    diffText.setFormatter(diffFormatter);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.commit.DiffViewer

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.