Package org.jitterbit.system

Examples of org.jitterbit.system.DisposableCollection


        statusPanel = new ExpressionAreaStatusPanel(expressionArea, modeSelector);
        statusPanel.setModel(model);
        layout = LayoutFactory.createPreferredLayout(expressionArea, statusPanel);
        pathChangeHandler = new PathChangeHandler(expressionArea);
        model.addGuidPathCacheListener(pathChangeHandler);
        disposables = new DisposableCollection(model);
    }
View Full Code Here


     * Creates a resource that will dispose the given <code>disposables</code> when the
     * <code>WindowElementResource</code> leaves the given lifetime <code>span</code>.
     */
    public DisposableWindowElementResource(WindowElementStateSpan span, Disposable... disposables) {
        super(span);
        this.disposables = new DisposableCollection(disposables);
    }
View Full Code Here

    public UserConsoleActions(UserConsoleView view, UserConsoleController controller, List<UserConsoleAction> optionalActions) {
        model = view.getModel();
        model.addModelListener(modelListener = new ModelListener());
        this.controller = controller;
        disposableElements = new DisposableCollection();
        downloadAction = new DownloadAction(model);
        uploadAction = new UploadAction(model, controller);
        disposableElements.add(uploadAction);
        additionalServerActions = Lists.newArrayList(optionalActions);
        initOptionalActions();
View Full Code Here

    private OperationNodeContentService opNodeContentService;


    public TreePreferenceListeners(IntegrationEntityTree tree) {
        listeners = new DisposableCollection();
        listeners.add(tree.listenToPreferences());
        listeners.add(new OpNodeContentsPrefListener());
    }
View Full Code Here

        viewDependencies(object);
    }

    private void viewDependencies(IntegrationEntity entity) {
        DependencyStore deps = getDependencies(entity);
        DisposableCollection disposables = new DisposableCollection(deps);
        try {
            DependencyGraph ui = new DependencyGraph(entity, deps, new NodeUiFactoryImpl(entity));
            disposables.add(ui);
            ui.setPageDisplayer(pageDisplayer);
            UiProviderDialogDisplayer.display(appWin.getFrame(), ui, "Dependencies", KongaDialog.CLOSE_ONLY,
                            ViewDependenciesAction.class);
        } finally {
            disposables.dispose();
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.system.DisposableCollection

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.