diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/GroupListScreen.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/GroupListScreen.java index 07f25f45dc..dac0b6a0dd 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/GroupListScreen.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/GroupListScreen.java @@ -18,7 +18,7 @@ import static com.google.gerrit.common.PageLinks.ADMIN_GROUPS; import com.google.gerrit.client.Gerrit; import com.google.gerrit.client.groups.GroupMap; -import com.google.gerrit.client.rpc.ScreenLoadCallback; +import com.google.gerrit.client.rpc.GerritCallback; import com.google.gerrit.client.ui.AccountScreen; import com.google.gerrit.client.ui.FilteredUserInterface; import com.google.gerrit.client.ui.IgnoreOutdatedFilterResultsCallbackWrapper; @@ -54,6 +54,7 @@ public class GroupListScreen extends AccountScreen implements FilteredUserInterf @Override protected void onLoad() { super.onLoad(); + display(); refresh(); } @@ -62,9 +63,9 @@ public class GroupListScreen extends AccountScreen implements FilteredUserInterf : ADMIN_GROUPS + "?filter=" + URL.encodeQueryString(subname)); GroupMap.match(subname, new IgnoreOutdatedFilterResultsCallbackWrapper(this, - new ScreenLoadCallback(this) { + new GerritCallback() { @Override - protected void preDisplay(final GroupMap result) { + public void onSuccess(GroupMap result) { groups.display(result, subname); groups.finishDisplay(); } diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/ProjectListScreen.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/ProjectListScreen.java index 6af437cb0c..ee58420282 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/ProjectListScreen.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/ProjectListScreen.java @@ -21,7 +21,7 @@ import com.google.gerrit.client.Gerrit; import com.google.gerrit.client.GitwebLink; import com.google.gerrit.client.projects.ProjectInfo; import com.google.gerrit.client.projects.ProjectMap; -import com.google.gerrit.client.rpc.ScreenLoadCallback; +import com.google.gerrit.client.rpc.GerritCallback; import com.google.gerrit.client.ui.FilteredUserInterface; import com.google.gerrit.client.ui.HighlightingInlineHyperlink; import com.google.gerrit.client.ui.IgnoreOutdatedFilterResultsCallbackWrapper; @@ -63,6 +63,7 @@ public class ProjectListScreen extends Screen implements FilteredUserInterface { @Override protected void onLoad() { super.onLoad(); + display(); refresh(); } @@ -71,9 +72,9 @@ public class ProjectListScreen extends Screen implements FilteredUserInterface { : ADMIN_PROJECTS + "?filter=" + URL.encodeQueryString(subname)); ProjectMap.match(subname, new IgnoreOutdatedFilterResultsCallbackWrapper(this, - new ScreenLoadCallback(this) { + new GerritCallback() { @Override - protected void preDisplay(final ProjectMap result) { + public void onSuccess(ProjectMap result) { projects.display(result); } }));