@Override
public void go() {
// open it
try {
final DocumentComponent doccom = YaTab.getLoadingDocument(uid);
// build dummy tab
get().getPane().openDocument(doccom);
get().getPane().setActiveDocument(uid);
try {
// new SwingHelper(true) {
//
// @Override
// public void run() {
// search for the tab
YaTab tab = TabEvent.getTab(id);
// found something?
if (tab == null) {
YEx.info("Can not find tab for " + id, new IllegalArgumentException("Tab " + id + " is missing"));
close(id);
return;
}
Log.ger.info("Open Tab " + tab.getTitle() + " (" + id + ")");
// inform
ExtentionManagement.work("yaframe.openTab", JavaHelper.createHashStringObj("tab", tab));
// frame.tabs.put(tab.getID(), tab);
tab.getDocument(doccom, id);
// overwrite with fav?
if (fav != null) {
doccom.setTitle(String.valueOf(fav.getTitle()));
doccom.setIcon(IconCache.get(String.valueOf(fav.getIcon())));
setTooltip(fav.getTitle(), fav.getIcon());
} else {
setTooltip(tab.getTitle(), tab.getIcon());
}