public class XtextEObjectSearchDialog
extends org.eclipse.ui.dialogs.ListDialog
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.swt.widgets.Text |
searchControl |
protected org.eclipse.swt.widgets.Text |
typeSearchControl |
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 |
|---|
XtextEObjectSearchDialog(org.eclipse.swt.widgets.Shell parent,
IXtextEObjectSearch searchEngine,
org.eclipse.jface.viewers.ILabelProvider labelProvider) |
XtextEObjectSearchDialog(org.eclipse.swt.widgets.Shell parent,
IXtextEObjectSearch searchEngine,
org.eclipse.jface.viewers.ILabelProvider labelProvider,
boolean enableStyledLabels) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyFilter()
Called when the dialog is initially opened and whenever the input text changes.
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite container) |
protected org.eclipse.swt.widgets.Label |
createMessageArea(org.eclipse.swt.widgets.Composite composite) |
protected String |
getInitialPattern() |
protected IXtextEObjectSearch |
getSearchEngine() |
protected int |
getTableStyle() |
int |
open() |
void |
setInitialPattern(String text) |
void |
setInitialTypePattern(String text) |
void |
setInitialTypePattern(String text,
boolean editable) |
protected void |
startSizeCalculation(Iterable<IEObjectDescription> matches)
Called by
applyFilter() and is responsible for calling updateMatches(Collection, boolean) with
an appropriately sorted list of matches. |
void |
updateMatches(Collection<IEObjectDescription> matches,
boolean isFinished) |
createButtonsForButtonBar, getHeightInChars, getTableViewer, getWidthInChars, okPressed, setAddCancelButton, setContentProvider, setHeightInChars, setInput, setLabelProvider, setWidthInCharsconfigureShell, getDialogBoundsSettings, getDialogBoundsStrategy, getInitialElementSelections, getInitialSelections, getMessage, getOkButton, getResult, isResizable, setDialogBoundsSettings, setInitialElementSelections, setInitialSelections, setMessage, setResult, setSelectionResult, setTitlecloseTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailableapplyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextcanHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManagerprotected org.eclipse.swt.widgets.Text searchControl
protected org.eclipse.swt.widgets.Text typeSearchControl
public XtextEObjectSearchDialog(org.eclipse.swt.widgets.Shell parent,
IXtextEObjectSearch searchEngine,
org.eclipse.jface.viewers.ILabelProvider labelProvider)
public XtextEObjectSearchDialog(org.eclipse.swt.widgets.Shell parent,
IXtextEObjectSearch searchEngine,
org.eclipse.jface.viewers.ILabelProvider labelProvider,
boolean enableStyledLabels)
protected IXtextEObjectSearch getSearchEngine()
public void setInitialPattern(String text)
protected String getInitialPattern()
public void setInitialTypePattern(String text)
public void setInitialTypePattern(String text, boolean editable)
public int open()
open in class org.eclipse.jface.window.Windowprotected int getTableStyle()
getTableStyle in class org.eclipse.ui.dialogs.ListDialogprotected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite container)
createDialogArea in class org.eclipse.ui.dialogs.ListDialogprotected org.eclipse.swt.widgets.Label createMessageArea(org.eclipse.swt.widgets.Composite composite)
createMessageArea in class org.eclipse.ui.dialogs.SelectionDialogprotected void applyFilter()
searchControl and typeSearchControl using getSearchEngine() and updates
the result using startSizeCalculation(Iterable).public void updateMatches(Collection<IEObjectDescription> matches, boolean isFinished)
protected void startSizeCalculation(Iterable<IEObjectDescription> matches)
applyFilter() and is responsible for calling updateMatches(Collection, boolean) with
an appropriately sorted list of matches.Copyright © 2016. All Rights Reserved.