/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

package net.localizethat.actions;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import net.localizethat.Main;
import net.localizethat.gui.GlossaryGuiManager;

/**
 * Opens a tab with the Glossary manager in the main window
 * @author rpalomares
 */
public class GlossaryManagerAction extends AbstractAction {
    private static final String TITLE = "Glossary Manager";
    private static final String DESCRIPTION = "Opens " + TITLE;
    private static final int MNEMONIC = java.awt.event.KeyEvent.VK_G;
    private GlossaryGuiManager glossaryGuiMgr;

    /**
     * Action representing the launching of the Main panel as a tab in main window
     */
    public GlossaryManagerAction() {
        super(TITLE);
        putValue(SHORT_DESCRIPTION, DESCRIPTION);
        putValue(MNEMONIC_KEY, MNEMONIC);
        putValue(ACCELERATOR_KEY, javax.swing.KeyStroke.getKeyStroke(MNEMONIC, java.awt.event.InputEvent.CTRL_MASK));
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        if (glossaryGuiMgr == null) {
            glossaryGuiMgr = new GlossaryGuiManager();
        }
        Main.mainWindow.addTab(glossaryGuiMgr, TITLE);
    }

}

@@ -366,16 +366,26 @@
 hat.gui.
+tabpanels.
 Glossary

Move GlossaryManager to tabpanels package (leftover)