{
// Yup. Re-open the database
var dbName = fsm.getObject("dbName");
- dbName.dispatchEvent(new qx.event.type.Event("changeSelection"),
+ dbName.dispatchEvent(new qx.event.type.Event("changeSelected"),
true);
}
else
"changeSelection":
{
"tree" :
- "Transition_Idle_to_AwaitRpcResult_via_tree_selection_changed",
+ "Transition_Idle_to_AwaitRpcResult_via_tree_selection_changed"
+ },
+
+ // If another database is selected, try to open it and refresh
+ // the tree
+ "changeSelected":
+ {
"dbName":
"Transition_Idle_to_AwaitRpcResult_via_db_changed"
}
// Add our global database name (the only option, for now)
var item = new qx.ui.form.ListItem(module.dbFile);
o.add(item);
-
+
// We want to be notified if the selection changes
- o.addEventListener("changeSelection", fsm.eventListener, fsm);
+ o.addEventListener("changeSelected", fsm.eventListener, fsm);
// Save the database name object so we can react to changes
fsm.addObject("dbName", o);