|
|
Re: To which method we can pass values ,whileRCP is running [message #525364 is a reply to message #525335] |
Tue, 06 April 2010 07:20  |
Eclipse User |
|
|
|
Hi daniel,
sorry for my incomplete question, I have to build a RCP application containing tableviewer having some numbers. I have to pass an output of java program running independenlty as an input to this tableviewer so that table can update itself and show that value.. So my question is how can we pass output value from java program as an input to RCP application.If we can,then to which method should i pass that value.
|
|
|
Re: To which method we can pass values ,whileRCP is running [message #525370 is a reply to message #525364] |
Tue, 06 April 2010 03:00  |
Eclipse User |
|
|
|
On 06.04.2010 13:20, daitkarsachin wrote:
> sorry for my incomplete question, I have to build a RCP application
> containing tableviewer having some numbers. I have to pass an output of
> java program running independenlty as an input to this tableviewer so
> that table can update itself and show that value.. So my question is how
> can we pass output value from java program as an input to RCP
> application.If we can,then to which method should i pass that value.
The most portable way is a file-based approach, as suggested in my
original posting (and not denied in your reply yet). With pure
Java means you could start a file observer thread in your RCP
that checks e.g. the lastModified property of the File objects within
a particular directory region. I believe, apache provides support
for this as well:
http://commons.apache.org/vfs/apidocs/org/apache/commons/vfs /impl/DefaultFileMonitor.html
HTH & Greetings from Bremen,
Daniel Krügler
|
|
|
Powered by
FUDForum. Page generated in 1.04101 seconds