Skip to content

Commit

Permalink
Find/Replace Overlay: add help context to Overlay
Browse files Browse the repository at this point in the history
Add the find/replace help context to the overlay which was also used for
the find/replace dialog. In particular, display help for find/replace
with regex patterns.

fixes #1994
  • Loading branch information
Maximilian Wittmer authored and Maximilian Wittmer committed Jul 6, 2024
1 parent 44dc49e commit 7118f66
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
import org.eclipse.ui.internal.findandreplace.SearchOptions;
import org.eclipse.ui.internal.findandreplace.status.IFindReplaceStatus;

import org.eclipse.ui.texteditor.IAbstractTextEditorHelpContextIds;
import org.eclipse.ui.texteditor.StatusTextEditor;

/**
Expand Down Expand Up @@ -428,6 +429,9 @@ private void bindListeners() {

@Override
public Control createContents(Composite parent) {
PlatformUI.getWorkbench().getHelpSystem().setHelp(getShell(),
IAbstractTextEditorHelpContextIds.FIND_REPLACE_DIALOG);

backgroundToUse = new Color(getShell().getDisplay(), new RGBA(0, 0, 0, 0));
Control ret = createDialog(parent);

Expand Down

0 comments on commit 7118f66

Please sign in to comment.