ProgressMonitorDialog error in 3.3 [message #318905] |
Wed, 08 August 2007 16:25  |
Eclipse User |
|
|
|
Originally posted by: easyleasing20.gmail.com
Hi,
I have a class that implements ILaunchShortcut, during executing I have
the following code:
ProgressMonitorDialog pmd = new
ProgressMonitorDialog(PlatformUI.getWorkbench().getActiveWor kbenchWindow().getShell());
ILaunchConfiguration launch = wc.doSave();
return launch.launch(mode, pmd.getProgressMonitor());
This works fine in 3.2, however in 3.3 I get error from
ProgressMonitorDialog in method beginTask progressIndicator in null and
when code progressIndicator.isDisposed() executes NPE is thrown. I checked
LaunchConfiguration class and it seems there were some changes in
particular calling of beginTask on monitor. The only solution I found for
this is passing NullProgressMonitor to launch method.
Do I need to change my code somehow to make progress monitor work?
thanks,
Alex
|
|
|
|
Powered by
FUDForum. Page generated in 0.03461 seconds