updateViewMenu(viewmenu);
manager.add(viewmenu);
}
private void updateViewMenu(MenuManager viewmenu) {
HudsonClient client = new HudsonClient();
try {
JobView[] views = client.getViews();
for (JobView view : views) {
viewmenu.add(new SelectViewAction(viewer, view, jobContentProvider));
}
} catch (IOException e) {
// unable to get views. Don't do anything