102103104105106107108
@Option(name = "--date", usage = "usage_date") void dateFormat(String date) { if (date.toLowerCase().equals(date)) date = date.toUpperCase(); dateFormatter = new GitDateFormatter(Format.valueOf(date)); }
178179180181182183184
// END -- Options shared with Diff Log() { dateFormatter = new GitDateFormatter(Format.DEFAULT); }
86878889909192
@Override @Before public void setUp() throws Exception { super.setUp(); dateFormatter = new GitDateFormatter(Format.DEFAULT); }
61626364656667
/** * Create a new squash message formatter. */ public SquashMessageFormatter() { dateFormatter = new GitDateFormatter(Format.DEFAULT); }
6566676869707172
@Override @Before public void setUp() throws Exception { super.setUp(); dateFormatter = new GitDateFormatter(Format.DEFAULT); msgFormatter = new SquashMessageFormatter(); }
969970971972973974975976977
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); }
8182838485868788
return ""; //$NON-NLS-1$ } private GitDateFormatter getDateFormatter() { if (dateFormatter == null) dateFormatter = new GitDateFormatter(format); return dateFormatter; }