Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tcf-dev] Initializing TE programmatically?

That fixed it, however, wait is noticeable in my case.

Thanks!
Anna.

On Thu, Aug 23, 2012 at 11:12 AM, Stieber, Uwe
<Uwe.Stieber@xxxxxxxxxxxxx> wrote:
> Hi Anna,
>
> The peer you are expecting, is it dynamically discovered through the locator service? If yes, you need to add a short sleep (Thread.sleep(300);) and try the lookup again. See TerminalsMementoHendler#restoreState(...) for an example.
>
> Best regards, Uwe :)
>
>
>> -----Original Message-----
>> From: tcf-dev-bounces@xxxxxxxxxxx [mailto:tcf-dev-bounces@xxxxxxxxxxx] On Behalf Of Anna
>> Dushistova
>> Sent: Mittwoch, 22. August 2012 20:53
>> To: TCF Development
>> Subject: Re: [tcf-dev] Initializing TE programmatically?
>>
>> Model.getModel() doesn't seem to help any more.
>> Is there any other way that's preferable now?
>>
>> Thanks!
>> Anna.
>>
>> On Mon, Aug 13, 2012 at 4:47 PM, Anna Dushistova <anna.dushistova@xxxxxxxxx> wrote:
>> > Hi Uwe,
>> >
>> > On Sun, Aug 12, 2012 at 10:16 PM, Stieber, Uwe
>> > <Uwe.Stieber@xxxxxxxxxxxxx> wrote:
>> >> Hi Anna,
>> >>
>> >> Are you building the TE from the master branch or are you using the 1.0 release version?
>> >
>> > Master it is. Model.getModel() solved my issue, thanks!
>> >
>> >> 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=8d17e7863c2784e449966305e0986b7771b3d
>> b45.
>> >>
>> >> 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
>> >> _______________________________________________
>> >> tcf-dev mailing list
>> >> tcf-dev@xxxxxxxxxxx
>> >> http://dev.eclipse.org/mailman/listinfo/tcf-dev
>> _______________________________________________
>> tcf-dev mailing list
>> tcf-dev@xxxxxxxxxxx
>> http://dev.eclipse.org/mailman/listinfo/tcf-dev
> _______________________________________________
> tcf-dev mailing list
> tcf-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/tcf-dev


Back to the top