Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP App terminates after adding Action to ApplicationActionBarAdviso
RCP App terminates after adding Action to ApplicationActionBarAdviso [message #462876] Thu, 01 February 2007 20:17 Go to next message
Eclipse UserFriend
Originally posted by: janos.varadi.gmail.com

I have following Problems.

I am using Eclipse 3.2.1 to develop a RCP App.

I tried to add to the function fillMenuBar in the Class
ApplicationActionBarAdvisor some Menue Items and I also add to those some
actions.

Somehow I can not see the Menue Items and after I add the actions the app
terminates.

Does somebody know why?


Thanks a lot

J
Re: RCP App terminates after adding Action to ApplicationActionBarAdviso [message #462881 is a reply to message #462876] Thu, 01 February 2007 21:05 Go to previous messageGo to next message
Snjezana Peco is currently offline Snjezana PecoFriend
Messages: 789
Registered: July 2009
Senior Member
Do you have any error messages in your log?

Snjeza

János Váradi wrote:
> I have following Problems.
>
> I am using Eclipse 3.2.1 to develop a RCP App.
>
> I tried to add to the function fillMenuBar in the Class
> ApplicationActionBarAdvisor some Menue Items and I also add to those some
> actions.
>
> Somehow I can not see the Menue Items and after I add the actions the app
> terminates.
>
> Does somebody know why?
>
>
> Thanks a lot
>
> János V.
>
>
Re: RCP App terminates after adding Action to ApplicationActionBarAdviso [message #462891 is a reply to message #462881] Fri, 02 February 2007 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: janos.varadi.gmail.com

Snjeza

Thanks for your answer.... Somehow it works now. I am not sure why it
crashed. The last log contains following message

------------------------------------------------
!SESSION 2007-02-02 09:35:43.290
-----------------------------------------------
eclipse.buildId=M20060921-0945
java.version=1.6.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.core.resources 2 10035 2007-02-02 09:36:33.820
!MESSAGE A workspace crash was detected. The previous session did not exit
normally.
--------------------------------------------------
Re: RCP App terminates after adding Action to ApplicationActionBarAdviso [message #462913 is a reply to message #462891] Fri, 02 February 2007 09:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: janos.varadi.gmail.com

I found out why it the app terminated

after I added to

makeActions

register(ActionFactory.INTRO.create(window)

and

fillMenuBar

someMenue.add(getAction(ActionFactory.INTRO.getId()));

the app just terminates. I am not sure why this happens.

If somebody knows, please let me know
Re: RCP App terminates after adding Action to ApplicationActionBarAdviso [message #462925 is a reply to message #462913] Fri, 02 February 2007 13:29 Go to previous message
Snjezana Peco is currently offline Snjezana PecoFriend
Messages: 789
Registered: July 2009
Senior Member
It is possible that this line throws NPE:
someMenue.add(getAction(ActionFactory.INTRO.getId()));

Try the following:
....
introAction = ActionFactory.INTRO.create(window);
register(introAction);
....
fillMenuBar
someMenu.add(introAction);

Snjeza

János Váradi wrote:
> I found out why it the app terminated
>
> after I added to
> makeActions
>
> register(ActionFactory.INTRO.create(window)
>
> and
> fillMenuBar
>
> someMenue.add(getAction(ActionFactory.INTRO.getId()));
>
> the app just terminates. I am not sure why this happens.
>
> If somebody knows, please let me know
>
Previous Topic:Launching RCP Application via java webstart seems to do nothing
Next Topic:using a plugin as a service, Microkernel-like design pattern.
Goto Forum:
  


Current Time: Sat Oct 05 16:28:54 GMT 2024

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

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

Back to the top