How to display a MessageDialog on startup ? [message #107735] |
Thu, 07 August 2003 02:40 |
Eclipse User |
|
|
|
Originally posted by: bhavin_r.rediffmail.com
Hi,
I am trying to display a Hello World Dialog Box (something like
tip-of-the-day) on eclipse startup...how can I do that ?
I have attempted to write a plugin implementing IStartup, when I run it in
Workbench I can find it in Preferences > Workbench > Startup. But if I
write
MessageDialog.openInformation( ..) function inside the interface
implemented method earlyStartup()..it gives either NullPointerException or
some Invalid Thread Access SWT related error. I think it is because of the
first argument of openInformation -> Shell (parent) I am not able to
define properly.
How can I get the Shell within earlyStartup method...am I on the right way
or something is missing ..?
Thanks in advance.
Bhavin Raichura
|
|
|
Re: How to display a MessageDialog on startup ? [message #107831 is a reply to message #107735] |
Thu, 07 August 2003 08:30 |
Eclipse User |
|
|
|
Originally posted by: boylaboy.hotmail.com
Hi:
You can do that like this:
MessageDialog.openInformation(window.getShell(),"Hello","tip-of-the-day ");
It should be in the Run method.
"Bhavin Raichura" <bhavin_r@rediffmail.com>
??????:bgse7c$hoh$1@eclipse.org...
> Hi,
>
> I am trying to display a Hello World Dialog Box (something like
> tip-of-the-day) on eclipse startup...how can I do that ?
>
> I have attempted to write a plugin implementing IStartup, when I run it in
> Workbench I can find it in Preferences > Workbench > Startup. But if I
> write
> MessageDialog.openInformation( ..) function inside the interface
> implemented method earlyStartup()..it gives either NullPointerException or
> some Invalid Thread Access SWT related error. I think it is because of the
> first argument of openInformation -> Shell (parent) I am not able to
> define properly.
>
> How can I get the Shell within earlyStartup method...am I on the right way
> or something is missing ..?
>
> Thanks in advance.
>
> Bhavin Raichura
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03746 seconds