Examples of EditorCategory


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

        sourceHistoryModel = new SourceHistoryModel(subject);
        sourceHistoryController = new SourceHistoryController(sourceHistoryModel, sourceHistoryApi);
        deleteHistoryAction = new DeleteHistoryAction(sourceHistoryController);
        sourceHistoryUi = createSourceHistoryUi();
        setIcon(PackageResources.OperationPage.ICON);
        setCategory(new EditorCategory("Operation History", getSmallIcon()));
    }
View Full Code Here

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

        controller = new OperationQueueController(model, queueApi);
        deleteAction = new DeleteQueueAction(controller);
        navigationControl = createNavigationControl();
        displayer = new QueueDisplayer(model, navigationControl.getFilters(), deleteAction);
        setIcon(PackageResources.Page.ICON);
        setCategory(new EditorCategory("Operation Queues", getSmallIcon()));
    }
View Full Code Here

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

        navigationControl = createNavigationControl();
        filterDescription = new FilterDescriptionPanel(navigationControl.getFilters());
        messageDisplayer = new HtmlLogMessageDisplayer();
        logDisplayer = createDisplayer();
        setIcon(PackageResources.Page.ICON);
        setCategory(new EditorCategory("Operation Logs", getSmallIcon()));
    }
View Full Code Here

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

            } else if (repository.isSystemErr(file)) {
                editor.decorateText(TextStyles.SystemErrText.asTextDecorator());
            } else {
                editor.decorateText(TextStyles.DefaultMonoSpaced.asTextDecorator());
            }
            EditorCategory category = new EditorCategory("Client Log Files", PackageResources.View.ICON);
            editor.setCategory(category);
            editor.setSuggestedTargetNameForCopy(file.getName());
            editor.setMementoPath(new String[] { "Application", "LogFile" });
            return editor;
        }
View Full Code Here

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

        private void rebuildTabToIndexMap() {
            tabIndeces.clear();
            List<EditorCategory> cats = categoryModel.getCategories();
            for (int index = 0; index < cats.size(); ++index) {
                EditorCategory cat = cats.get(index);
                tabIndeces.put(cat, index);
            }
        }
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

    public EditorService getEditorService() {
        return editorService;
    }

    public void openEditor(Editor editor) {
        EditorCategory category = categorize(editor);
        boolean isNewCategory = !contains(category);
        editors.put(category, editor);
        editor.addPropertyChangeListener(Editor.DIRTY_PROPERTY, editorListener);
        if (isNewCategory) {
            for (CategoryControlModelListener lst : listeners) {
View Full Code Here

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

            lst.editorOpened(category, editor);
        }
    }

    public EditorCategory categorize(Editor editor) {
        EditorCategory cat = editor.getCategory();
        if (cat == null) {
            cat = OTHER;
        }
        return cat;
    }
View Full Code Here

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

    private boolean contains(EditorCategory category) {
        return !editors.get(category).isEmpty();
    }

    public void closeEditor(Editor editor) {
        EditorCategory category = categorize(editor);
        if (!contains(category)) {
            return;
        }
        editors.remove(category, editor);
        editor.removePropertyChangeListener(Editor.DIRTY_PROPERTY, editorListener);
View Full Code Here

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

        @Override
        public void propertyChange(PropertyChangeEvent evt) {
            assert Editor.DIRTY_PROPERTY.equals(evt.getPropertyName());
            Editor editor = (Editor) evt.getSource();
            EditorCategory category = categorize(editor);
            for (CategoryControlModelListener lst : listeners) {
                lst.editorPropertyChanged(category, 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.