~ubuntu-branches/ubuntu/trusty/freeguide/trusty

« back to all changes in this revision

Viewing changes to src/freeguide/plugins/reminder/alarm/AlarmReminder.java

  • Committer: Bazaar Package Importer
  • Author(s): Shaun Jackman
  • Date: 2007-09-11 16:52:59 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070911165259-4r32oke21i1ezbmv
Tags: 0.10.5-1
* New upstream release.
* Update the watch file.
* Change Debian policy to version 3.7.2.2. No changes necessary.
* Add ant-optional to build dependencies. Closes: #441762.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import java.awt.event.MouseEvent;
21
21
import java.awt.event.MouseListener;
22
22
 
 
23
import java.text.MessageFormat;
 
24
 
23
25
import java.util.logging.Level;
24
26
 
25
27
import javax.swing.JDialog;
80
82
 
81
83
        if( !isSelected( programme ) )
82
84
        {
83
 
            sel.setText( i18n.getLocalizedMessage( "popup.selection.add" ) );
 
85
            sel.setText( i18n.getString( "popup.selection.add" ) );
84
86
            sel.addActionListener( 
85
87
                new ActionListener(  )
86
88
                {
93
95
        }
94
96
        else
95
97
        {
96
 
            sel.setText( i18n.getLocalizedMessage( "popup.selection.del" ) );
 
98
            sel.setText( i18n.getString( "popup.selection.del" ) );
97
99
            sel.addActionListener( 
98
100
                new ActionListener(  )
99
101
                {
111
113
 
112
114
        if( getFavourite( programme ) == null )
113
115
        {
114
 
            fav.setText( i18n.getLocalizedMessage( "popup.favourite.add" ) );
 
116
            fav.setText( i18n.getString( "popup.favourite.add" ) );
115
117
            fav.addActionListener( 
116
118
                new ActionListener(  )
117
119
                {
129
131
        }
130
132
        else
131
133
        {
132
 
            fav.setText( i18n.getLocalizedMessage( "popup.favourite.del" ) );
 
134
            fav.setText( i18n.getString( "popup.favourite.del" ) );
133
135
            fav.addActionListener( 
134
136
                new ActionListener(  )
135
137
                {
160
162
        int r =
161
163
            JOptionPane.showConfirmDialog( 
162
164
                null, //controller.getPanel(  ),
163
 
                i18n.getLocalizedMessage( 
164
 
                    "popup.favourite.del.prompt", messageArguments ),
165
 
                i18n.getLocalizedMessage( "popup.favourite.del.title" ),
 
165
                MessageFormat.format( 
 
166
                    i18n.getString( "popup.favourite.del.prompt" ),
 
167
                    messageArguments ),
 
168
                i18n.getString( "popup.favourite.del.title" ),
166
169
                JOptionPane.YES_NO_OPTION );
167
170
 
168
171
        if( r == 0 )
289
292
                    && ( timeForDisplay <= System.currentTimeMillis(  ) ) )
290
293
            {
291
294
                String message =
292
 
                    i18n.getLocalizedMessage( 
293
 
                        "alarm.text",
 
295
                    MessageFormat.format( 
 
296
                        i18n.getString( "alarm.text" ),
294
297
                        new Object[] { scheduledProgramme.getTitle(  ) } );
295
298
 
296
299
                JOptionPane optionPane =
298
301
 
299
302
                scheduledDialog = optionPane.createDialog( 
300
303
                        Application.getInstance(  ).getApplicationFrame(  ),
301
 
                        i18n.getLocalizedMessage( "alarm.title" ) );
 
304
                        i18n.getString( "alarm.title" ) );
302
305
 
303
306
                scheduledDialog.setModal( false );
304
307
 
381
384
     * DOCUMENT ME!
382
385
     *
383
386
     * @author $author$
384
 
     * @version $Revision: 1443 $
 
387
     * @version $Revision: 1602 $
385
388
     */
386
389
    public static class ConfigAlarm extends Config
387
390
    {