use of com.google.gerrit.client.admin.ProjectScreen in project gerrit by GerritCodeReview.
the class ProjectLinkMenuItem method onScreenLoad.
@Override
public void onScreenLoad(ScreenLoadEvent event) {
Screen screen = event.getScreen();
Project.NameKey projectKey;
if (screen instanceof ProjectScreen) {
projectKey = ((ProjectScreen) screen).getProjectKey();
} else {
projectKey = ProjectScreen.getSavedKey();
}
if (projectKey != null) {
setVisible(true);
onScreenLoad(projectKey);
} else {
setVisible(false);
}
super.onScreenLoad(event);
}
Aggregations