Examples of EditorCategory


Examples of org.jitterbit.application.ui.window.editor.EditorCategory

            new DeployDirtyItemsOption(project.getProject(), launcher),
            new DeployAllValidItemsOption(project, launcher),
            getIndividualItemsOption(launcher),
        };
        setIcon(ClientIcons.DEPLOY_16);
        setCategory(new EditorCategory("Deploy", getSmallIcon()));
        setMementoPath(new String[] { "Project", "Deploy" });
        mainPanel = new JPanel(new CardLayout());
        mainPanel.setOpaque(false);
        refreshAction = new RefreshAction();
        enterTagAction = new EnterTagAction();
View Full Code Here

Examples of org.jitterbit.application.ui.window.editor.EditorCategory

            editorSelectorWindow.close();
        }
    }

    public void handleHover(EditorCategory category) {
        EditorCategory activeCategory = model.getActiveCategory();
        if (category == activeCategory && model.getNumberOfEditorsInCategory(category) == 1) {
            // We do not show the editor selector when hovering over the active category, if
            // that category only contains one Editor. We still close the selector (if it is open)
            // for a more consistent behavior.
            closeEditorSelector();
View Full Code Here

Examples of org.jitterbit.application.ui.window.editor.EditorCategory

        EditorService svc = appWin.getEditorService();
        Editor active = svc.getActiveEditor();
        if (active == null) {
            return;
        }
        EditorCategory activeEditorsCategory = model.categorize(active);
        if (!category.equals(activeEditorsCategory)) {
            return;
        }
        List<Editor> editorsToClose = model.getEditors(category);
        editorsToClose.remove(active);
View Full Code Here

Examples of org.jitterbit.application.ui.window.editor.EditorCategory

        }
    }

    private void selectEditorImpl(Editor editor) {
        tabListener.internalChange = true;
        EditorCategory category = categoryModel.categorize(editor);
        int index = switchToTab(category);
        CardPanel cards = tabCards.get(index);
        cards.show(editor.getId());
        getEditorService().fireActiveEditorChanged();
        updateEditorStates(editor);
View Full Code Here

Examples of org.jitterbit.application.ui.window.editor.EditorCategory

    protected EditorCategory createCategory() {
        IntegrationEntity item = getObject();
        String name = item.getEntityType().getPlural();
        Icon icon = EntityIcons.forType(item.getEntityType()).getDefaultIcon(Size.SMALL);
        return new EditorCategory(name, icon);
    }
View Full Code Here

Examples of org.jitterbit.application.ui.window.editor.EditorCategory

            return factory.createPopupMenu(closeAction, closeOtherEditorsInCategoryAction, closeOthersAction);
        }

        public void updateActions() {
            closeOthersAction.setEnabled(categoryModel.getNumberOfCategories() > 1);
            EditorCategory activeCategory = categoryModel.getActiveCategory();
            closeOtherEditorsInCategoryAction.setEnabled(this.category == activeCategory
                            && categoryModel.getNumberOfEditorsInCategory(activeCategory) > 1);
        }
View Full Code Here

Examples of org.jitterbit.application.ui.window.editor.EditorCategory

            }
            return null;
        }

        private int getTabIndex(Editor editor) {
            EditorCategory category = categoryModel.categorize(editor);
            Integer index = tabIndeces.get(category);
            return (index == null) ? -1 : index.intValue();
        }
View Full Code Here

Examples of org.jitterbit.application.ui.window.editor.EditorCategory

        @Override
        public void actionPerformed(ActionEvent e) {
            int categoryIndex = index - 1;
            if (categoryIndex < categoryModel.getNumberOfCategories()) {
                EditorCategory category = categoryModel.getCategoryAt(categoryIndex);
                controller.activateCategory(category);
            }
        }
View Full Code Here

Examples of org.jitterbit.application.ui.window.editor.EditorCategory

    public GettingStartedPage(ActionListener newOperationAction, ActionListener startConnectAction) {
        super(ID, "Getting Started", "You can use the Project Explorer to the left to create a new integration. " +
            "Or use the links below to get started.");
        ui = new GettingStartedUi(newOperationAction, startConnectAction, ShowGettingStartedPagePreference.INSTANCE);
        historyPoint = new GettingStartedPageHistoryPoint(newOperationAction, startConnectAction);
        setCategory(new EditorCategory("Getting Started", ClientIcons.GETTING_STARTED_16));
    }
View Full Code Here

Examples of org.jitterbit.application.ui.window.editor.EditorCategory

        }
    }

    private void selectEditorImpl(Editor editor) {
        tabListener.internalChange = true;
        EditorCategory category = categoryModel.categorize(editor);
        int index = switchToTab(category);
        CardPanel cards = tabCards.get(index);
        cards.show(editor.getId());
        getEditorService().fireActiveEditorChanged();
        updateEditorStates(editor);
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.