@Override public void attachToCanvas() { // remove all previous members, except crumbs for (int i = 1; i < canvas.getMembers().length; i++) { Canvas m = canvas.getMember(i); canvas.removeMember(m); } if (tabs.getTabs().length == 1) { Canvas c = tabs.getTabs()[0].getPane(); c.setHeight100(); canvas.addMember(c); // add the pane directly } else canvas.addMember(tabs); }
public void selectTabByModel(String model) { for (Tab t : tabs.getTabs()) { if (t.getTitle().equals(modelToTitleMap.get(model))) { tabs.selectTab(t); break; } } }