Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » JobErrorDialog with disabled Detail-Button
JobErrorDialog with disabled Detail-Button [message #444526] Thu, 16 February 2006 13:45
Eclipse UserFriend
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
Previous Topic:How to specify an exact location for showView()?
Next Topic:layout.addStandaloneView showTitle=false loses toolbar and menu
Goto Forum:
  


Current Time: Mon Jul 07 03:04:18 EDT 2025

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

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

Back to the top