// Set the current editor component to be the value editor specified
editorComponent = valueEditor;
editorValueGem = valueGem;
// Create and add a listener for value change events so we can cancel the editor
editorValueGemListener = new ValueGemChangeListener() {
public void valueChanged(ValueGemChangeEvent e) {
tree.cancelEditing();
}
};
valueGem.addValueChangeListener(editorValueGemListener);