Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Cancel job from status line
Cancel job from status line [message #447441] Wed, 05 April 2006 19:07 Go to next message
Michael Schmidt is currently offline Michael SchmidtFriend
Messages: 45
Registered: July 2009
Member
Folks,
I'm sure I'm being dense, but after a few hours of fiddling with this, I'd
appreciate a little help.

I've got a standalone RCP application working pretty well. There are two
main jobs with isCanceled() checks at strategic points. When the job
runs, the job name (but not the job icon?), the progress monitor, and a
single button appear in the right side of the status line. That is all
fine. But clicking the button does nothing. My main problem is that I
would like to be able to cancel the job. I've added the following line to
the ApplicationActionBarAdvisor constructor method.

configurer.getStatusLineManager().setCancelEnabled(true);

No difference. In fact, if I later test isCancelEnabled() I find it is
"false". I set it to "true" using a method I wrote for
ApplicationActionBarConfigurer just before running my job (and a test
indicates it is really "true" now), still no change in the behavior.

What am I not understanding? Eclipse 3.1.2 on Windows XP.

Michael Schmidt
Re: Cancel job from status line [message #447602 is a reply to message #447441] Tue, 11 April 2006 16:39 Go to previous messageGo to next message
John Arthorne is currently offline John ArthorneFriend
Messages: 176
Registered: July 2009
Senior Member
I think you're mixing two things. On the status line there is a
progress region for showing *modal* operations that block the UI while
they are running (IWorkbenchWindow.run(...)). This region has a cancel
button, and the IStatusLineManager API you refer to is used to
enable/disable cancel for that region.

There is a completely separate region where progress from background
jobs is shown (by default on the far right). This area does *not* have
a cancel button. Jobs can only be cancelled from the progress view that
is opened by clicking the button that appears when jobs are running.
--

Michael Schmidt wrote:
> Folks,
> I'm sure I'm being dense, but after a few hours of fiddling with this,
> I'd appreciate a little help.
>
> I've got a standalone RCP application working pretty well. There are
> two main jobs with isCanceled() checks at strategic points. When the
> job runs, the job name (but not the job icon?), the progress monitor,
> and a single button appear in the right side of the status line. That
> is all fine. But clicking the button does nothing. My main problem is
> that I would like to be able to cancel the job. I've added the
> following line to the ApplicationActionBarAdvisor constructor method.
>
> configurer.getStatusLineManager().setCancelEnabled(true);
>
> No difference. In fact, if I later test isCancelEnabled() I find it is
> "false". I set it to "true" using a method I wrote for
> ApplicationActionBarConfigurer just before running my job (and a test
> indicates it is really "true" now), still no change in the behavior.
>
> What am I not understanding? Eclipse 3.1.2 on Windows XP.
>
> Michael Schmidt
>
Re: Cancel job from status line [message #447604 is a reply to message #447602] Tue, 11 April 2006 17:32 Go to previous message
Michael Schmidt is currently offline Michael SchmidtFriend
Messages: 45
Registered: July 2009
Member
Mr. Arthorne,
Thank you very much for the clarification. I will delve into it further,
with this information.
Michael Schmidt
Previous Topic:[DataBinding] Interface anomalies for types
Next Topic:PDE Build 3.2 (M5) can't build my RCP app
Goto Forum:
  


Current Time: Mon Dec 09 01:17:12 GMT 2024

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

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

Back to the top