Package org.jitterbit.application.ui.window.editor

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


            }
        });
    }

    private void openFile() {
        EditorService editors = page.getWindow().getEditorService();
        TransformationFileStore fileStore = page.getTreeDataService().getDataFileStore();
        FileViewer fileViewer = new FileViewer(editors, page.getObject(), fileStore, fileType);
        String charset = getCharset(page.getObject());
        fileViewer.setCharset(charset);
        DataFilesInfo info = fileStore.getCurrentFilesInfo();
View Full Code Here


     * Creates a new <code>DefaultViewBase</code>.
     *
     */
    protected DefaultEditorViewBase(ApplicationWindow appWin) {
        this.appWin = appWin;
        EditorService editors = appWin.getEditorService();
        editorSaver = EditorSaverFactory.getFactory().newSaver(editors);
    }
View Full Code Here

            }
            getWindow().getEditorService().openEditor(editor);
        }

        private ChunkedTextFileEditor findOpenEditor(File file) {
            EditorService editors = getWindow().getEditorService();
            for (Editor e : editors.getOpenEditors()) {
                if (e.getObject() == file && e instanceof ChunkedTextFileEditor) {
                    return (ChunkedTextFileEditor) e;
                }
            }
            return null;
View Full Code Here

    public void execute(ActionEvent e) {
        EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                EditorService svc = getWindow().getEditorService();
                svc.openQuickSelector();
            }
        });
    }
View Full Code Here

        });
        updateShowEditorStackAction();
    }

    private void updateShowEditorStackAction() {
        EditorService svc = appWin.getEditorService();
        int numberOfEditors = svc.getNumberOfEditors();
        showEditorStackAction.setEnabled(numberOfEditors >= 2);
    }
View Full Code Here

                popup.show(invoker, 16, 16);
            }
        }

        private JPopupMenu createEditorList() {
            EditorService svc = appWin.getEditorService();
            BackwardForwardStack stack = svc.getBackwardForwardStack();
            if (stack.size() == 0) {
                return null;
            }
            JPopupMenu popup = new JPopupMenu();
            int currentPosition = stack.getPosition();
View Full Code Here

        update();
    }

    @Override
    public void execute(ActionEvent e) {
        EditorService editors = getEditorService();
        if (editors.getNumberOfEditors() > 1) {
            Editor editor = editors.getActiveEditor();
            editors.closeOtherEditors(editor);
        }
    }
View Full Code Here

        // does not cover the title bar
        return false;
    }

    private void displayThisPageInUi() {
        EditorService editors = wizard.getWindow().getEditorService();
        editors.openEditor(this, pageGroup);
    }
View Full Code Here

   
    @Override
    public Editor findOpenPage(IntegrationEntity entity) {
        synchronized (lock) {
            // XXX: This implementation is really ugly.
            EditorService editorSvc = view.getWindow().getEditorService();
            for (Editor e : editorSvc.getOpenEditors()) {
                if (e instanceof IntegrationEntityPage) {
                    IntegrationEntityPage page = (IntegrationEntityPage) e;
                    if (page.getObject() == entity) {
                        return e;
                    }
View Full Code Here

        synchronized (lock) {
            Editor editor = findOpenPage(entity);
            if (editor == null) {
                editor = getPageFactory(entity).createPage(entity);
            }
            EditorService editorSvc = view.getWindow().getEditorService();
            editorSvc.openEditorDetached(editor);
            return editor;
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.window.editor.EditorService

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.