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!
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!
2 answers
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));
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));