Package org.jitterbit.application.ui.menu

Examples of org.jitterbit.application.ui.menu.MenuContribution.addItem()


    }

    private void addMenuSwitch(Menu viewMenu, ViewShell shell) {
        MenuContribution viewSwitches = new MenuContribution("ViewMenu.ViewSwitches");
        Action action = shell.getSwitchAction();
        viewSwitches.addItem(new KongaMenuItem(action));
        viewMenu.addExtension(MenuExtensionPoint.EXTENSION_POINT_1, viewSwitches);
    }


    private void addMenuExtensionsFromShell(ViewShell shell) {
View Full Code Here


                if (itemData != null) {
                    MenuContribution contrib = new MenuContribution("ViewMenu." + pt.name());
                    for (ViewMenuItemFactory item : itemData) {
                        JMenuItem jm = item.createMenuItem(appWin);
                        if (jm != null) {
                            contrib.addItem(jm);
                        } else {
                            contrib.addSeparator();
                        }
                    }
                    m.addExtension(pt, contrib);
View Full Code Here

    public void contributeToWindowsMenu(ApplicationWindow appWin) {
        MenuManager mgr = appWin.getMenuManager();
        Menu windowsMenu = mgr.getMenu(ApplicationWindowMenus.WINDOWS);
        MenuContribution contrib = new MenuContribution("Windows.RecentlyClosed");
        contrib.addItem(menu);
        windowsMenu.addExtension(MenuExtensionPoint.EXTENSION_POINT_1, contrib);
    }

    public Action getReOpenLastClosedAction() {
        return new ReOpenLastClosedAction();
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.