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

How to use workitem view in my plugin?

Hi, I have create my own editor, and one button in the editor, the button function is when clicked, program run query for some work items. I can do this. Then my question is, I want to display the query work items result with RTC Client Work Item View.

I think I can call the VIEW and then setinput with my query result.

Who can tell me the RTC Client Work Item View details?

I know the VIEW id is "com.ibm.magnolia.workItemExplorer". I can run this view:
IViewPart viewPart = UIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("com.ibm.issr.view.wostatus.category.view");

But how can I setinput for this view?

Thanks!

0 votes



2 answers

Permanent link
But the problem is the workitem view uses the default layout/columu.
But I want to customize the columu. Have not known how to set the layout....
Anyone can help?

0 votes


Permanent link
List<IWorkItemHandle> fNewWorkItems = new ArrayList<IWorkItemHandle>();
fNewWorkItems.add(client.findWorkItemById(203, IWorkItem.FULL_PROFILE, null));

WorkItemExplorer2 viewPart = (WorkItemExplorer2)UIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("com.ibm.magnolia.workItemExplorer");

((IShowsQuery)viewPart).showWorkItems(projectArea, "xxx", fNewWorkItems.toArray(new IWorkItemHandle));

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
× 11,055

Question asked: Dec 26 '11, 5:05 a.m.

Question was seen: 6,680 times

Last updated: Dec 26 '11, 5:05 a.m.

Confirmation Cancel Confirm