Examples of PluginPositionSelectorModel


Examples of org.jitterbit.integration.client.plugin.ui.pipeline.selector.PluginPositionSelectorModel

            restoreInitialSelection();
        }
    }

    private PluginPositionSelector createSelector() {
        PluginPositionSelectorModel model = prepareModel();
        PluginPositionSelector selector = new PluginPositionSelector(model, service.getController());
        selector.setIncludeRelativePositionSelector(true);
        selector.setCaption("Select one or more plugins to apply to the selected file");
        return selector;
    }
View Full Code Here

Examples of org.jitterbit.integration.client.plugin.ui.pipeline.selector.PluginPositionSelectorModel

        selector.setCaption("Select one or more plugins to apply to the selected file");
        return selector;
    }

    private PluginPositionSelectorModel prepareModel() {
        PluginPositionSelectorModel model = service.getModel();
        model.setCheckSelectionEnabled(true);
        model.setSupportedRelativePositions(EnumSet.of(RelativePosition.PRE, RelativePosition.POST));
        model.setSelectedRelativePositions(EnumSet.of(RelativePosition.POST));
        model.addPropertyChangeListener(PluginPositionSelectorModel.PLUGIN_POSITIONS, new PropertyChangeListener() {

            @Override
            public void propertyChange(PropertyChangeEvent evt) {
                restoreInitialSelection();
            }
View Full Code Here

Examples of org.jitterbit.integration.client.plugin.ui.pipeline.selector.PluginPositionSelectorModel

            @Override
            public void run() {
                if (previousPluginSetting == null || previousPluginSetting.length == 0) {
                    return;
                }
                PluginPositionSelectorModel model = service.getModel();
                Set<PipelinePosition> toSelect = Sets.newHashSet();
                for (LoadSourcePluginIdentifier plugin : previousPluginSetting) {
                    PipelinePosition pos = model.findPosition(plugin.getId(), plugin.getPosition());
                    if (pos != null) {
                        toSelect.add(pos);
                    }
                }
                model.setSelectedPluginPositions(toSelect);
                if (!toSelect.isEmpty()) {
                    pluginDropDown.expand();
                }
                previousPluginSetting = null;
            }
View Full Code Here

Examples of org.jitterbit.integration.client.plugin.ui.pipeline.selector.PluginPositionSelectorModel

    public void sourceIsEdi() {
        selectEdiPlugin();
    }

    private void selectEdiPlugin() {
        PluginPositionSelectorModel model = service.getModel();
        PipelinePosition ediPlugin = EdiPlugin.forSource();
        model.setPluginPositionSelected(ediPlugin, true);
    }
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.