@Override
            public void run()
            {
                if (!searching || progressBar.isDisposed()) return;

                int selection = 0;
                if (editControl.getFinder() != null) {
                    selection = (int) (editControl.getFinder().getSearchPosition() >>> finalFactor);
                    if (backwardRadioButton.getSelection()) {
                        selection = progressBar.getMaximum() - selection;
                    }
                }
                progressBar.setSelection(selection);
                Display.getCurrent().timerExec(1000, this);
            }
Create find/replace dialog always on top of shell

@param aShell where it is displayed
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/dialogs/FindReplaceDialog.java