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

Want to Reload the component which are Out of sync using API

Hello,

   I want to reload the component which are out of sync in the loaded sandbox Programmatically  using plain java api.

  I tried like this but its not worked for me.
         IRepositoryResolver repositoryResolver = IRepositoryResolver.EXISTING_SHARED;
         LoadDilemmaHandler mdtLoadDilemmaHandler =  MDTLoadDilemmaHandler.getDefault();        
         ILoadOperation loadOp= IOperationFactory.instance.getLoadOperation(mdtLoadDilemmaHandler);
       
         ISharingManager sm = FileSystemCore.getSharingManager();
         IShare[] iShares1 = sm.allShares(null);
         Collection<IShare> allshare1 = new ArrayList<>();
         for (int i = 0; i < iShares1.length; i++) {

             allshare1.add(iShares1[i]);
         }
        
         loadOp.requestReLoad(allshare1, resolver, new NullProgressMonitor());  
         loadOp.evaluateLoadRequests(new NullProgressMonitor());
         loadOp.run(new NullProgressMonitor());


I don't know whether i am going on the correct way or not.

Please help me out.

Thanks in advance!!
Regards,
Vikas

0 votes


Be the first one to answer this question!

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,937
× 411

Question asked: Apr 20 '16, 8:56 a.m.

Question was seen: 2,109 times

Last updated: Apr 20 '16, 9:58 a.m.

Confirmation Cancel Confirm