How to get Build View refreshed in RTC - plug-in development
One answer
This is how finally it was done in my case
- go through all the views in the workbench
- capture the view intended to be refreshed
- run the query again to get the refresh
for(IViewReference view: PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getViewReferences()){
if (view.getId().toString().equals("com.ibm.team.build.internal.ui.views.query.BuildQueryView")) {
BuildQueryView realv = (BuildQueryView) view.getView(true);
realv.runQuery(realv.getCurrentQuery());
}
}