<commit_before>package nl.mpi.kinnate.ui;

import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.FocusManager;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.event.MenuEvent;
import javax.swing.event.MenuListener;
import nl.mpi.kinnate.svg.GraphPanel;
import nl.mpi.kinnate.svg.MouseListenerSvg;

/**
 *  Document   : SvgKeyListener
 *  Created on : May 27, 2011, 1:01:02 PM
 *  Author     : <NAME>
 */
public class EditMenu extends JMenu implements ActionListener {
    //    ctrl + a = select all
    //    ctrl + r = select related
    //    ctrl + e = expand selection
    //    ctrl + d = deselect all

    JMenuItem selectAllMenu = null;
    JMenuItem selectRelatedMenu = null;
    JMenuItem expandSelectionMenu = null;
    JMenuItem deselectAllMenu = null;
    GraphPanel initialGraphPanel = null;

    public EditMenu() {
        this.addMenuListener(new MenuListener() {

            public void menuCanceled(MenuEvent evt) {
                enableMenuKeys();
            }

            public void menuDeselected(MenuEvent evt) {
//                enableMenuKeys();
            }<commit_msg>Separated the file menu from the MainFrame class. Created a diagram window manager class and moved relevant code out of the MainFrame into the new class. Added a check for unsaved diagrams on application close. Separated out the edit menu into a different class.<commit_after>package nl.mpi.kinnate.ui;

import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.FocusManager;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.event.MenuEvent;
import javax.swing.event.MenuListener;
import nl.mpi.kinnate.svg.GraphPanel;
import nl.mpi.kinnate.svg.MouseListenerSvg;

/**
 *  Document   : SvgKeyListener
 *  Created on : May 27, 2011, 1:01:02 PM
 *  Author     : <NAME>
 */
public class EditMenu extends JMenu implements ActionListener {
    //    ctrl + a = select all
    //    ctrl + r = select related
    //    ctrl + e = expand selection
    //    ctrl + d = deselect all

    JMenuItem selectAllMenu = null;
    JMenuItem selectRelatedMenu = null;
    JMenuItem expandSelectionMenu = null;
    JMenuItem deselectAllMenu = null;
    GraphPanel initialGraphPanel = null;

    public EditMenu() {
        this.setText("Edit");
        this.addMenuListener(new MenuListener() {

            public void menuCanceled(MenuEvent evt) {
                enableMenuKeys();
            }

            public void menuDeselected(MenuEvent evt) {
//                enableMenuKeys();
            }
{'fraction_non_alphanumeric': 0.08848893888263967, 'fraction_numerical': 0.008248968878890138, 'mean_word_length': 2.8333333333333335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5039821', 'n_tokens_mistral': 786, 'n_tokens_neox': 755, 'n_words': 214}