Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ProgressMonitorDialog error in 3.3
ProgressMonitorDialog error in 3.3 [message #318905] Wed, 08 August 2007 16:25 Go to next message
Eclipse UserFriend
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
Re: ProgressMonitorDialog error in 3.3 [message #318922 is a reply to message #318905] Thu, 09 August 2007 05:42 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Is it possible that your getActiveWorkbenchWindow().getShell() is returning null, and that that is the cause of the problem?

Alex.
Previous Topic:Persistent StatusLine
Next Topic:New menus perspective aware
Goto Forum:
  


Current Time: Fri May 09 10:14:43 EDT 2025

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

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

Back to the top