Package fr.soleil.salsa.entity

Examples of fr.soleil.salsa.entity.IScanAddOns


            }
        }
        display.setAxisList(axisList);

        if (config != null) {
            IScanAddOns scanAddOns = config.getScanAddOn();
            if (scanAddOns != null) {
                scanAddOns.setDisplay(display);
            }
            config.setScanAddOn(scanAddOns);
        }
    }
View Full Code Here


        errorStrategy = null;
        dberrorStrategy = null;
        if (config != null) {
            try {
                IConfig<?> dbconfig = SalsaAPI.getConfigById(config.getId(), true);
                IScanAddOns scanAddOns = dbconfig.getScanAddOn();
                if (scanAddOns != null) {
                    dberrorStrategy = scanAddOns.getErrorStrategy();
                }
            } catch (ScanNotFoundException e) {
            }

            IScanAddOns scanAddOns = config.getScanAddOn();
            if (scanAddOns == null) {
                scanAddOns = new ScanAddOnModel();
                config.setScanAddOn(scanAddOns);
            }

            errorStrategy = scanAddOns.getErrorStrategy();
            if (errorStrategy == null) {
                errorStrategy = new ErrorStrategyModel();
                scanAddOns.setErrorStrategy(errorStrategy);
                errorStrategy.setContextValidationStrategy(ErrorStrategyType.IGNORE);
                errorStrategy.setContextValidationDevice(CONTEXT_VALIDATION_ATTRIBUTE_DEFAULT);
            }

            if (errorStrategy.getActuatorsErrorStrategy() == null) {
View Full Code Here

        if (view != null) {
            view.clearHooks();
        }

        if (config != null && view != null) {
            IScanAddOns scanAddOns = config.getScanAddOn();
            if (scanAddOns != null) {
                List<IHook> hookList = scanAddOns.getHooks();
                if (hookList != null) {
                    Stage stage = null;
                    // System.out.println("IHookList=" + hookList.size());
                    for (IHook hook : hookList) {
                        stage = hook.getStage();
View Full Code Here

    @Override
    public void hookListChanged(Stage stage, List<IHookCommand> commandList) {
        // System.out.println("hookListChanged=" + stage + commandList.size());
        if (config != null) {
            IScanAddOns scanAddOns = config.getScanAddOn();
            if (scanAddOns == null) {
                scanAddOns = new ScanAddOnModel();
                config.setScanAddOn(scanAddOns);
            }
            if (scanAddOns != null) {
                List<IHook> hookList = scanAddOns.getHooks();
                if (hookList == null) {
                    hookList = new ArrayList<IHook>();
                    scanAddOns.setHooks(hookList);
                }
                if (hookList != null) {
                    IHook hook = null;
                    for (IHook ahook : hookList) {
                        if (ahook.getStage() == stage) {
View Full Code Here

                List<ITimebase> timeBaseList = getTimebaseList();
                List<ITimebase> timeBaseListModel = convertTimeBaseListToModel(timeBaseList);
                model.setTimebaseList(timeBaseListModel);

                IScanAddOns scanAddOnIm = getScanAddOn();
                if (scanAddOnIm != null) {
                    model.setScanAddOn(scanAddOnIm.toModel());
                }
            }
        }
        return model;
    }
View Full Code Here

    private IDisplay getDisplay(IConfig<?> aconfig) {
        if (aconfig == null) {
            return null;
        }

        IScanAddOns scanAddOn = aconfig.getScanAddOn();
        if (scanAddOn == null) {
            return null;
        }

        return scanAddOn.getDisplay();
    }
View Full Code Here

                }
                display.setAxisList(axisList);
            }

            if (config != null) {
                IScanAddOns scanAddOns = config.getScanAddOn();
                if (scanAddOns != null) {
                    scanAddOns.setDisplay(display);
                }
                config.setScanAddOn(scanAddOns);
            }
        }
    }
View Full Code Here

        return this.baseBean.getScanAddOn();
    }

    @Override
    public void setScanAddOn(IScanAddOns scanAddOn) {
        IScanAddOns oldValue = this.baseBean.getScanAddOn();
        if (!ComparatorUtil.scanAddOnsEquals(oldValue, scanAddOn)) {
            this.baseBean.setScanAddOn(scanAddOn);
            this.firePropertyChange(IConfigListener.SCANADDON_PROP, oldValue, scanAddOn);
        }
        refreshModified();
View Full Code Here

        return this.baseBean.getScanAddOn();
    }

    @Override
    public void setScanAddOn(IScanAddOns scanAddOn) {
        IScanAddOns oldValue = this.baseBean.getScanAddOn();
        this.baseBean.setScanAddOn(scanAddOn);
        this.firePropertyChange("scanAddOn", oldValue, scanAddOn);

    }
View Full Code Here

        }
    }

    private IPostScanBehaviour getPostScanBehaviour(IConfig<?> aconfig) {
        IPostScanBehaviour postScanBehaviour = null;
        IScanAddOns addOn = getScanAddOn(aconfig);
        if (addOn != null) {
            postScanBehaviour = addOn.getPostScanBehaviour();
        }
        return postScanBehaviour;
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.IScanAddOns

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.