this.tabLayout.addCloseHandler(new CloseHandler<Widget>() {
@Override
public void onClose(CloseEvent<Widget> event) {
if (event.getTarget() instanceof LogFilePanel) {
LogFilePanel logFilePanel = (LogFilePanel) event.getTarget();
circuit.dispatch(new CloseLogFile(logFilePanel.getName()));
}
}
});
initWidget(tabLayout);