Skip to content

Commit

Permalink
BZ-1265211 - Data modeler, Usages modal: table is empty until user mo…
Browse files Browse the repository at this point in the history
…ves cursor/pointer

(cherry picked from commit 0ec171e)
  • Loading branch information
wmedvede committed Oct 2, 2015
1 parent 2f09f4e commit 883419e
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -21,6 +21,7 @@

import com.google.gwt.cell.client.Cell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.dom.client.Style;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
Expand Down Expand Up @@ -129,7 +130,11 @@ protected ShowUsagesPopup( final String title,
addShownHandler( new ModalShownHandler() {
@Override
public void onShown( ModalShownEvent shownEvent ) {
loadTable();
Scheduler.get().scheduleDeferred( new com.google.gwt.user.client.Command() {
@Override public void execute() {
loadTable();
}
} );
}
} );
}
Expand Down Expand Up @@ -305,6 +310,7 @@ public void render( Cell.Context context,

private void loadTable() {
if ( usedByFiles != null && !usedByFiles.isEmpty() ) {
usedByFilesProvider.getList().clear();
usedByFilesProvider.getList().addAll( createUsedByRows( usedByFiles ) );
}
}
Expand Down

0 comments on commit 883419e

Please sign in to comment.