Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Rich Client Tutorial Part 3 code failed on Eclipse 3.0
Rich Client Tutorial Part 3 code failed on Eclipse 3.0 [message #257273] Wed, 30 June 2004 22:42 Go to next message
Eclipse UserFriend
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 #257280 is a reply to message #257273] Wed, 30 June 2004 23:13 Go to previous messageGo to next message
Ed Burnette is currently offline Ed BurnetteFriend
Messages: 279
Registered: July 2009
Senior Member
It works for me. Is it possible you have an old copy of the tutorial source
code? The code underwent changes as the Eclipse APIs changed underneath it.
You can check out the latest copy that was tested with 3.0 production from:


http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.tuto rials.rcp.part3/

using CVS as described in http://dev.eclipse.org/cvshowto.html . (change
part3 to part2 or part1 for the other parts).

--
Ed Burnette, co-author, Eclipse in Action
www.eclipsepowered.org

"Beth" <id@net.com> wrote in message news:cbvfkm$6co$1@eclipse.org...
> The RCP workbench failed to start with error
>
> Unhandled event loop exception
> Reason:
> java.lang.NullPointerException
Re: Rich Client Tutorial Part 3 code failed on Eclipse 3.0 [message #257303 is a reply to message #257280] Thu, 01 July 2004 00:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: id.net.com

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

"Ed Burnette" <ed.burnette@sas.com> wrote in message
news:cbvhcq$8p7$1@eclipse.org...
> It works for me. Is it possible you have an old copy of the tutorial
source
> code? The code underwent changes as the Eclipse APIs changed underneath
it.
> You can check out the latest copy that was tested with 3.0 production
from:
>
>
>
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.tuto rials.rcp.part3/
>
> using CVS as described in http://dev.eclipse.org/cvshowto.html . (change
> part3 to part2 or part1 for the other parts).
>
> --
> Ed Burnette, co-author, Eclipse in Action
> www.eclipsepowered.org
>
> "Beth" <id@net.com> wrote in message news:cbvfkm$6co$1@eclipse.org...
> > The RCP workbench failed to start with error
> >
> > Unhandled event loop exception
> > Reason:
> > java.lang.NullPointerException
>
>
Re: Rich Client Tutorial Part 3 code failed on Eclipse 3.0 [message #257630 is a reply to message #257303] Thu, 01 July 2004 20:03 Go to previous messageGo to next message
Ed Burnette is currently offline Ed BurnetteFriend
Messages: 279
Registered: July 2009
Senior Member
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
>
Re: Rich Client Tutorial Part 3 code failed on Eclipse 3.0 [message #257661 is a reply to message #257630] Thu, 01 July 2004 21:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: id.net.com

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
> >
>
>
Re: Rich Client Tutorial Part 3 code failed on Eclipse 3.0 [message #259290 is a reply to message #257661] Wed, 07 July 2004 17:19 Go to previous message
Eclipse UserFriend
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
> > >
> >
> >
>
>
Previous Topic:RCP and user roles (or how to make non-ui plugin to provide a selection?)
Next Topic:Exporting Plugin Projects
Goto Forum:
  


Current Time: Wed Jul 17 23:33:51 GMT 2024

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

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

Back to the top