Ignore:
Timestamp:
07/20/06 02:57:15 (18 years ago)
Author:
Nicholas Riley
Message:

Discard alarm confirmation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hiptop/pester/net/sabi/pester/AlarmListView.java

    r259 r260  
    33import danger.app.Application;
    44import danger.app.Event;
     5import danger.ui.AlertWindow;
    56import danger.ui.ActiveListView;
    67import danger.util.ActiveList;
     
    4142            alarmSetDialog().editAlarm(new Alarm(), true);
    4243            return true;
     44        case EVENT_CONFIRM_DISCARD_ALARM:
     45            AlertWindow alert =
     46                Application.getCurrentApp().getAlert(ID_DISCARD_ALERT, this);
     47            // XXX localize
     48            alert.setMessage("Permanently discard \u201c" +
     49                             ((Alarm)getFocusedItem()).getMessage() +
     50                             "\u201d?");
     51            alert.show();
     52            return true;
    4353        case EVENT_DISCARD_ALARM:
    44             // XXX prompt for confirmation
    4554            Alarms.removeAlarm((Alarm)getFocusedItem());
    4655            return true;
Note: See TracChangeset for help on using the changeset viewer.