JobErrorDialog with disabled Detail-Button [message #444526] |
Thu, 16 February 2006 13:45 |
Eclipse User |
|
|
|
Originally posted by: tom.seidel.spiritlink.de
Hi,
I'm running a job with the following syntax:
private IRunnableWithProgress myOperation;
protected IStatus run(final IProgressMonitor monitor) {
IStatus returnValue = Status.OK_STATUS;
setPriority(Job.INTERACTIVE);
monitor.beginTask("Bla",IProgressMonitor.UNKNOWN);
try{
// execute method that throws an
// exception that is a subclass
// of CoreException
myOperation.run(monitor);
}
catch(InvocationTargetException ex){
returnValue = ((CoreException)ex.getCause).getStatus();
}
catch (InterruptedException e) {
// not implemented
}
finally{
monitor.done();
}
if (monitor.isCanceled() ) {
returnValue = Status.CANCEL_STATUS;
}
return returnValue;
}
In the thrown Exception are other Exceptions wrapped that are also
subclasses of the CoreException.
If the job is running, the JobErrrorDialog comes with the
Tweening-Effect, but the Details-Button is disabled, althoug the nested
exception are also CoreExceptions with a Status-Object.
But If I'm running this job simultaneously the JobError Dialog display a
ListViewer with all jobs that have thrown an exception. An if I select
one of these two failed jobs, the Details-Button is enabled an I see the
complete "Status-Stack".
What I'm doing wrong?
Thx in Advance,
Tom
|
|
|
Powered by
FUDForum. Page generated in 0.07530 seconds