org.eclipse.mylar.internal.tasks.ui.views
Class TaskInputDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.mylar.internal.tasks.ui.views.TaskInputDialog
- All Implemented Interfaces:
- org.eclipse.jface.window.IShellProvider
public class TaskInputDialog
- extends org.eclipse.jface.dialogs.Dialog
- Author:
- Ken Sueda, Wesley Coelho (Extended to allow URL input), Mik Kersten
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
org.eclipse.jface.window.Window.IExceptionHandler |
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 |
TaskInputDialog(org.eclipse.swt.widgets.Shell parentShell)
|
Method Summary |
protected void |
buttonPressed(int buttonId)
|
protected void |
configureShell(org.eclipse.swt.widgets.Shell shell)
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
|
protected java.lang.String |
getClipboardText()
Returns the contents of the clipboard or "" if no text content was
available |
protected java.lang.String |
getDefaultIssueUrl()
Returns the default URL text for the task by first checking the contents
of the clipboard and then using the default prefix preference if that
fails |
java.lang.String |
getIssueURL()
|
java.util.Date |
getReminderDate()
|
java.lang.String |
getSelectedPriority()
|
java.lang.String |
getTaskname()
|
protected void |
retrieveTaskDescription(java.lang.String url)
Attempts to set the task pageTitle to the title from the specified url |
protected void |
setButtonStatus()
Sets the Get Description button enabled or not depending on whether there
is a URL specified |
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, 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 |
LABEL_SHELL
public static final java.lang.String LABEL_SHELL
- See Also:
- Constant Field Values
LABEL_DESCRIPTION
private static final java.lang.String LABEL_DESCRIPTION
- See Also:
- Constant Field Values
taskName
private java.lang.String taskName
priority
private java.lang.String priority
taskURL
private java.lang.String taskURL
reminderDate
private java.util.Date reminderDate
taskNameTextWidget
org.eclipse.swt.widgets.Text taskNameTextWidget
issueURLTextWidget
private org.eclipse.swt.widgets.Text issueURLTextWidget
getDescButton
private org.eclipse.swt.widgets.Button getDescButton
TaskInputDialog
public TaskInputDialog(org.eclipse.swt.widgets.Shell parentShell)
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
setButtonStatus
protected void setButtonStatus()
- Sets the Get Description button enabled or not depending on whether there
is a URL specified
getDefaultIssueUrl
protected java.lang.String getDefaultIssueUrl()
- Returns the default URL text for the task by first checking the contents
of the clipboard and then using the default prefix preference if that
fails
retrieveTaskDescription
protected void retrieveTaskDescription(java.lang.String url)
- Attempts to set the task pageTitle to the title from the specified url
getClipboardText
protected java.lang.String getClipboardText()
- Returns the contents of the clipboard or "" if no text content was
available
getSelectedPriority
public java.lang.String getSelectedPriority()
getTaskname
public java.lang.String getTaskname()
getReminderDate
public java.util.Date getReminderDate()
getIssueURL
public java.lang.String getIssueURL()
buttonPressed
protected void buttonPressed(int buttonId)
- Overrides:
buttonPressed
in class org.eclipse.jface.dialogs.Dialog
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell shell)
- Overrides:
configureShell
in class org.eclipse.jface.window.Window