Package org.eclipse.jgit.util

Examples of org.eclipse.jgit.util.GitDateFormatter


  @Option(name = "--date", usage = "usage_date")
  void dateFormat(String date) {
    if (date.toLowerCase().equals(date))
      date = date.toUpperCase();
    dateFormatter = new GitDateFormatter(Format.valueOf(date));
  }
View Full Code Here


  // END -- Options shared with Diff


  Log() {
    dateFormatter = new GitDateFormatter(Format.DEFAULT);
  }
View Full Code Here

  @Override
  @Before
  public void setUp() throws Exception {
    super.setUp();
    dateFormatter = new GitDateFormatter(Format.DEFAULT);
  }
View Full Code Here

  @Option(name = "--date", usage = "usage_date")
  void dateFormat(String date) {
    if (date.toLowerCase().equals(date))
      date = date.toUpperCase();
    dateFormatter = new GitDateFormatter(Format.valueOf(date));
  }
View Full Code Here

  // END -- Options shared with Diff


  Log() {
    dateFormatter = new GitDateFormatter(Format.DEFAULT);
  }
View Full Code Here

  /**
   * Create a new squash message formatter.
   */
  public SquashMessageFormatter() {
    dateFormatter = new GitDateFormatter(Format.DEFAULT);
  }
View Full Code Here

  @Override
  @Before
  public void setUp() throws Exception {
    super.setUp();
    dateFormatter = new GitDateFormatter(Format.DEFAULT);
    msgFormatter = new SquashMessageFormatter();
  }
View Full Code Here

  /**
   * Create a new squash message formatter.
   */
  public SquashMessageFormatter() {
    dateFormatter = new GitDateFormatter(Format.DEFAULT);
  }
View Full Code Here

  private static GitDateFormatter getNewDateFormatter() {
    boolean useRelativeDates = Activator.getDefault().getPreferenceStore()
        .getBoolean(UIPreferences.RESOURCEHISTORY_SHOW_RELATIVE_DATE);
    if (useRelativeDates)
      return new GitDateFormatter(Format.RELATIVE);
    else
      return new GitDateFormatter(Format.LOCALE);
  }
View Full Code Here

    return ""; //$NON-NLS-1$
  }

  private GitDateFormatter getDateFormatter() {
    if (dateFormatter == null)
      dateFormatter = new GitDateFormatter(format);
    return dateFormatter;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.util.GitDateFormatter

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.