Class MainWindowMenu

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.MenuListener, IMainMenu

    public class MainWindowMenu
    extends java.lang.Object
    implements java.awt.event.ActionListener, javax.swing.event.MenuListener, IMainMenu
    Add newly created MenuItem items to /src/org/omegat/gui/main/MainMenuShortcuts.properties and /src/org/omegat/gui/main/MainMenuShortcuts.mac.properties with the proper shortcuts if set.
    • Field Detail

      • editMultipleDefault

        public javax.swing.JMenuItem editMultipleDefault
      • editMultipleAlternate

        public javax.swing.JMenuItem editMultipleAlternate
      • gotoHistoryBackMenuItem

        public javax.swing.JMenuItem gotoHistoryBackMenuItem
      • gotoHistoryForwardMenuItem

        public javax.swing.JMenuItem gotoHistoryForwardMenuItem
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent evt)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • invokeAction

        public void invokeAction​(java.lang.String action,
                                 int modifiers)
        Code for dispatching events from components to event handlers.
        Specified by:
        invokeAction in interface IMainMenu
        Parameters:
        action - ActionCommand of triggering menu item
        modifiers - Modifier key flags (can be zero)
      • menuSelected

        public void menuSelected​(javax.swing.event.MenuEvent evt)
        Code for dispatching events from components to event handlers.
        Specified by:
        menuSelected in interface javax.swing.event.MenuListener
        Parameters:
        evt - event info
      • menuCanceled

        public void menuCanceled​(javax.swing.event.MenuEvent e)
        Specified by:
        menuCanceled in interface javax.swing.event.MenuListener
      • menuDeselected

        public void menuDeselected​(javax.swing.event.MenuEvent e)
        Specified by:
        menuDeselected in interface javax.swing.event.MenuListener
      • getToolsMenu

        public javax.swing.JMenu getToolsMenu()
        Specified by:
        getToolsMenu in interface IMainMenu