Package org.jitterbit.application.ui.action

Examples of org.jitterbit.application.ui.action.ApplicationAction


                }
            }
        }

        private JMenuItem createMenuItem(TransformationPage page) {
            ApplicationAction action = page.getPageAction(actionId);
            if (action != null && action.isSupported()) {
                return new KongaMenuItem(action);
            }
            return null;
        }
View Full Code Here


        addPageAction(LaunchTreeMapperToTextStructureWizardAction.ID, items);
        return items;
    }

    private void addPageAction(String id, List<JMenuItem> items) {
        ApplicationAction action = page.getPageAction(id);
        if (action != null && action.isSupported()) {
            items.add(new KongaMenuItem(action));
        }
    }
View Full Code Here

        return menu;
    }

    private KongaMenuItem createMenuItem(InterchangeView view, EntityType t) {
        InterchangeActionFactory f = InterchangeActionFactory.getNewEntityFactory(t);
        ApplicationAction a = f.get(view);
        KongaMenuItem menuItem = new KongaMenuItem(a);
        return menuItem;
    }
View Full Code Here

                if (newWizardButton != null) {
                    // We want the wizard button before the project button.
                    addOptionButton(newWizardButton, bin);
                    wizardButtonAdded = true;
                }
                ApplicationAction action = new NewProjectAction(view.getWindow(), view.getProjectManager());
                bin.add(KongaButton.forToolbar(action).setUseMediumActionIcon(true));
            } else {
                InterchangeActionFactory f = InterchangeActionFactory.getNewEntityFactory(type);
                ApplicationAction a = f.get(view);
                if (a != null) {
                    KongaButton button = KongaButton.forToolbar(a);
                    Icon icon = InterchangeActionDictionary.DICTIONARY.getMediumIcon(a.getID());
                    button.setIcon(icon);
                    bin.add(button);
                }
            }
            if (newWizardButton != null && !wizardButtonAdded) {
View Full Code Here

        actions = Lists.newArrayList();
        defaultAction = createActions(types, defaultType);
    }

    private ApplicationAction createActions(Iterable<EntityType> types, EntityType defaultType) {
        ApplicationAction defaultAction = null;
        List<EntityType> typesInOrder = sort(types);
        for (EntityType type : typesInOrder) {
            if (type == null) {
                actions.add(null);
            } else if (type == EntityType.Project) {
                ApplicationAction action = new NewProjectAction(view.getWindow(), view.getProjectManager());
                actions.add(action);
            } else {
                InterchangeActionFactory f = InterchangeActionFactory.getNewEntityFactory(type);
                ApplicationAction a = f.get(view);
                if (a != null) {
                    actions.add(a);
                    if (type == defaultType) {
                        defaultAction = a;
                    }
View Full Code Here

     *            the <code>InterchangeView</code> for which to retrieve the action created by this
     *            factory.
     */
    public final ApplicationAction get(InterchangeView view) {
        checkNotNull(view, "view");
        ApplicationAction a = lookupActionForWindow(view.getWindow());
        if (a == null) {
            a = create(view);
            put(view.getWindow(), a);
        }
        return a;
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.action.ApplicationAction

Copyright © 2018 www.massapicom. 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.