Package org.jitterbit.application.ui.menu

Examples of org.jitterbit.application.ui.menu.Menu.populate()


            @Override
            public void actionPerformed(ActionEvent e) {
                MenuManager mgr = m_TreeMapper.getView().getMenuManager();
                Menu menu = mgr.getMenu(InterchangeMenus.MAP_AREA_SETTINGS);
                JPopupMenu popup = new JPopupMenu();
                menu.populate(popup);
                m_TreeMapper.showPopupMenu(popup);
            }
      };
      if(m_TreeMapper!=null)m_TreeMapper.registerKeyboardShortCut(KeyUtils.getCtrlDown(KeyEvent.VK_M), "displaySettings", action);
  }
View Full Code Here


    }

    private JPopupMenu createPopup() {
        Menu menu = new EditTransformationMenu(page);
        JPopupMenu pm = new JPopupMenu();
        menu.populate(pm);
        return pm;
    }
}
View Full Code Here

    private void publish() {
        Menu menu = getFileMenu();
        menu.addExtension(FILE_MENU_EXTENSION_POINT, contribution);
        JMenu jmenu = getFileJMenu();
        if (jmenu != null) {
            menu.populate(jmenu);
        }
    }

    private Menu getFileMenu() {
        return window.getMenuManager().getMenu(ApplicationWindowMenus.FILE);
View Full Code Here

        Menu menu = getMenu(menuId);
        if (menu != null) {
            extension.removeFromMenu(menu);
            JMenu jm = getJMenu(menuId);
            if (jm != null) {
                menu.populate(jm);
            }
        }
    }

    @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.