Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » MessageDialog raises a NullPointerException
MessageDialog raises a NullPointerException [message #325354] Fri, 15 February 2008 04:10 Go to next message
Eclipse UserFriend
Originally posted by: massimiliano.fanciulli.intecs.it

Hi all,

i'm developing a feature for Eclipse 3.2 that register a set of plugin.
The code has been structured in order to separate model code from ui
code. A plugin for each one has been created.
From the ui plugin i can successfully invoke MessageDialog.openXXXX()
static methods while i get a NullPointerException if invoked from the
model plugin. Looking at the stack trace it seems that the problem is
linked with the symbol image loading.

Has anyone any information about this behaviour? How can i solve it?
I need to notify a status to the user when a LaunchDelegate is launched.
There's any other solution (better than using MessageDialog) to achieve
the goal of notifying the user?

Thank for any help.
Regards,
Massimiliano Fanciulli
Re: MessageDialog raises a NullPointerException [message #325390 is a reply to message #325354] Sat, 16 February 2008 02:37 Go to previous message
Eclipse UserFriend
The MessageDialog option should be fine. Can you attach the stack trace
for the NPE?

- Prakash

Eclipse Tips: http://blog.cypal-solutions.com
Eclipse Search: http://www.cypal.in/eclipsesearch

Massimiliano Fanciulli wrote:
> Hi all,
>
> i'm developing a feature for Eclipse 3.2 that register a set of plugin.
> The code has been structured in order to separate model code from ui
> code. A plugin for each one has been created.
> From the ui plugin i can successfully invoke MessageDialog.openXXXX()
> static methods while i get a NullPointerException if invoked from the
> model plugin. Looking at the stack trace it seems that the problem is
> linked with the symbol image loading.
>
> Has anyone any information about this behaviour? How can i solve it?
> I need to notify a status to the user when a LaunchDelegate is launched.
> There's any other solution (better than using MessageDialog) to achieve
> the goal of notifying the user?
>
> Thank for any help.
> Regards,
> Massimiliano Fanciulli
Previous Topic:[DataBinding] Using JFace DB for Mapping Object Models
Next Topic:Passing IStructuredSelection to a normal wizard
Goto Forum:
  


Current Time: Fri Jul 25 00:39:05 EDT 2025

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

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

Back to the top