Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.Source


        super.addToWindow(window);
        manualModeSwitch.setDbLocation(getSelectedLocation());
    }

    public DatabaseLocation getSelectedLocation() {
        Source source = getSelectedEntity();
        if (source != null) {
            DataLocation dataLocation = source.getLocation();
            if (dataLocation instanceof DatabaseLocation) {
                return (DatabaseLocation) dataLocation;
            }
        }
        return null;
View Full Code Here


            checkSource(tx, browser);
            checkTarget(tx, browser);
        }

        private static void checkSource(Transformation tx, TransformationPipelineBrowser browser) {
            Source source = browser.getSource();
            if (isApplicable(source)) {
                tx.setSourceId(source.getID());
            }
        }
View Full Code Here

        return getActivity().getContent();
    }

    @Override
    protected String getContentString() {
        Source source = getSource();
        return source != null ? source.getName() : getActivity().getRole();
    }
View Full Code Here

        return source != null ? source.getName() : getActivity().getRole();
    }

    @Override
    protected String getContentToolTip() {
        Source source = getSource();
        return (source != null) ? ToolTipStringFactory.getToolTip(source) : TOOLTIP_WHEN_EMPTY;
    }
View Full Code Here

        return EntityIcons.forType(EntityType.Source).getDefaultIcon(Size.LARGE);
    }

    @Override
    protected TextStyle getLabelStyle() {
        Source s = getSource();
        if (s instanceof SystemSource) {
            return SYSTEM_STYLE;
        }
        return super.getLabelStyle();
    }
View Full Code Here

*/
public final class SourceListDecoratorFactory extends ListDecoratorFactory {

    @Override
    protected ListDecorator createListDecorator(IntegrationEntity e) {
        final Source source = (Source) e;
        return new IntegrationEntityListDecorator(source) {

            @Override
            protected Icon getDefaultIcon(IntegrationEntity entity) {
                if (LocationDecoratePageIconsPreference.value()) {
View Full Code Here

        applySelectedSource(op);
        applySelectedTarget(op);
    }

    private void applySelectedSource(Operation op) {
        Source src = (Source) sourceSelector.getSelectedEntity();
        op.setSource(src);
    }
View Full Code Here

    private void notifySourceListeners() {
        if (sourceListeners.isEmpty()) {
            return;
        }
        Source selected = (Source) sourceSelector.getSelectedEntity();
        for (OperationSourceListener lst : sourceListeners) {
            lst.sourceSelectionChanged(selected);
        }
    }
View Full Code Here

    public void setSource(Source s) {
        if (s == source) {
            return;
        }
        Source old = source;
        source = s;
        transformationFilter = new TransformationFilter(source);
        changeSupport.firePropertyChange(SOURCE, old, s);
        changeSupport.firePropertyChange(TRANSFORMATION_FILTER, null, transformationFilter);
    }
View Full Code Here

        setEnabled(getEnabledState());
    }
   
    private boolean getEnabledState() {
        JmsMessage message = model.getSourceMessage();
        Source source = model.getSource();
        if ((message != null) && (source != null)) {
            DataLocation loc = source.getLocation();
            if (loc != null) {
                return loc.getDataLocationType() == DataLocationType.JMS;
            }
        }
        return false;
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.Source

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.