Updating a View in an other Session [message #47333] |
Mon, 17 September 2007 05:08  |
Eclipse User |
|
|
|
Hi,
I've implemented an logview for my RAP-App. It works with an static
LogCache that stores any entry an notifys all registered Logviews when
an entry is added.
My Problem is, that when I have two sessions running, that both have the
Log View visible, only the LogView will be refreshed that is in the same
Session, the LogView in the other Session will show the change only when
an Entry is logged in that session. I've verifyed that the
view.refresh() is called anytime on all open views, but that has no
effect on views in other sessions.
Is it possible to refresh an view in an other session?
thx
Lars
|
|
|
|
Re: Updating a View in an other Session [message #47825 is a reply to message #47491] |
Wed, 19 September 2007 04:21   |
Eclipse User |
|
|
|
Hi Frank,
does this mean, that everytime I use the UICallBack mechanisms to trigger ui
refreshes, all sessions are notfified?
Do I have to specifiy a application-wide unique id as parameter in the
activate() call to make this work?
Regards,
Stefan.
"Frank Appel" <fappel@innoopract.com> schrieb im Newsbeitrag
news:fcnt9i$d0h$1@build.eclipse.org...
> Hi,
>
> I would think activation of the UICallBack mechanism may do the trick.
> Insert the following line into the IEntryPoint#createUI() implementation:
>
> UICallBack.activate( getClass().getName() );
>
> If you update your views via Display#asyncExcec(Runnable) all sessions
> should be refreshed. Note currently we are doing some work on those
> mechanims, so there is temporarily some unexpected behaviour possible. But
> the work should be finished by the end of the week.
>
> Hope that helps!
>
> Ciao
> Frank
>
>
> "Lars Gehrken" <gehrken@orbital-computer.de> schrieb im Newsbeitrag
> news:fcme8l$4nq$1@build.eclipse.org...
>> Hi,
>>
>> I've implemented an logview for my RAP-App. It works with an static
>> LogCache that stores any entry an notifys all registered Logviews when
>> an entry is added.
>>
>> My Problem is, that when I have two sessions running, that both have the
>> Log View visible, only the LogView will be refreshed that is in the same
>> Session, the LogView in the other Session will show the change only when
>> an Entry is logged in that session. I've verifyed that the
>> view.refresh() is called anytime on all open views, but that has no
>> effect on views in other sessions.
>>
>> Is it possible to refresh an view in an other session?
>>
>> thx
>> Lars
>>
>>
>>
>
>
|
|
|
|
|
|
|
|
|
Re: Updating a View in an other Session [message #69387 is a reply to message #67144] |
Wed, 09 January 2008 11:37  |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
unfortunately I catched a bad cold before the service release, so I didn't
have that time to check out this problem thoroughly. I did some improvements
of the callback thread stuff - but obviously not enough. My schedule will
bring me back to this problem at the end of this /beginning of next week.
Ciao
Frank
"Benedikt Arnold" <benedikt.arnold@beyondsoft.de> schrieb im Newsbeitrag
news:fkdfdk$clm$1@build.eclipse.org...
> Hi Frank,
>
> is there any progress on this issue or is there a bugzilla entry regarding
> this issue? It seems that the service release did not include a solution.
> Right?
>
> Greetings and "Frohe Weihnachten",
>
> Ben
>
>
> "Frank Appel" <fappel@innoopract.com> schrieb im Newsbeitrag
> news:fj10dl$jtr$1@build.eclipse.org...
>> Hi,
>>
>> you are right, but this seems to be a bug within the UICallBack
>> mechanism. It seems that the callback thread isn't release at the end of
>> a session. This is one of my tasks for this week and hopefully there will
>> be a solution with the service release available on friday...
>>
>>
>> Ciao
>> Frank
>>
>>
>> "Benedikt Arnold" <benedikt.arnold@beyondsoft.de> schrieb im Newsbeitrag
>> news:4c9175f1b3e2c6624a44a70d73a73689$1@www.eclipse.org...
>>> Hi!
>>>
>>> I've implemented it the same way but the problem is, that if I call
>>> UICallback#activate it is not possible anymore to close the equinox
>>> framework. I hope the problem will be solved if I call the
>>> UICallback#deactivate. But where should I do this? I think all
>>> UICallback-methods must be called from within the UI thread.
>>>
>>> Greetings,
>>> Ben
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08802 seconds