Get project area list based on Repository
I'm working on an eclipse based application within which I'm developing a mechanism for users to open RTC work items. I would like the user to be able to select the project area he/she wants to open the work item against based on the repository they have logged into.
Can someone help me to point me in the right direction to Currently working with packages within: com.ibm.team .repository .workItem |
2 answers
I was able to figure this out today thanks to a post by "Marly" under a thread titled "Reading the list of project Area".
Here is the final code I will use for this function: @SuppressWarnings("unchecked") Unrelated... If anyone can advise how the list can be type checked to avoid the use of the suppressed warning, that would be appreciated. |
Jared Burns (4.5k●2●9)
| answered May 11 '12, 5:58 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I was able to figure this out today thanks to a post by "Marly" under a thread titled "Reading the list of project Area". The code above is passing in a null progress monitor to the Process client library. This is strongly discouraged, because it will result in long-running network calls that can't be cancelled. Since code like this in the Eclipse client can't be run in the UI thread, you should always be running it in some context that has a progress monitor. Either a Job or some background content provider functions which pass you a monitor. - Jared |
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.