Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Null pointer after extends AbstractProcessorBasedRenameParticipant(Guice the injected class for extending AbstractProcessorBasedRenameParticipant)
Null pointer after extends AbstractProcessorBasedRenameParticipant [message #1001543] Wed, 16 January 2013 17:35 Go to next message
Hao Xie is currently offline Hao Xie
Messages: 68
Registered: January 2013
Member
I created my own rename participant class called WreslEditorRenameElementParticipant by extending AbstractProcessorBasedRenameParticipant class.

I got null pointer with injected class of ProjectUtil inside AbstractProcessorBasedRenameParticipant. I could not find the right way to bind all the injected class and members for using AbstractProcessorBasedRenameParticipant through Guice.

Can anyone give me a help? Thank you.
Re: Null pointer after extends AbstractProcessorBasedRenameParticipant [message #1001885 is a reply to message #1001543] Thu, 17 January 2013 09:10 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6230
Registered: July 2009
Senior Member
http://koehnlein.blogspot.de/2012/11/xtext-tip-how-do-i-get-guice-injector.html
Re: Null pointer after extends AbstractProcessorBasedRenameParticipant [message #1002477 is a reply to message #1001885] Fri, 18 January 2013 11:55 Go to previous message
Hao Xie is currently offline Hao Xie
Messages: 68
Registered: January 2013
Member
Thank you. It works great!
Previous Topic:Guice Exception when calling XTextGenerator in maven with fornax-tools
Next Topic:Limiting scoped elements, but allowing simple names to be used
Goto Forum:
  


Current Time: Sat Aug 30 00:30:37 EDT 2014

Powered by FUDForum. Page generated in 0.09984 seconds