[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: Forwarding String Output to existing Hello World Plugin?
|
>Is there any possibility to get that view and alter the label's text in
>realtime?
Sure. All you have to do is a label.setText(inputFromClient). (though you
may have some problems to find a place to put a piece of blocking code like
bufReader.readLine() without compromising responsiveness from your UI.)
"Fr3sh" <wassim.benhamadou@xxxxxx> a écrit dans le message de news:
d57d6ae650b80e5d7dd8b7c9851be858$1@xxxxxxxxxxxxxxxxxx
> Hello!
>
> I have a plugin that simply shows a VIEW. In that view there is a label
> showing "Hello World" (... who would have thought :) ).
> I already have created some kind of Client - Server Communication (not
> wrapped in an Eclipse - Plugin at all). The Client tries to establish a
> connection to the server (via sockets) and as soon as it is, the user can
> enter whatever he wants. When he strikes "Enter" the Serverconsole shows
> what the users entered in the Clientconsole.
> Now my problem is that I don't want the Server's output being printed in a
> console, but in the plugin's view (under "Hello World"). Is there any
> possibility to get that view and alter the label's text in realtime?
>
> Thanks for your help!
>
> Fr3sh
>