public class DialogMarkerProperties
extends org.eclipse.jface.dialogs.TrayDialog
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
Constructor and Description |
---|
DialogMarkerProperties(org.eclipse.swt.widgets.Shell parentShell)
Creates the dialog.
|
DialogMarkerProperties(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String title)
Creates the dialog.
|
DialogMarkerProperties(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String title,
java.lang.String markerName)
Creates the dialog.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureShell(org.eclipse.swt.widgets.Shell newShell)
Method declared on Window.
|
protected void |
createAttributesArea(org.eclipse.swt.widgets.Composite parent)
This method is intended to be overridden by subclasses.
|
protected void |
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Creates the OK and Cancel buttons.
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
Method declared on Dialog.
|
protected void |
createSeperator(org.eclipse.swt.widgets.Composite parent)
Creates a seperator.
|
protected java.lang.String |
getCreateOperationTitle()
Return the string that describes a create marker operation.
|
protected org.eclipse.jface.dialogs.IDialogSettings |
getDialogBoundsSettings() |
protected java.util.Map |
getInitialAttributes()
Returns the initial attributes to use when creating a new task, or
null if not set. |
protected org.eclipse.core.resources.IMarker |
getMarker()
Returns the marker being created or modified.
|
protected java.util.Map |
getMarkerAttributes()
Returns the marker attributes to save back to the marker, based on the current dialog fields.
|
protected java.lang.String |
getModifyOperationTitle()
Return the string that describes a modify marker operation.
|
protected org.eclipse.core.resources.IResource |
getResource()
Returns the resource to use when creating a new task, or
null if none has been set. |
protected boolean |
isDirty() |
protected boolean |
isEditable() |
protected void |
markDirty()
Sets the dialog's dirty flag to
true |
protected void |
okPressed()
Method declared on Dialog
|
protected void |
setInitialAttributes(java.util.Map initialAttributes)
Sets initial attributes to use when creating a new task.
|
void |
setMarker(org.eclipse.core.resources.IMarker marker)
Sets the marker to show or modify.
|
void |
setResource(org.eclipse.core.resources.IResource resource)
Sets the resource to use when creating a new task.
|
protected void |
setType(java.lang.String type)
Sets the marker type when creating a new marker.
|
protected void |
updateDialogForNewMarker()
Updates the dialog from the predefined attributes.
|
protected void |
updateDialogFromMarker()
Updates the dialog from the marker state.
|
protected void |
updateEnablement()
Updates widget enablement for the dialog.
|
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
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, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
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
public DialogMarkerProperties(org.eclipse.swt.widgets.Shell parentShell)
setResource
and setInitialAttributes
. To show or modify an existing
marker, use setMarker
.parentShell
- the parent shellpublic DialogMarkerProperties(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title)
setResource
and setInitialAttributes
. To show or modify an existing
marker, use setMarker
.parentShell
- the parent shelltitle
- the title of the dialogpublic DialogMarkerProperties(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, java.lang.String markerName)
setResource
and setInitialAttributes
. To show or modify an existing
marker, use setMarker
.parentShell
- the parent shelltitle
- the title of the dialogmarkerName
- the name used to describe the specific kind of marker shownpublic void setMarker(org.eclipse.core.resources.IMarker marker)
IMPORTANT: Although this class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes.
marker
- the marker, or null
to create a new markerprotected org.eclipse.core.resources.IMarker getMarker()
null
until the dialog
returns, but is non-null after.
IMPORTANT: Although this method is protected and the class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes.
public void setResource(org.eclipse.core.resources.IResource resource)
IMPORTANT: Although this class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes.
resource
- the resourceprotected org.eclipse.core.resources.IResource getResource()
null
if none has been set. If not set, the
new task is created on the workspace root.
IMPORTANT: Although this method is protected and the class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes.
protected void setInitialAttributes(java.util.Map initialAttributes)
IMPORTANT: Although this method is protected and the class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes.
initialAttributes
- the initial attributesprotected java.util.Map getInitialAttributes()
null
if not set. If not set, the
new task is created with default attributes.
IMPORTANT: Although this method is protected and the class is internal, there are public subclasses that expose this method as API. Changes in this implementation should be treated as API changes.
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
configureShell
in class org.eclipse.jface.window.Window
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
protected void createSeperator(org.eclipse.swt.widgets.Composite parent)
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
createButtonsForButtonBar
in class org.eclipse.jface.dialogs.Dialog
protected void createAttributesArea(org.eclipse.swt.widgets.Composite parent)
parent
- the parent compositeprotected void updateDialogFromMarker()
protected void updateDialogForNewMarker()
protected void okPressed()
okPressed
in class org.eclipse.jface.dialogs.Dialog
protected void markDirty()
true
protected boolean isDirty()
true
if the dirty flag has been set to true.false
otherwise.protected java.util.Map getMarkerAttributes()
protected void updateEnablement()
protected boolean isEditable()
true
if the marker is editable or the dialog is creating a new marker.false
if the marker is not editable.protected void setType(java.lang.String type)
type
- the marker typeprotected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
getDialogBoundsSettings
in class org.eclipse.jface.dialogs.Dialog
protected java.lang.String getModifyOperationTitle()
protected java.lang.String getCreateOperationTitle()