Example #1
0
 /**
  * set / update, or calls methods to set / update, all components affected by the <code>locale
  * </code>
  *
  * @see #updateHeader
  * @see #updateDayLabels
  * @see #updateDays
  * @see #updateFooter
  */
 private void updateLocale() {
   Locale locale = cdt.getLocale();
   if (monthPrev != null)
     monthPrev.setToolTipText(Resources.getString("nav_prev_month", locale)); // $NON-NLS-1$
   if (monthNext != null)
     monthNext.setToolTipText(Resources.getString("nav_next_month", locale)); // $NON-NLS-1$
   if (dateNow != null)
     dateNow.setToolTipText(Resources.getString("nav_current_day", locale)); // $NON-NLS-1$
   if (yearPrev != null)
     yearPrev.setToolTipText(Resources.getString("nav_prev_year", locale)); // $NON-NLS-1$
   if (yearNext != null)
     yearNext.setToolTipText(Resources.getString("nav_next_year", locale)); // $NON-NLS-1$
   if (today != null)
     today.setToolTipText(Resources.getString("nav_current_day", locale)); // $NON-NLS-1$
   if (todayMenuItem != null)
     todayMenuItem.setText(Resources.getString("nav_current_day", locale)); // $NON-NLS-1$
   if (showSelMenuItem != null)
     showSelMenuItem.setText(Resources.getString("show_selection", locale)); // $NON-NLS-1$
 }