private void grammarFileSelectButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_grammarFileSelectButtonActionPerformed
        File selection = Dialogs.selectFileFromDialog(this, grammarFileTextField.getText(), true);

        if (selection != null) {
            grammarFileTextField.setText(selection.getAbsolutePath());
            boolean readable = readFileOrShowError(selection.getAbsolutePath(), grammarTextPane);
            grammarSaveButton.setEnabled(true);
            grammarReloadButton.setEnabled(readable);
        }
    }//GEN-LAST:event_grammarFileSelectButtonActionPerformed