Given an IProject can I determine if it is shared in RTC
Hi,
I am writing a eclipse plugin that will be passed an IFile and IProject. I would like to determine if the project is shared in RTC SCM, if so, what is the ITeamRepository, the workspace repository, the component. From this information I will be able to retrieve related files that may not be loaded into the eclipse workspace. Once I know the relevant ITeamRepository, the workspace repo and the component, I can take it from there, so just the start bit would be appreciated please. Cheers, Michael Baylis IBM CICS TS System Tester Hursley |
2 answers
please Jazz peps, could you lend a hand?
I've come to the conclusion that the entry path must be via the eclipse team apis, but struggling to see the way in. Cheers Michael |
Found it:-
IShareable shareable = (IShareable)modelFile.getAdapter(IShareable.class); IShare contains the information I require I'm a happy bunny. :D |
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.