Package org.eclipse.jgit.revwalk

Examples of org.eclipse.jgit.revwalk.RevCommit.matcher()


    makeGrayText(d, styles);
    d.append(LF);
    String msg = commit.getFullMessage();
    Pattern p = Pattern.compile("\n([A-Z](?:[A-Za-z]+-)+by: [^\n]+)"); //$NON-NLS-1$
    if (fill) {
      Matcher spm = p.matcher(msg);
      if (spm.find()) {
        String subMsg = msg.substring(0, spm.end());
        msg = subMsg.replaceAll("([\\w.,; \t])\n(\\w)", "$1 $2") //$NON-NLS-1$ //$NON-NLS-2$
            + msg.substring(spm.end());
      }
View Full Code Here


    int h0 = d.length();
    d.append(msg);
    if (!msg.endsWith(LF))
      d.append(LF);

    Matcher matcher = p.matcher(msg);
    while (matcher.find()) {
      styles.add(new StyleRange(h0 + matcher.start(), matcher.end()
          - matcher.start(), null, null, SWT.ITALIC));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.