Package fr.soleil.salsa.client.view.tool

Examples of fr.soleil.salsa.client.view.tool.ConfigTreeNode


            else {
                targetDirectory = ((ConfigTreeNode) target).getConfig().getDirectory();
            }
            for (ATreeNode treeNode : droppedSelection) {
                if (treeNode instanceof ConfigTreeNode) {
                    ConfigTreeNode configTreeNode = (ConfigTreeNode) treeNode;
                    IConfig movedConfig = configTreeNode.getConfig();
                    if (!targetDirectory.equals(movedConfig.getDirectory())) {
                        if (!movedConfig.isLoaded()) {
                            movedConfig = loadConfig(movedConfig);
                            configTreeNode.setConfig(movedConfig);
                        }
                        boolean modified = movedConfig.isModified();
                        moveConfig(movedConfig, targetDirectory);
                        if (!modified) {
                            configTreeNode.setConfig(saveConfig(movedConfig));
                        }
                    }
                }
                else {
                    if (!isChild(target, treeNode)) {
View Full Code Here


                        currentAlreadyRefreshed = true;
                    }
                    refreshConfig(configToRefresh, loadRootDirectory);
                }
                else {
                    if (isChild(new ConfigTreeNode(currentConfig, null), treeNode)) {
                        refreshCurrent = true;
                    }
                    refreshDirectory(((DirectoryTreeNode) treeNode).getDirectory(),
                            loadRootDirectory);
                }
View Full Code Here

            applicationController.setConfig(configModel);
            addListenerTo((IEventSource<EntityPropertyChangedEvent<IConfig<?>>>) configModel);
            refresh();
            DirectoryTreeNode directoryTreeNode = new DirectoryTreeNode(currentDirectory);
            view.expandNode(directoryTreeNode);
            view.setSelection(new ConfigTreeNode(currentConfig, directoryTreeNode));
            updatWindowMenu(configModel);
        }
    }
View Full Code Here

            else {
                targetDirectory = ((ConfigTreeNode) target).getConfig().getDirectory();
            }
            for (ATreeNode treeNode : droppedSelection) {
                if (treeNode instanceof ConfigTreeNode) {
                    ConfigTreeNode configTreeNode = (ConfigTreeNode) treeNode;
                    IConfig<?> movedConfig = configTreeNode.getConfig();
                    if (!targetDirectory.equals(movedConfig.getDirectory())) {
                        if (!movedConfig.isLoaded()) {
                            movedConfig = loadConfig(movedConfig);
                            configTreeNode.setConfig(movedConfig);
                        }
                        boolean modified = movedConfig.isModified();
                        moveConfig(movedConfig, targetDirectory);
                        if (!modified) {
                            configTreeNode.setConfig(saveConfig(movedConfig));
                        }
                    }
                }
                else {
                    if (!isChild(target, treeNode)) {
View Full Code Here

                        currentAlreadyRefreshed = true;
                    }
                    refreshConfig(configToRefresh, loadRootDirectory);
                }
                else {
                    if (isChild(new ConfigTreeNode(currentConfig, null), treeNode)) {
                        refreshCurrent = true;
                    }
                    refreshDirectory(((DirectoryTreeNode) treeNode).getDirectory(),
                            loadRootDirectory);
                }
View Full Code Here

            applicationController.setConfig(configModel);
            addListenerTo((IEventSource<EntityPropertyChangedEvent<IConfig<?>>>) configModel);
            this.refresh();
            DirectoryTreeNode directoryTreeNode = new DirectoryTreeNode(currentDirectory);
            view.expandNode(directoryTreeNode);
            view.setSelection(new ConfigTreeNode(currentConfig, directoryTreeNode));
            updatWindowMenu(configModel);
        }
    }
View Full Code Here

            else {
                targetDirectory = ((ConfigTreeNode) target).getConfig().getDirectory();
            }
            for (ATreeNode treeNode : droppedSelection) {
                if (treeNode instanceof ConfigTreeNode) {
                    ConfigTreeNode configTreeNode = (ConfigTreeNode) treeNode;
                    IConfig<?> movedConfig = configTreeNode.getConfig();
                    if (!targetDirectory.equals(movedConfig.getDirectory())) {
                        if (!movedConfig.isLoaded()) {
                            movedConfig = loadConfig(movedConfig);
                            configTreeNode.setConfig(movedConfig);
                        }
                        boolean modified = movedConfig.isModified();
                        moveConfig(movedConfig, targetDirectory);
                        if (!modified) {
                            configTreeNode.setConfig(saveConfig(movedConfig));
                        }
                    }
                }
                else {
                    if (!isChild(target, treeNode)) {
View Full Code Here

                        currentAlreadyRefreshed = true;
                    }
                    refreshConfig(configToRefresh, loadRootDirectory);
                }
                else {
                    if (isChild(new ConfigTreeNode(currentConfig, null), treeNode)) {
                        refreshCurrent = true;
                    }
                    refreshDirectory(((DirectoryTreeNode) treeNode).getDirectory(),
                            loadRootDirectory);
                }
View Full Code Here

            applicationController.setConfig(configModel);
            addListenerTo((IEventSource<EntityPropertyChangedEvent<IConfig<?>>>) configModel);
            refresh();
            DirectoryTreeNode directoryTreeNode = new DirectoryTreeNode(currentDirectory);
            view.expandNode(directoryTreeNode);
            view.setSelection(new ConfigTreeNode(currentConfig, directoryTreeNode));
            updatWindowMenu(configModel);
        }
    }
View Full Code Here

            else {
                targetDirectory = ((ConfigTreeNode) target).getConfig().getDirectory();
            }
            for (ATreeNode treeNode : droppedSelection) {
                if (treeNode instanceof ConfigTreeNode) {
                    ConfigTreeNode configTreeNode = (ConfigTreeNode) treeNode;
                    IConfig<?> movedConfig = configTreeNode.getConfig();
                    if (!targetDirectory.equals(movedConfig.getDirectory())) {
                        if (!movedConfig.isLoaded()) {
                            movedConfig = loadConfig(movedConfig);
                            configTreeNode.setConfig(movedConfig);
                        }
                        boolean modified = movedConfig.isModified();
                        moveConfig(movedConfig, targetDirectory);
                        if (!modified) {
                            configTreeNode.setConfig(saveConfig(movedConfig));
                        }
                    }
                }
                else {
                    if (!isChild(target, treeNode)) {
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.client.view.tool.ConfigTreeNode

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.