Hi,
is it possible to start own threads?
I would like to extend my CheckVersion-Plugin. A thread could check for new
versions regularly...
Any ideas?
Johannes Schneider
Yes, it's possible. Just start a thread.
Johannes Schneider wrote:
Can anybody say something plz.
At least a "not possible" would be nice
Johannes Schneider
--
Erb
==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================
Yes, it's possible to use your own threads. Just make sure that you use
Application.runReadAction is needed (you'll get an assertion otherwise).
Also write operations are not allowed outside swing thread.
--
Valentin Kipiatkov
JetBrains, Inc
"Develop with pleasure!"
"Johannes Schneider" <shake@web.de> wrote in message
news:Xns9272C7DDD97AFshakewebde@213.182.181.98...
Can anybody say something plz.
At least a "not possible" would be nice
>
>
Johannes Schneider
"Valentin Kipiatkov" <valentin@intellij.com> wrote in news:ak5566$k9p$1
@is.intellij.net:
Yes, it's possible to use your own threads. Just make sure that you use
Application.runReadAction is needed (you'll get an assertion otherwise).
Also write operations are not allowed outside swing thread.
Thanks, that works.
But how can I let this thread sleep? I get an Exception if I try to, cause
I don?t own the "monitor".
Johannes Schneider
But how can I let this thread sleep? I get an Exception if I try to, cause
I don?t own the "monitor".
>
Johannes Schneider
Why not use a Timer? Much simpler.
Timer timer = new Timer(true);
timer.schedule(new TimerTask() {
public void run() {
// do work
}
}, 0, interval);
Carlos
--
Carlos Costa e Silva <carlos@keysoft.pt>