Skip to content

Commit

Permalink
Fix umbrella exception
Browse files Browse the repository at this point in the history
  • Loading branch information
olafleur committed Aug 25, 2015
1 parent 01aa8ca commit 907575b
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.InlineLabel;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
import com.gwtplatform.mvp.client.Tab;
import com.gwtplatform.mvp.client.TabData;
Expand Down Expand Up @@ -50,8 +51,6 @@ interface Binder extends UiBinder<Widget, ApplicationView> {
this.linkMenu = linkMenu;

initWidget(uiBinder.createAndBindUi(this));

bindSlot(ApplicationPresenter.SLOT_TAB_CONTENT, tabPanel);
}

@Override
Expand Down Expand Up @@ -79,6 +78,15 @@ public void changeTab(Tab tab, TabData tabData, String historyToken) {
tabPanel.changeTab(tab, tabData, historyToken);
}

@Override
public void setInSlot(Object slot, IsWidget content) {
if (slot == ApplicationPresenter.SLOT_TAB_CONTENT) {
tabPanel.setPanelContent(content);
} else {
super.setInSlot(slot, content);
}
}

@Override
public void refreshTabs() {
tabPanel.refreshTabs();
Expand Down

0 comments on commit 907575b

Please sign in to comment.