org.eclipse.mylar.internal.tasks.ui
Class TasksReminderDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.mylar.internal.tasks.ui.TasksReminderDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class TasksReminderDialog
extends org.eclipse.jface.dialogs.Dialog

Author:
Ken Sueda

Nested Class Summary
private  class TasksReminderDialog.ReminderTasksContentProvider
           
private static class TasksReminderDialog.ReminderTasksLabelProvider
           
private static class TasksReminderDialog.ReminderTaskSorter
           
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
private  java.lang.String[] columnNames
           
private static long DAY
           
private static int DISMISS_ALL_ID
           
private static java.lang.String DISMISS_ALL_LABEL
           
private static int DISMISS_ID
           
private static java.lang.String DISMISS_LABEL
           
private static java.lang.String SNOOZE_ALL_LABEL
           
private static int SNOOZE_ID
           
private  org.eclipse.swt.widgets.Table table
           
private  org.eclipse.jface.viewers.TableViewer tableViewer
           
private  java.util.List<ITask> tasks
           
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
TasksReminderDialog(org.eclipse.swt.widgets.Shell parentShell, java.util.List<ITask> remTasks)
           
 
Method Summary
protected  void buttonPressed(int buttonId)
           
protected  void configureShell(org.eclipse.swt.widgets.Shell shell)
           
protected  void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
private  void createTable(org.eclipse.swt.widgets.Composite parent)
           
private  void createTableViewer()
           
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tasks

private java.util.List<ITask> tasks

table

private org.eclipse.swt.widgets.Table table

tableViewer

private org.eclipse.jface.viewers.TableViewer tableViewer

columnNames

private java.lang.String[] columnNames

DISMISS_ALL_ID

private static final int DISMISS_ALL_ID
See Also:
Constant Field Values

DISMISS_ID

private static final int DISMISS_ID
See Also:
Constant Field Values

SNOOZE_ID

private static final int SNOOZE_ID
See Also:
Constant Field Values

DISMISS_ALL_LABEL

private static final java.lang.String DISMISS_ALL_LABEL
See Also:
Constant Field Values

DISMISS_LABEL

private static final java.lang.String DISMISS_LABEL
See Also:
Constant Field Values

SNOOZE_ALL_LABEL

private static final java.lang.String SNOOZE_ALL_LABEL
See Also:
Constant Field Values

DAY

private static long DAY
Constructor Detail

TasksReminderDialog

public TasksReminderDialog(org.eclipse.swt.widgets.Shell parentShell,
                           java.util.List<ITask> remTasks)
Method Detail

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell shell)
Overrides:
configureShell in class org.eclipse.jface.window.Window

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogArea in class org.eclipse.jface.dialogs.Dialog

createButtonsForButtonBar

protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Overrides:
createButtonsForButtonBar in class org.eclipse.jface.dialogs.Dialog

createTable

private void createTable(org.eclipse.swt.widgets.Composite parent)

createTableViewer

private void createTableViewer()

buttonPressed

protected void buttonPressed(int buttonId)
Overrides:
buttonPressed in class org.eclipse.jface.dialogs.Dialog