DESCRIPTION

Fix NPE occurring occasionally with devhelp plug-in

- Job started by devhelp may not complete by the time
  plug-ins are slated to be stopped and so may result in
  an NPE trying to access plugin info
- make Job a private static variable and cancel in stop() method
- also add canceling() method to Job to cancel the run monitor
- in the run() method of the Job make checks for the monitor
  being cancelled and stop

Change-Id: I0763631a30f05ae5517c172d26d65748a06207b4


COMMENTS

author: Brenden Conley
date: 2014-07-31 18:02:35.000000000

Patch Set 3:

Build Started https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/8026/

-------------------------------------
author: Brenden Conley
date: 2014-07-31 18:38:33.000000000

Patch Set 3: Verified+1

Build Successful 

https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/8026/ : SUCCESS

-------------------------------------
author: Nathanael Holden
date: 2014-07-31 20:20:21.000000000

Patch Set 3: Verified+1 Code-Review+2

I can confirm this fixes things for me. No NPE is generated on immediate termination with this patch.

-------------------------------------
