public abstract class DialogMarkerFilter
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
Modifier and Type | Method and Description |
---|---|
protected void |
buttonPressed(int buttonId) |
protected void |
configureShell(org.eclipse.swt.widgets.Shell newShell)
Method declared on Window.
|
protected org.eclipse.swt.widgets.Button |
createCheckbox(org.eclipse.swt.widgets.Composite parent,
java.lang.String text,
boolean grabRow)
Creates a check box button with the given parent and text.
|
protected org.eclipse.swt.widgets.Combo |
createCombo(org.eclipse.swt.widgets.Composite parent,
java.lang.String[] items,
int selectionIndex)
Creates a combo box with the given parent, items, and selection
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
Method declared on Dialog.
|
protected void |
createFilterSelectButtons(org.eclipse.swt.widgets.Composite listArea)
Create the buttons for selecting the filters.
|
protected org.eclipse.swt.widgets.Button |
createRadioButton(org.eclipse.swt.widgets.Composite parent,
java.lang.String text)
Creates a radio button with the given parent and text.
|
protected void |
createResetArea(org.eclipse.swt.widgets.Composite parent) |
protected void |
createResourceArea(org.eclipse.swt.widgets.Composite parent)
Creates the area showing which resources should be considered.
|
protected void |
createSeparatorLine(org.eclipse.swt.widgets.Composite parent)
Creates a separator line above the OK/Cancel buttons bar
|
protected void |
createTypesArea(org.eclipse.swt.widgets.Composite parent)
Creates the area showing which marker types should be included.
|
protected org.eclipse.jface.viewers.ViewerComparator |
getComparator()
Return the sorter for the receiver.
|
MarkerFilter[] |
getFilters() |
protected MarkerFilter |
getSelectedFilter()
Get the currently selected marker filter if there is only one selection.
|
protected java.util.List |
getSelectedTypes()
Returns the selected marker types.
|
protected abstract MarkerFilter |
newFilter(java.lang.String newName)
Crate a newFilter called newName
|
protected void |
okPressed() |
protected void |
removeFilters(org.eclipse.jface.viewers.ISelection selection)
Remove the filters in selection.
|
protected void |
resetPressed()
Handles a press of the Reset button.
|
void |
setFilter(MarkerFilter newFilter)
Set the marker filter.
|
protected void |
setSelectedFilter(org.eclipse.jface.viewers.SelectionChangedEvent event)
Set the selected filter from event.
|
protected void |
updateEnabledState(boolean enabled)
Updates the enabled state of the widgetry based on whether or not it is enabled.
|
protected void |
updateFilterFromUI()
Updates the given filter from the UI state.
|
protected void |
updateFilterFromUI(MarkerFilter filter)
Update the selected filter from the UI.
|
protected void |
updateForSelection()
A selection has occured on one of the checkboxes or combos.
|
protected void |
updateUIFromFilter()
Updates the UI state from the given filter.
|
protected void |
updateUIWithFilter(MarkerFilter filter)
Update the UI with the contents of filter.
|
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, 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
protected void buttonPressed(int buttonId)
buttonPressed
in class org.eclipse.jface.dialogs.Dialog
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
configureShell
in class org.eclipse.jface.window.Window
protected void createResetArea(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.swt.widgets.Button createCheckbox(org.eclipse.swt.widgets.Composite parent, java.lang.String text, boolean grabRow)
parent
- the parent compositetext
- the text for the check boxgrabRow
- true
to grab the remaining horizontal space, false
otherwiseprotected org.eclipse.swt.widgets.Combo createCombo(org.eclipse.swt.widgets.Composite parent, java.lang.String[] items, int selectionIndex)
parent
- the parent compositeitems
- the items for the combo boxselectionIndex
- the index of the item to selectprotected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
protected void setSelectedFilter(org.eclipse.jface.viewers.SelectionChangedEvent event)
event
- protected void removeFilters(org.eclipse.jface.viewers.ISelection selection)
selection
- protected abstract MarkerFilter newFilter(java.lang.String newName)
newName
- protected void createSeparatorLine(org.eclipse.swt.widgets.Composite parent)
parent
- the parent compositeprotected org.eclipse.swt.widgets.Button createRadioButton(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
parent
- the parent compositetext
- the text for the check boxprotected void createResourceArea(org.eclipse.swt.widgets.Composite parent)
parent
- the parent compositeprotected void createTypesArea(org.eclipse.swt.widgets.Composite parent)
parent
- the parent compositeprotected MarkerFilter getSelectedFilter()
null
.protected java.util.List getSelectedTypes()
protected org.eclipse.jface.viewers.ViewerComparator getComparator()
protected void okPressed()
okPressed
in class org.eclipse.jface.dialogs.Dialog
protected void resetPressed()
protected void updateEnabledState(boolean enabled)
protected final void updateFilterFromUI()
protected void updateFilterFromUI(MarkerFilter filter)
filter
- protected final void updateUIFromFilter()
protected void updateUIWithFilter(MarkerFilter filter)
filter
- public void setFilter(MarkerFilter newFilter)
newFilter
- public MarkerFilter[] getFilters()
protected void updateForSelection()
protected void createFilterSelectButtons(org.eclipse.swt.widgets.Composite listArea)
listArea
-