Merge "Allow plugins to add entire screens to Gerrit"

This commit is contained in:
Edwin Kempin
2014-01-08 07:46:27 +00:00
committed by Gerrit Code Review
12 changed files with 515 additions and 17 deletions

View File

@@ -505,12 +505,9 @@ public class Gerrit implements EntryPoint {
body = new ViewSite<Screen>() {
@Override
protected void onShowView(Screen view) {
lastViewToken = History.getToken();
String token = view.getToken();
if (!token.equals(lastViewToken)) {
History.newItem(token, false);
dispatchHistoryHooks(token);
}
History.newItem(token, false);
dispatchHistoryHooks(token);
if (view instanceof ChangeListScreen) {
lastChangeListToken = token;
@@ -518,6 +515,7 @@ public class Gerrit implements EntryPoint {
super.onShowView(view);
view.onShowView();
lastViewToken = token;
}
};
gBody.add(body);