Repository workspace wouldn't show LOADED inspite loading it programatically in RTC gui?
I wrote an eclipse plugin to create and load a repository workspace from a RTC stream when a button is pressed from eclipse button bar (using java api's).
Everything works well, but after creating and loading the workspace, it doesn't show the components as loaded under Jazz administration perspective > My repository workspaces. > Newly created workspace.
In eclipse project view, pending changes view and on hard disk I can see the components properly loaded.
Under Team > Jazz Source Control > Sandboxes , I can also see the repository path added correctly.
Why is that missing in Jazz administration perspective ?
regards,
Ratheesh
Accepted answer
Cheers
--Rupa
2 other answers
Comments
Hi Rupa,
wanted to have our own wizard due to the following.
- We have to load the workspace in a hierchical way (not as a flat list) and this hierarchy is created using a dynamic loadrule. When our wizard runs, it creates the loadrule file and then creates and loads the workspace using java API's. Creating dynamic load rule file will not be possible using existing RTC wizard.
- own wizard will reduce the number of clicks.
regards,
Ratheesh
Since Plugin Spy does not allow to look at context menus, you could try to use YARI or other inspection tools to find the action that is called upon load in the Eclipse client SDK and try to reuse as much as possible. Be aware, this might include internal API which has the risk of being unstable.
Hi Ratheesh,
Hi Ratheesh,
Hi Rupa ,
please find my answers below.
What happens when you restart Eclipse on the same workspace? Does it show up as loaded this time? -- Nothing happens after restart
What's your client side OS? --- Win7, 64 bit. Eclipse 3.8. RTC 4.0.3
Did you have to refresh the Pending Changes view for the workspace to show up or did it do it on its own? -- No, when the repository workspace is created using the API, the selected stream appears in the "pending changes" view automatically. But not the comparison of the workspace with the stream. (I cannot attach the screenshot here).
If you could provide your email I could sent this. This is what is confusing for me, why the stream is shown in the pending changes view and not the comparison.
regards,
Ratheesh
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Sep 30 '13, 11:26 a.m.Have you considered into the Load Action in the SDK? Maybe you have to notify other listeners to make the UI aware that the load was actually done?
Ratheesh P
Sep 30 '13, 11:32 a.m.Yes, manual load in the RTC gui works perfectly.
I checked the java api's to findout more on load functionality, but could not find much about further listeners to follow.
Would you recommend looking into RTC code?
regards,
Ratheesh
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Sep 30 '13, 11:42 a.m.Yes, I would suggest to set up RTC with the SDK and look into the code that is called when loading in the RTC client if you can find it. It is certainly not part of the API itself.