//this works for within smartgwt. on codemirror focus needs separate event though
@Override
public void onTabDeselected(TabDeselectedEvent event) {
saveTabTitle();
}});
addTabsReorderedHandler(new TabsReorderedHandler() {
public void onTabsReordered(TabsReorderedEvent event) {
}
});