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

Repository workspace wouldn't show LOADED inspite loading it programatically in RTC gui?

Hello,

       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

0 votes

Comments

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?

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

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.


Accepted answer

Permanent link
I took a look at the code that Ratheesh had attached to the work item and it had a typo. Load was being called on the parent stream used to create the workspace, not the new workspace created. Once he fixed that, things look good. Detailed discussions are in Repository workspace wouldn't show LOADED in spite loading it programmatically in RTC GUI (created via custom plugin, and not the existing Load Wizard) (289064).
Cheers
--Rupa
Ratheesh P selected this answer as the correct answer

1 vote


2 other answers

Permanent link
 Hi Ratheesh,
    I've opened Repository workspace wouldn't show LOADED in spite loading it programmatically in RTC gui (289064) to track this - so we should continue this conversation there. Would you please attach screen shots to that work item?
Thanks
--Rupa

1 vote


Permanent link
 Hi Ratheesh,
    I'm curious to know what you're trying to achieve here? The exact same thing can be done from the Team Artifacts Navigator, using context menus. Is it that you're trying to use a UI gesture via a button instead of a context menu?  

    The load API would just load the repository workspace, they will not call upon the TAN to refresh itself. That will be done by RTC UI code by listening in on events, just like Ralph says. That's the right way of doing it in any case - API gives you back some data from the server, how you render the data in the UI is out of scope for an API. 

    I don't know if that part of the UI code can be extended - I can find out, but I'd like to understand your use case and where it's coming from first.

    I'm curious to know what happens if you restart the Eclipse Client on the same Eclipse workspace? Do the components/repository workspace show up as loaded now?
    
Cheers
--Rupa

0 votes

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,

    What happens when you restart Eclipse on the same workspace? Does it show up as loaded this time?
Cheers
--Rupa 

Hi Ratheesh, 

   Couple more questions. What's your  client side OS? And, did you have to refresh the Pending Changes view for the workspace to show up or did it do it on its own?
Thanks
--Rupa

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

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
× 10,934
× 1,202
× 169
× 57

Question asked: Sep 30 '13, 11:20 a.m.

Question was seen: 7,403 times

Last updated: Dec 16 '13, 4:20 p.m.

Confirmation Cancel Confirm