public void detach() {
            try {
                detached = true;
                getSite().getPage().openEditor(
                    new SQLResultsEditorInput(this),
                    SQLResultsEditor.class.getName(),
                    true,
                    IWorkbenchPage.MATCH_NONE
                );
            } catch (Throwable e) {
                DBWorkbench.getPlatformUI().showError("Detached results", "Can't open results view", e);
                detached = false;
            }
        }
Build and update icon and title
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java