Class TaskPropertiesDialog

All Implemented Interfaces:
IShellProvider

public class TaskPropertiesDialog extends DialogTaskProperties
Shows the properties of a new or existing task, or a problem.
  • Constructor Details

    • TaskPropertiesDialog

      public TaskPropertiesDialog(Shell parentShell)
      Creates the dialog. By default this dialog creates a new task. To set the resource and initial attributes for the new task, use setResource and setInitialAttributes. To show or modify an existing task, use setMarker.
      Parameters:
      parentShell - the parent shell
  • Method Details

    • getDialogBoundsSettings

      protected IDialogSettings getDialogBoundsSettings()
      Description copied from class: Dialog
      Gets the dialog settings that should be used for remembering the bounds of of the dialog, according to the dialog bounds strategy.
      Overrides:
      getDialogBoundsSettings in class DialogMarkerProperties
      Returns:
      settings the dialog settings used to store the dialog's location and/or size, or null if the dialog's bounds should never be stored.
      See Also:
    • setMarker

      public void setMarker(IMarker marker)
      Sets the marker to show or modify.
      Overrides:
      setMarker in class DialogMarkerProperties
      Parameters:
      marker - the marker, or null to create a new marker
    • getMarker

      public IMarker getMarker()
      Returns the marker being created or modified. For a new marker, this returns null until the dialog returns, but is non-null after.
      Overrides:
      getMarker in class DialogMarkerProperties
      Returns:
      the marker
    • setResource

      public void setResource(IResource resource)
      Sets the resource to use when creating a new task. If not set, the new task is created on the workspace root.
      Overrides:
      setResource in class DialogMarkerProperties
      Parameters:
      resource - the resource
    • getResource

      public IResource getResource()
      Returns the resource to use when creating a new task, or null if none has been set. If not set, the new task is created on the workspace root.
      Overrides:
      getResource in class DialogMarkerProperties
      Returns:
      the resource
    • setInitialAttributes

      public void setInitialAttributes(Map<String,Object> initialAttributes)
      Sets initial attributes to use when creating a new task. If not set, the new task is created with default attributes.
      Overrides:
      setInitialAttributes in class DialogMarkerProperties
      Parameters:
      initialAttributes - the initial attributes
    • getInitialAttributes

      public Map<String,Object> getInitialAttributes()
      Returns the initial attributes to use when creating a new task, or null if not set. If not set, the new task is created with default attributes.
      Overrides:
      getInitialAttributes in class DialogMarkerProperties
      Returns:
      the initial attributes