private void _closeFile(boolean clearEditor) { if (unsavedEdits) { showConfirmSaveDialog(); } if (clearEditor) { setEntireSQLScript(""); } getActiveSessionTabWidget().setSqlFile(null); fileOpened = false; fileSaved = false; unsavedEdits = false; ActionCollection actions = getSession().getApplication().getActionCollection(); actions.enableAction(FileSaveAction.class, true); _fileManager.clearCurrentFile(); }
private void _closeFile(boolean clearEditor) { if (unsavedEdits) { showConfirmSaveDialog(); } if (clearEditor) { setEntireSQLScript(""); } getActiveSessionTabWidget().setSqlFile(null); fileOpened = false; fileSaved = false; unsavedEdits = false; ActionCollection actions = getSession().getApplication().getActionCollection(); actions.enableAction(FileSaveAction.class, true); _fileManager.clearCurrentFile(); }