Rich Client Tutorial Part 3 code failed on Eclipse 3.0 [message #257273] |
Wed, 30 June 2004 18:42  |
Eclipse User |
|
|
|
Originally posted by: id.net.com
The RCP workbench failed to start with error
Unhandled event loop exception
Reason:
java.lang.NullPointerException
If I comment out the
configurer.setShowCoolBar(false);
from the RcpWorkbenchAdvisor.java, the workbench starts fine.
Something has changed between M9 and 3.0 that caused this exception. Any
help would appreciate.
-Beth
|
|
|
|
|
|
|
Re: Rich Client Tutorial Part 3 code failed on Eclipse 3.0 [message #259290 is a reply to message #257661] |
Wed, 07 July 2004 13:19  |
Eclipse User |
|
|
|
Originally posted by: nick_edgar._no.spam.please_.ca.ibm.com
Unfortunately this is a bug that was introduced late in the game, and not
detected before we shipped 3.0.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=68774
It has been fixed in the HEAD stream, and the fix is also tagged for
inclusion in 3.0.1.
Nick
"Beth" <id@net.com> wrote in message news:cc218j$hfe$1@eclipse.org...
> Yes, that's the line I added. It was working on M9 and broken when we move
> to Eclipse 3.0.
> I will try your workaround to move the perspective bar to the right. We
> don't want to show
> the cool bar.
>
> Thank you very help for your help.
>
> Regards,
> -Beth
>
> "Ed Burnette" <ed.burnette@sas.com> wrote in message
> news:cc1qlq$7ha$1@eclipse.org...
> > Oh I see. You have something like this:
> >
> > public void preWindowOpen(IWorkbenchWindowConfigurer configurer) {
> > super.preWindowOpen(configurer);
> > configurer.setInitialSize(new Point(400, 300));
> > configurer.setShowCoolBar(false);
> > configurer.setShowPerspectiveBar(true); // <== Line you added
> > configurer.setShowStatusLine(false);
> > configurer.setTitle(Messages.getString("Hello_RCP")); //$NON-NLS-1$
> > }
> >
> > It's failing because, by default, the perspective bar is up top on the
> same
> > line as the cool bar and it's calculating its height in terms of the
> > (non-existant) cool bar. Please enter a bugzilla against platform-ui
> > including the entire traceback from the log and steps to reproduce.
> >
> > The workaround is to leave the cool bar on, or the perspective bar off,
or
> > maybe to move the perspective bar somewhere else with a preference
> setting.
> > See the RCP Browser sample for an example of setting a preference with
the
> > org.eclipse.ui.runtime.products extension's preferenceCustomization
> > property. It's also documented in the online help.
> >
> > --
> > Ed
> >
> >
> > "Beth" wrote in message news:cbvmr3$g37$1@eclipse.org...
> > > Thanks for your quick response. I found out that I have add
> > >
> > > configurer.setShowPerspectiveBar(true);
> > >
> > > to the Part 3 code. After the configurer.setShowCoolBar(false);
> > >
> > > It seems the workbench only starts when I commented out one of these
two
> > > calls. Any idea why?
> > >
> > > -Beth
> > >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03464 seconds