@Override
public void execute() {
if (isFileOpened(schemaObject) || databaseFile.preOpen()) {
DatabaseBrowserManager.AUTOSCROLL_FROM_EDITOR.set(scroll);
FileEditorManager fileEditorManager = FileEditorManager.getInstance(object.getProject());
FileEditor[] fileEditors = fileEditorManager.openFile(databaseFile, true);
for (FileEditor fileEditor : fileEditors) {
if (fileEditor instanceof SourceCodeMainEditor) {
SourceCodeMainEditor sourceCodeEditor = (SourceCodeMainEditor) fileEditor;
EditorUtil.selectEditor(databaseFile, fileEditor);
sourceCodeEditor.navigateTo(object);