//Fade out the "Loading application" pop-up
private void hideLoadingPopup() {
final Element e = RootPanel.get( "loading" ).getElement();
Animation r = new Animation() {
@Override
protected void onUpdate(double progress) {
e.getStyle().setOpacity( 1.0 - progress );
}
@Override
protected void onComplete() {
e.getStyle().setVisibility( Visibility.HIDDEN );
}
};
r.run( 500 );
}