Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » howto disable/remove "Cancel"-Btn for the ProgressMonitorJobsDialog
howto disable/remove "Cancel"-Btn for the ProgressMonitorJobsDialog [message #460136] Thu, 14 December 2006 10:36 Go to next message
Eclipse UserFriend
hi cracks

i am trying to disable or remove the "Cancel"-Button for the
ProgressMonitorJobsDialog. the dialog itself has methods which allow
control over the displayed button-row of the dialog with methods such as:

enableDetails(boolean)
and
setCancelable(boolean) (from the superclass ProgressMonitorDialog)

however, my problem is, that i did not find a way to influence this when
just dealing with the JobManager which is scheduling jobs...

how can i configure the visual appearance of the job-progress dialog by
just scheduling jobs?

i do not want to copy all the progressmonitor code. i am pretty sure
that there must be a way to configure this, i just could not find it so
far...

any hints welcome... thanx
ramon
Re: howto disable/remove "Cancel"-Btn for the ProgressMonitorJobsDialog [message #460139 is a reply to message #460136] Thu, 14 December 2006 12:05 Go to previous messageGo to next message
Eclipse UserFriend
If the class extends org.eclipse.jface.dialogs.Dialog,
you could override the createButton method.

if(id == IDialogConstants.CANCEL_ID
return null;
else
super.createButton...


"Ramon Grunder" <ramon.grunder@netcetera.ch> wrote in message
news:elrr1q$bkl$1@utils.eclipse.org...
> hi cracks
>
> i am trying to disable or remove the "Cancel"-Button for the
> ProgressMonitorJobsDialog. the dialog itself has methods which allow
> control over the displayed button-row of the dialog with methods such as:
>
> enableDetails(boolean)
> and
> setCancelable(boolean) (from the superclass ProgressMonitorDialog)
>
> however, my problem is, that i did not find a way to influence this when
> just dealing with the JobManager which is scheduling jobs...
>
> how can i configure the visual appearance of the job-progress dialog by
> just scheduling jobs?
>
> i do not want to copy all the progressmonitor code. i am pretty sure that
> there must be a way to configure this, i just could not find it so far...
>
> any hints welcome... thanx
> ramon
Re: howto disable/remove "Cancel"-Btn for the ProgressMonitorJobsDialog [message #460261 is a reply to message #460139] Mon, 18 December 2006 10:57 Go to previous messageGo to next message
Eclipse UserFriend
hi vikram

since i do not open the dialog myself (the job-handling code of eclipse
does this...), i can not influence the dialog directly, since i do not
open it in my code. if i would open it myself (in my very own code), i
could use the existing methods stated in my first post...

so this won't fix my problem actually.

thanx anayway ;-)
Re: howto disable/remove "Cancel"-Btn for the ProgressMonitorJobsDialog [message #460319 is a reply to message #460261] Tue, 19 December 2006 09:37 Go to previous message
Eclipse UserFriend
Originally posted by: jojy.sv.gmail.com

Hi,

In ProgressMonitorDialog for the run() method there are two boolean
arguments first for forking and second for cancelable so make the second
argument value to "false" so that the cancel button will be disabled.

regards
George S
Previous Topic:Compiled Class has not exported
Next Topic:Sharing plug-in development through source control
Goto Forum:
  


Current Time: Mon Mar 17 05:21:54 EDT 2025

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

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

Back to the top