use of com.google.gerrit.client.info.ChangeInfo in project gerrit by GerritCodeReview.
the class QueryScreen method loadCallback.
@Override
protected AsyncCallback<ChangeList> loadCallback() {
return new GerritCallback<ChangeList>() {
@Override
public void onSuccess(ChangeList result) {
if (isAttached()) {
if (result.length() == 1 && isSingleQuery(query)) {
ChangeInfo c = result.get(0);
Change.Id id = c.legacyId();
Gerrit.display(PageLinks.toChange(id));
} else {
display(result);
QueryScreen.this.display();
}
}
}
};
}
Aggregations