Examples of DirectoryTreeNode


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

    /**
     * Refreshes the view.
     */
    public void refresh() {
        List<ATreeNode> multipleSelection = view.getMultipleSelection();
        DirectoryTreeNode rootTreeNode = this.rootDirectory != null ? new DirectoryTreeNode(
                this.rootDirectory) : null;
        this.view.setTreeContent(rootTreeNode);
        view.setMultipleSelection(multipleSelection);
    }
View Full Code Here

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

            if (rootDirectory == null) {
                rootDirectory = savedDirectory;
            }
            currentDirectory = savedDirectory;
            refresh();
            ATreeNode treeNode = new DirectoryTreeNode(currentDirectory);
            if (savedDirectory.getDirectory() != null) {
                view.expandNode(new DirectoryTreeNode(savedDirectory.getDirectory()));
            }
            view.setSelection(treeNode);
        }
    }
View Full Code Here

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

            configModel.setModified(true);
            currentConfig = configModel;
            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

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

                    }
                    break;
                case CUT:
                    // You can't paste the selection into one of the directory you are cutting.
                    boolean isCurrentDirectoryInSelection = false;
                    DirectoryTreeNode currentDirectoryTreeNode = new DirectoryTreeNode(
                            currentDirectory);
                    for (ATreeNode treeNode : copyCutSelection) {
                        if (currentDirectoryTreeNode.equals(treeNode)
                                || isChild(currentDirectoryTreeNode, treeNode)) {
                            isCurrentDirectoryInSelection = true;
                            break;
                        }
                    }
                    if (!isCurrentDirectoryInSelection) {
                        for (ATreeNode treeNode : copyCutSelection) {
                            if (treeNode instanceof ConfigTreeNode) {
                                cutPasteConfig((ConfigTreeNode) treeNode);
                            }
                            else {
                                cutPasteDirectory((DirectoryTreeNode) treeNode);
                            }
                        }
                    }
            }
            // Expand the current directory if it was not already.
            refresh();
            view.expandNode(new DirectoryTreeNode(currentDirectory));
        }
    }
View Full Code Here

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

                        }
                    }
                }
                else {
                    if (!isChild(target, treeNode)) {
                        DirectoryTreeNode directoryTreeNode = (DirectoryTreeNode) treeNode;
                        DirectoryModel movedDirectory = (DirectoryModel) directoryTreeNode
                                .getDirectory();
                        if (!movedDirectory.equals(targetDirectory)
                                && !targetDirectory.equals(movedDirectory.getDirectory())) {
                            moveDirectory(movedDirectory, targetDirectory);
                            directoryTreeNode.setDirectory(saveDirectory(movedDirectory));
                        }
                    }
                }
            }
            view.expandNode(new DirectoryTreeNode(targetDirectory));
            refresh();
        }
    }
View Full Code Here

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

    /**
     * Refreshes the view.
     */
    public void refresh() {
        List<ATreeNode> multipleSelection = view.getMultipleSelection();
        DirectoryTreeNode rootTreeNode = this.rootDirectory != null ? new DirectoryTreeNode(
                this.rootDirectory) : null;
        this.view.setTreeContent(rootTreeNode);
        view.setMultipleSelection(multipleSelection);
    }
View Full Code Here

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

            if (rootDirectory == null) {
                rootDirectory = savedDirectory;
            }
            currentDirectory = savedDirectory;
            refresh();
            ATreeNode treeNode = new DirectoryTreeNode(currentDirectory);
            if (savedDirectory.getDirectory() != null) {
                view.expandNode(new DirectoryTreeNode(savedDirectory.getDirectory()));
            }
            view.setSelection(treeNode);
        }
    }
View Full Code Here

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

            configModel.setModified(true);
            currentConfig = configModel;
            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

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

                    }
                    break;
                case CUT:
                    // You can't paste the selection into one of the directory you are cutting.
                    boolean isCurrentDirectoryInSelection = false;
                    DirectoryTreeNode currentDirectoryTreeNode = new DirectoryTreeNode(
                            currentDirectory);
                    for (ATreeNode treeNode : copyCutSelection) {
                        if (currentDirectoryTreeNode.equals(treeNode)
                                || isChild(currentDirectoryTreeNode, treeNode)) {
                            isCurrentDirectoryInSelection = true;
                            break;
                        }
                    }
                    if (!isCurrentDirectoryInSelection) {
                        for (ATreeNode treeNode : copyCutSelection) {
                            if (treeNode instanceof ConfigTreeNode) {
                                cutPasteConfig((ConfigTreeNode) treeNode);
                            }
                            else {
                                cutPasteDirectory((DirectoryTreeNode) treeNode);
                            }
                        }
                    }
            }
            // Expand the current directory if it was not already.
            refresh();
            view.expandNode(new DirectoryTreeNode(currentDirectory));
        }
    }
View Full Code Here

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

                        }
                    }
                }
                else {
                    if (!isChild(target, treeNode)) {
                        DirectoryTreeNode directoryTreeNode = (DirectoryTreeNode) treeNode;
                        DirectoryModel movedDirectory = (DirectoryModel) directoryTreeNode
                                .getDirectory();
                        if (!movedDirectory.equals(targetDirectory)
                                && !targetDirectory.equals(movedDirectory.getDirectory())) {
                            moveDirectory(movedDirectory, targetDirectory);
                            directoryTreeNode.setDirectory(saveDirectory(movedDirectory));
                        }
                    }
                }
            }
            view.expandNode(new DirectoryTreeNode(targetDirectory));
            refresh();
        }
    }
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.