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

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


        }

        private Editor getPage() {
            // First we check if the integration entity to be displayed already
            // have an open page in the view:
            Editor page = getPageForEntity(entity);
            if (page == null) {
                // The entity is not currently displayed. Create a new page.
                EntityConfig config = view.getEntityConfig(entity.getEntityType());
                EntityPageFactory pageFactory = config.getPageFactory();
                page = pageFactory.createPage(entity);
View Full Code Here


            }
        }

        private OperationActivityMonitorSite getMonitorSite() {
            Operation op = opNode.getDataObject().getActivity();
            Editor page = view.getEditorForDisplayedObject(op);
            if (page instanceof OperationActivityMonitorSite) {
                view.getEditorService().openEditor(page);
                return (OperationActivityMonitorSite) page;
            } else {
                // TODO: User preference for if the dialog should be opened or not.
View Full Code Here

                site.openActivityMonitor(opInstanceId);
            }
        }

        private OperationActivityMonitorSite getMonitorSite() {
            Editor page = getPageForObjectToRun();
            if (page instanceof OperationActivityMonitorSite) {
                appWin.getEditorService().openEditor(page);
                return (OperationActivityMonitorSite) page;
            } else {
                // TODO: User preference for if the dialog should be opened or not.
View Full Code Here

        processExpandedNodes(state, contentViewer);
        saveStateToDisk();
    }

    private void processDisplayedEntities(ProjectUiState state, EditorService editorService) {
        Editor activeEditor = editorService.getActiveEditor();
        List<IntegrationEntity> displayedObjects = Lists.newArrayList();
        for (Editor p : editorService.getOpenEditors()) {
            if (p instanceof IntegrationEntityPage) {
                IntegrationEntity e = ((IntegrationEntityPage) p).getObject();
                displayedObjects.add(e);
View Full Code Here

    private void setActiveObject(final ActiveObjectService aos, final EditorService editorService) {
        Runnable task = new Runnable() {

            @Override
            public void run() {
                Editor p = editorService.getActiveEditor();
                if (p != null) {
                    ActiveObjectProvider provider = editorService;
                    List<?> active = KongaListUtils.asList(p.getObject());
                    aos.setActiveObjects(provider, active);
                }
            }
        };
        EventQueue.invokeLater(task);
View Full Code Here

        public EditorDisplayer(InterchangeLauncher launcher) {
            this.launcher = launcher;
        }

        public void open() {
            Editor editor = findOpenEditor();
            if (editor == null) {
                launcher.wakeUp();
                editor = createNewEditor(launcher);
                attachLauncherListener(launcher, editor);
            }
View Full Code Here

        }
    }

    private boolean isTemplateClean(F template) {
        if (pageLocator != null) {
            Editor page = pageLocator.findOpenPage(template);
            if (page != null && page.isDirty()) {
                try {
                    page.save();
                } catch (SaveEditorException e) {
                    ErrorLog.attention(getClass(), null, e);
                    return false;
                }
            }
View Full Code Here

     * <p>
     * This is a no-op if an editor is not currently open.
     */
    public void forceCloseWithoutSaving() {
        ApplicationUiUtils.logIfNotOnEDT(EditorPanelService.class, "closeOpenEditor");
        Editor editor = editorPanel.getEditor();
        if (editor != null) {
            editorPanel.close(true);
        }
    }
View Full Code Here

        return closeOpenEditorImpl(false);
    }
   
    private boolean closeOpenEditorImpl(boolean saveAutomaticallyIfDirty) {
        ApplicationUiUtils.logIfNotOnEDT(EditorPanelService.class, "closeOpenEditor");
        Editor editor = editorPanel.getEditor();
        if (editor == null) {
            return true;
        }
        return editorOwner.closeEditor(editor, saveAutomaticallyIfDirty);
    }
View Full Code Here

        return editorOwner.closeEditor(editor, saveAutomaticallyIfDirty);
    }

    // TODO: Come up with a better name and document me.
    public boolean prepareForRemoval(boolean saveAutomatically) {
        Editor editor = getOpenEditor();
        if (editor == null) {
            return true;
        }
        boolean wasClosed = closeOpenEditorImpl(saveAutomatically);
        DisplayedEditorCloseState state = new DisplayedEditorCloseState(editor, wasClosed);
View Full Code Here

TOP

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

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.