@@ -0,0 +1,1574 @@
+/*%0A * This Source Code Form is subject to the terms of the Mozilla Public%0A * License, v. 2.0. If a copy of the MPL was not distributed with this%0A * file, You can obtain one at http://mozilla.org/MPL/2.0/.%0A */%0Apackage net.localizethat.gui.components;%0A%0Aimport javax.swing.JTree;%0Aimport javax.swing.event.TreeSelectionEvent;%0Aimport javax.swing.event.TreeSelectionListener;%0Aimport javax.swing.tree.DefaultMutableTreeNode;%0Aimport net.localizethat.model.LocaleFile;%0Aimport net.localizethat.model.LocaleNode;%0A%0A/**%0A *%0A * @author rpalomares%0A */%0Apublic class LocaleNodeJTree extends JTree %7B%0A    %0A    public LocaleNodeJTree() %7B%0A        super();%0A        addTreeSelectionListener(new LocaleNodeTreeSelectionListener(this));%0A        this.addTreeExpansionListener(null);%0A        this.addTreeWillExpandListener(null);%0A    %7D%0A%0A    class LocaleNodeTreeSelectionListener implements TreeSelectionListener %7B%0A        private final LocaleNodeJTree tree;%0A%0A        LocaleNodeTreeSelectionListener(LocaleNodeJTree tree) %7B%0A            this.tree = tree;%0A        %7D%0A%0A        @Override%0A        public void valueChanged(TreeSelectionEvent e) %7B%0A            DefaultMutableTreeNode node = (DefaultMutableTreeNode)%0A                    tree.getLastSelectedPathComponent();%0A%0A            if (node == null) %7B%0A                return;%0A            %7D%0A%0A            LocaleNode nodeObject = (LocaleNode) node.getUserObject();%0A            if (node.isLeaf()) %7B%0A                if (nodeObject instanceof LocaleFile) %7B%0A                    // TODO Send signal to update panels%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Test component implementing a JTree with the specific purpose of displaying a set of LocalePaths structures. Not used yet, perhaps will be dropped