Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get Build View refreshed in RTC - plug-in development

 Hi, I'm creating a plug-in to manipulate/delete build results from the Build View. I d like to get the View updated right after the builds are removed. Any idea/example how to go approach this task?

0 votes



One answer

Permanent link

This is how finally it was done in my case
  1. go through all the views in the workbench
  2. capture the view intended to be refreshed
  3. 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());
}
}

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 562

Question asked: Feb 07 '14, 10:29 a.m.

Question was seen: 5,009 times

Last updated: Feb 25 '14, 4:11 a.m.

Confirmation Cancel Confirm