Results 1 to 3 of 3
  1. #1
    singswt is offline Member
    Join Date
    Oct 2009
    Posts
    6
    Rep Power
    0

    Question how to override "cancel operation" in "progress bar"

    Hi,

    I am trying to have a functionality in my eclipse desktop such that based on one boolean I can stop/cancel all other processes invoked.

    To be more specific, I want to use the functionality in the eclipse framework, the functionality where we can click at the red button showing next to the name of the process.

    Upon click of the button, the process is stopped.

    I want to do the same thing.

    To explain it more specifically: you know the red button in the progress there are a list of processes and a red button next to them, the way we can stop that process by clicking at the red square button, yes I wan to override that button's functionality.

    Please let me know,

    Thank You!

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Reading about SwingWorker is a good starting point.

  3. #3
    singswt is offline Member
    Join Date
    Oct 2009
    Posts
    6
    Rep Power
    0

    Default Got it right

    Quote Originally Posted by r035198x View Post
    Reading about SwingWorker is a good starting point.
    The answer I was kinda looking for is as follows:

    IJobManager jobMan = Platform.getJobManager();
    jobMan.cancel(STRING_NAME_OF_JOB);

    I am interested in discussing SWT/JFace stuff, not the archaic AWT/Swing stuff, Please direct me to the apprpriate place.

    Thanks anyway!
    singswt

Similar Threads

  1. Java, Military Format using "/" and "%" Operator!!
    By sk8rsam77 in forum New To Java
    Replies: 11
    Last Post: 02-26-2010, 03:03 AM
  2. getDisplayLanguage returns "en" not "English"
    By DD70 in forum New To Java
    Replies: 6
    Last Post: 08-12-2009, 11:22 PM
  3. Replies: 2
    Last Post: 01-24-2009, 06:56 PM
  4. Replies: 1
    Last Post: 10-20-2008, 07:35 AM
  5. "Jumble" or "Scramble" Program
    By Shadow22202 in forum Java Applets
    Replies: 8
    Last Post: 04-30-2008, 03:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •