Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » RuntimeExceptions and Jobs/Scheduler in Eclipse
RuntimeExceptions and Jobs/Scheduler in Eclipse [message #290916] Fri, 02 September 2005 22:07 Go to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Is there any documentation that specifies what will happen if a runnable
I have created throws a runtime exception? I am learning the hardway
that all sorts of bad behavior results from Eclipse.

For instance I use the IProgressService to run one of my methods like so

IRunnableWithProgress rwp = ...'
IProgressService service = PlatformUI.getWorkbench().getProgressService();
try {
service.busyCursorWhile(rwp);
}
....

The method inside rwp throws a runtime exception, and as a result it
seems like the progress service is halted? So I am asking if anywhere
is documented the behavior of these thread creating methods when a
RuntimeException is thrown from within them?


Thanks!


CL Gilbert
Re: RuntimeExceptions and Jobs/Scheduler in Eclipse [message #291013 is a reply to message #290916] Tue, 06 September 2005 12:51 Go to previous message
Eclipse UserFriend
Originally posted by: Michael_Valenta.oti.com

I think that the progress service should not halt if a runtime excpetion is
thrown in client code. If you are seeing this behavior, you should log a bug
against Platform UI.

Michael

"CL [dnoyeb] Gilbert" <Lamont_Gilbert@rigidsoftware.com> wrote in message
news:dfaien$uh4$1@news.eclipse.org...
> Is there any documentation that specifies what will happen if a runnable I
> have created throws a runtime exception? I am learning the hardway that
> all sorts of bad behavior results from Eclipse.
>
> For instance I use the IProgressService to run one of my methods like so
>
> IRunnableWithProgress rwp = ...'
> IProgressService service = PlatformUI.getWorkbench().getProgressService();
> try {
> service.busyCursorWhile(rwp);
> }
> ...
>
> The method inside rwp throws a runtime exception, and as a result it seems
> like the progress service is halted? So I am asking if anywhere is
> documented the behavior of these thread creating methods when a
> RuntimeException is thrown from within them?
>
>
> Thanks!
>
>
> CL Gilbert
Previous Topic:How to associate a file with a compiler
Next Topic:Re: How to insert the end line symbol into a file
Goto Forum:
  


Current Time: Thu Apr 18 10:21:14 GMT 2024

Powered by FUDForum. Page generated in 0.01839 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top