| org.eclipse.ui.texteditor.FindReplaceDialog
FindReplaceDialog | class FindReplaceDialog extends Dialog (Code) | | Find/Replace dialog. The dialog is opened on a particular
target but can be re-targeted. Internally used by the FindReplaceAction
|
Inner Class :class ActivationListener extends ShellAdapter | |
Field Summary | |
boolean | fIsRegExInit Initial value for telling whether the search string is a regular expression. |
Constructor Summary | |
public | FindReplaceDialog(Shell parentShell) Creates a new dialog with the given shell as parent. |
fIsRegExInit | boolean fIsRegExInit(Code) | | Initial value for telling whether the search string is a regular expression.
since: 3.0 |
FindReplaceDialog | public FindReplaceDialog(Shell parentShell)(Code) | | Creates a new dialog with the given shell as parent.
Parameters: parentShell - the parent shell |
buttonPressed | protected void buttonPressed(int buttonID)(Code) | | |
close | public boolean close()(Code) | | See Also: org.eclipse.jface.window.Window.close |
create | public void create()(Code) | | |
createContents | protected Control createContents(Composite parent)(Code) | | |
escapeForRegExPattern | public static String escapeForRegExPattern(String string)(Code) | | Escapes special characters in the string, such that the resulting pattern
matches the given string.
Parameters: string - the string to escape a regex pattern that matches the given string |
getDialogBoundsSettings | protected IDialogSettings getDialogBoundsSettings()(Code) | | |
getDialogBoundsStrategy | protected int getDialogBoundsStrategy()(Code) | | |
getParentShell | public Shell getParentShell()(Code) | | Returns this dialog's parent shell.
the dialog's parent shell |
replaceSelection | Point replaceSelection(String replaceString, boolean regExReplace)(Code) | | Replaces the selection with replaceString . If
regExReplace is true ,
replaceString is a regex replace pattern which will get
expanded if the underlying target supports it. Returns the region of the
inserted text; note that the returned selection covers the expanded
pattern in case of regex replace.
Parameters: replaceString - the replace string (or a regex pattern) Parameters: regExReplace - true if replaceString is a pattern the selection after replacing, i.e. the inserted text since: 3.0 |
setParentShell | public void setParentShell(Shell shell)(Code) | | Sets the parent shell of this dialog to be the given shell.
Parameters: shell - the new parent shell |
updateTarget | public void updateTarget(IFindReplaceTarget target, boolean isTargetEditable, boolean initializeFindString)(Code) | | Updates this dialog because of a different target.
Parameters: target - the new target Parameters: isTargetEditable - true if the new target can be modified Parameters: initializeFindString - true if the find string of this dialog should be initialized based on the viewer's selection since: 2.0 |
|
|