[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tcf-dev] Initializing TE programmatically?
|
Hi Anna,
Are you building the TE from the master branch or are you using the 1.0 release version?
If built from the master branch, calling "org.eclipse.tcf.te.tcf.locator.model.Model.getModel()" does initialize the model by doing an immediate refresh(). I've committed that change at 2012-07-26 as part of http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/commit/?id=8d17e7863c2784e449966305e0986b7771b3db45.
If you are using a version without that change, you need to call "Model.getModel().getService(ILocatorModelRefreshService.class).refresh();" to populate the model before you can use the lookup service to search for a peer.
Best regards, Uwe :)
> -----Original Message-----
> From: tcf-dev-bounces@xxxxxxxxxxx [mailto:tcf-dev-bounces@xxxxxxxxxxx] On Behalf Of Anna
> Dushistova
> Sent: Sonntag, 12. August 2012 15:20
> To: TCF Development
> Subject: [tcf-dev] Initializing TE programmatically?
>
> Hi All,
> I noticed that if I didn't use the Target Explorer prior to getting the peer by its ID, it returns null.
> Is there any method to perform some initialization like we have in RSE?
>
> Thanks!
> Anna.
> _______________________________________________
> tcf-dev mailing list
> tcf-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/tcf-dev