Package org.jitterbit.integration.client.ui.interchange.entity.operation.page

Examples of org.jitterbit.integration.client.ui.interchange.entity.operation.page.OperationPage


        }
    }

    public boolean isChangeAllowed(Operation op, OperationGraph2D graph) {
        synchronized (lock) {
            OperationPage dirty = findDirtyPageWithOperation(op, graph);
            if (dirty != null) {
                // TODO: Eventually we want to offer a "Save Other and Continue" option. That will
                // require a lot of extra work, however, since the initiated action may not be
                // continuable after the other graph has been saved. So for now we always disallow
                // the change so that the user has to redo it after the dirty graph has been saved.
View Full Code Here


        }
    }

    private OverlayContainer getOverlayContainer() {
        Operation mainOp = controller.getGraph().getModel().getStartNode().getDataObject().getActivity();
        OperationPage page = (OperationPage) controller.getView().getEditorForEntity(mainOp);
        OverlayContainer container = page.getOverlayContainer();
        return container;
    }
View Full Code Here

        this.sourceHistoryApi = sourceHistoryApi;
    }

    @Override
    protected IntegrationEntityPage createNewPage(IntegrationEntity e) {
        return new OperationPage((Operation) e);
    }
View Full Code Here

    }

    private void openOptionsUi(Operation op) {
        OperationPageFinder pageFinder = new OperationPageFinder(editors);
        OperationPage page = pageFinder.findPage(op);
        if (page == null) {
            showOptionsDialog(op);
        } else {
            openOptionsFromPage(page, op);
        }
View Full Code Here

        public OperationPage findPage(Operation op) {
            KList<OperationPage> all = findAllMatchingPages(op);
            if (all.isEmpty()) {
                return null;
            }
            OperationPage page = getOnlyMatch(all);
            if (page != null) {
                return page;
            }
            KList<OperationPage> dirty = all.findAll(EditorPredicates.DIRTY);
            page = getOnlyMatch(dirty);
View Full Code Here

        private KList<OperationPage> findAllMatchingPages(Operation op) {
            KList<OperationPage> pages = KList.newList();
            for (Editor e : editors.getOpenEditors()) {
                if (e instanceof OperationPage) {
                    OperationPage opPage = (OperationPage) e;
                    if (opPage.getGraph().getModel().getOperationNode(op) != null) {
                        pages.add(opPage);
                    }
                }
            }
            return pages;
View Full Code Here

        }
    }

    private OverlayContainer getOverlayContainer() {
        Operation mainOp = controller.getGraph().getModel().getStartNode().getDataObject().getActivity();
        OperationPage page = (OperationPage) controller.getView().getEditorForEntity(mainOp);
        OverlayContainer container = page.getOverlayContainer();
        return container;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.interchange.entity.operation.page.OperationPage

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.