Package org.eclipse.ui.views.tasklist
Class TaskPropertiesDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.ui.views.markers.internal.DialogMarkerProperties
org.eclipse.ui.views.markers.internal.DialogTaskProperties
org.eclipse.ui.views.tasklist.TaskPropertiesDialog
- All Implemented Interfaces:
IShellProvider
Shows the properties of a new or existing task, or a problem.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler -
Field Summary
Fields inherited from class org.eclipse.ui.views.markers.internal.DialogTaskProperties
completedCheckbox, priorityComboFields 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, ELLIPSISFields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IDialogSettingsGets the dialog settings that should be used for remembering the bounds of of the dialog, according to the dialog bounds strategy.Returns the initial attributes to use when creating a new task, ornullif not set.Returns the marker being created or modified.Returns the resource to use when creating a new task, ornullif none has been set.voidsetInitialAttributes(Map<String, Object> initialAttributes) Sets initial attributes to use when creating a new task.voidSets the marker to show or modify.voidsetResource(IResource resource) Sets the resource to use when creating a new task.Methods inherited from class org.eclipse.ui.views.markers.internal.DialogTaskProperties
createAttributesArea, getCompleted, getCreateOperationTitle, getMarkerAttributes, getModifyOperationTitle, getPriority, updateDialogForNewMarker, updateDialogFromMarker, updateEnablementMethods inherited from class org.eclipse.ui.views.markers.internal.DialogMarkerProperties
configureShell, createButtonsForButtonBar, createDialogArea, createSeperator, isDirty, isEditable, isResizable, markDirty, okPressed, setTypeMethods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailableMethods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextMethods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
TaskPropertiesDialog
Creates the dialog. By default this dialog creates a new task. To set the resource and initial attributes for the new task, usesetResourceandsetInitialAttributes. To show or modify an existing task, usesetMarker.- Parameters:
parentShell- the parent shell
-
-
Method Details
-
getDialogBoundsSettings
Description copied from class:DialogGets the dialog settings that should be used for remembering the bounds of of the dialog, according to the dialog bounds strategy.- Overrides:
getDialogBoundsSettingsin classDialogMarkerProperties- Returns:
- settings the dialog settings used to store the dialog's location
and/or size, or
nullif the dialog's bounds should never be stored. - See Also:
-
setMarker
Sets the marker to show or modify.- Overrides:
setMarkerin classDialogMarkerProperties- Parameters:
marker- the marker, ornullto create a new marker
-
getMarker
Returns the marker being created or modified. For a new marker, this returnsnulluntil the dialog returns, but is non-null after.- Overrides:
getMarkerin classDialogMarkerProperties- Returns:
- the marker
-
setResource
Sets the resource to use when creating a new task. If not set, the new task is created on the workspace root.- Overrides:
setResourcein classDialogMarkerProperties- Parameters:
resource- the resource
-
getResource
Returns the resource to use when creating a new task, ornullif none has been set. If not set, the new task is created on the workspace root.- Overrides:
getResourcein classDialogMarkerProperties- Returns:
- the resource
-
setInitialAttributes
Sets initial attributes to use when creating a new task. If not set, the new task is created with default attributes.- Overrides:
setInitialAttributesin classDialogMarkerProperties- Parameters:
initialAttributes- the initial attributes
-
getInitialAttributes
Returns the initial attributes to use when creating a new task, ornullif not set. If not set, the new task is created with default attributes.- Overrides:
getInitialAttributesin classDialogMarkerProperties- Returns:
- the initial attributes
-