Tree Selection works but in tree the last Item before is selected

Hi to all,

I have a Tree and created it like the Example in Vaadin Book ( all the moons)
The project was created with eclipse as 7.1.6 and migrated to 7.2.4 by changing the version in ivy.xml

i use Aceeditor Add, Filtertable on and have a strange behavior in tree
The ItemClickListener returns the right clicked item. I make some changes in Layout, an then the Item in the Tree will be selected before the actual item was clicked will be selected with some magic.
for Example
cick item 1 and the item 2
get in Click Listener for the last click item 2 , is short selected and then the selection returns to item1, which was not actually selected. This works in the same way on MSIE 11, Chrome, Safari and Firefox
here are the methods fro creating the tree and the Click listenenr ###################
private void createTree() {
final Object
planets = new Object
{
new Object{“Mercury”},
new Object{“Venus”},
new Object{“Earth”, “The Moon”},
new Object{“Mars”, “Phobos”, “Deimos”},
new Object{“Jupiter”, “Io”, “Europa”, “Ganymedes”,
“Callisto”},
new Object{“Saturn”, “Titan”, “Tethys”, “Dione”,
“Rhea”, “Iapetus”},
new Object{“Uranus”, “Miranda”, “Ariel”, “Umbriel”,
“Titania”, “Oberon”},
new Object{“Neptune”, “Triton”, “Proteus”, “Nereid”,
“Larissa”}};

    tree = new Tree("The Planets and Major Moons");

    /* Add planets as root items in the tree. */
    for (int i=0; i<planets.length; i++) {
        String planet = (String) (planets[i]

[0]
);
tree.addItem(planet);

        if (planets[i]

.length == 1) {
// The planet has no moons so make it a leaf.
tree.setChildrenAllowed(planet, false);
} else {
// Add children (moons) under the planets.
for (int j=1; j<planets[i]
.length; j++) {
String moon = (String) planets[i]
[j]
;

                // Add the item as a regular item.
                tree.addItem(moon);
                
                // Set it to be a child.
                tree.setParent(moon, planet);
                
                // Make the moons look like leaves.
                tree.setChildrenAllowed(moon, false);
            }

            // Expand the subtree.
            tree.expandItemsRecursively(planet);
            tree.addItemClickListener(createItemClickListener());
           
        }
    }

}

private ItemClickListener createItemClickListener() {
if (itemClickListener == null) {
itemClickListener= new ItemClickListener() {

            @Override
            public void itemClick(ItemClickEvent event) {
                String key=event.getItemId().toString();
                getUI().showNotification(key);
                addOrShowComponent(key);
                
            }
        };
     }
     return itemClickListener;

}
#######################################################

adding a empty ValueChangeListener solves my Problem
##################################
tree.addValueChangeListener(createValueChangeListener());
######################################
private ValueChangeListener createValueChangeListener() {
if (valueChangeListener == null) {
valueChangeListener= new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {

           }
        };
     }
     return valueChangeListener;
 }