private void saveResultAndClose()
    {
        lastLocationText = text.getText();
        finalResult = tempResult;
        dialogShell.close();
    }
Save the result and close dialog
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/dialogs/GoToDialog.java