Package fr.soleil.salsa.client.view.preferences.util

Examples of fr.soleil.salsa.client.view.preferences.util.ConfigSerializer.cloneConfig()


        IConfig copiedConfigModel = configTreeNode.getConfig();
        // To copy the object, we serialize it to a byte array, then we recover a copy from it.
        // This way, we can reuse the existing serialization rather than implement the clone
        // method on every entity.
        ConfigSerializer configSerializer = new ConfigSerializer();
        IConfig copyConfig = configSerializer.cloneConfig(copiedConfigModel);

        copyConfig.setId(null);
        moveConfig(copyConfig, currentDirectory);
        copyConfig.setModified(true);
View Full Code Here


        if (config != null) {
            try {
                notifyLoadScanAction(this.getConfig());
                notifyStartScanAction(this.getConfig());
                ConfigSerializer configSerializer = new ConfigSerializer();
                IConfig restoreCopiedConfigModel = configSerializer.cloneConfig(this.getConfig());
                this.setLastStartScan(restoreCopiedConfigModel);
            }
            catch (IOException e) {
                e.printStackTrace();
            }
View Full Code Here

        IConfig<?> copiedConfigModel = configTreeNode.getConfig();
        // To copy the object, we serialize it to a byte array, then we recover a copy from it.
        // This way, we can reuse the existing serialization rather than implement the clone
        // method on every entity.
        ConfigSerializer configSerializer = new ConfigSerializer();
        IConfig<?> copyConfig = configSerializer.cloneConfig(copiedConfigModel);

        copyConfig.setId(null);
        moveConfig(copyConfig, currentDirectory);
        copyConfig.setModified(true);
View Full Code Here

        if (config != null) {
            try {
                notifyLoadScanAction(config);
                notifyStartScanAction(config);
                ConfigSerializer configSerializer = new ConfigSerializer();
                IConfig<?> restoreCopiedConfigModel = configSerializer.cloneConfig(config);
                this.setLastStartScan(restoreCopiedConfigModel);
            }
            catch (IOException e) {
                e.printStackTrace();
            }
View Full Code Here

        IConfig<?> copiedConfigModel = configTreeNode.getConfig();
        // To copy the object, we serialize it to a byte array, then we recover a copy from it.
        // This way, we can reuse the existing serialization rather than implement the clone
        // method on every entity.
        ConfigSerializer configSerializer = new ConfigSerializer();
        IConfig<?> copyConfig = configSerializer.cloneConfig(copiedConfigModel);

        copyConfig.setId(null);
        moveConfig(copyConfig, currentDirectory);
        copyConfig.setModified(true);
View Full Code Here

        IConfig<?> copiedConfigModel = configTreeNode.getConfig();
        // To copy the object, we serialize it to a byte array, then we recover a copy from it.
        // This way, we can reuse the existing serialization rather than implement the clone
        // method on every entity.
        ConfigSerializer configSerializer = new ConfigSerializer();
        IConfig<?> copyConfig = configSerializer.cloneConfig(copiedConfigModel);

        copyConfig.setId(null);
        moveConfig(copyConfig, currentDirectory);
        copyConfig.setModified(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.