Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Runtime Construction of Topic Strings
Runtime Construction of Topic Strings [message #894378] Sun, 08 July 2012 19:27 Go to next message
Eclipse UserFriend
I was reading through some of the IEventBroker documentation and read that some of the issues/limitations on using DI to subscribe to events was going to be addressed in M5.
http://wiki.eclipse.org/Eclipse4/RCP/Event_Model#Subscribing_Using_IEventBroker

Is the listed documentation still accurate? Specifically, is dependency injection restricted if the topic string being registering is constructed at runtime?

Thanks,

JD

[Updated on: Sun, 08 July 2012 19:28] by Moderator

Re: Runtime Construction of Topic Strings [message #894496 is a reply to message #894378] Mon, 09 July 2012 08:41 Go to previous messageGo to next message
Eclipse UserFriend
I don't think that is possible because the @UIEventTopic requires the "value" argument to be a constant expression. If you don't know the topic at compile time I don't think you can subscribe.
Re: Runtime Construction of Topic Strings [message #894531 is a reply to message #894496] Mon, 09 July 2012 10:17 Go to previous message
Eclipse UserFriend
You're right, that was changed in 4.2. The topic strings were auto-generated from the model instead of the more flexible "construction at runtime" partly because they were always used the same way and partly to help cases like @UIEventTopic

PW
Previous Topic:Some menu items are not displayed in E4 application
Next Topic:Perspective / part not changeable
Goto Forum:
  


Current Time: Wed Jul 09 22:31:07 EDT 2025

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

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

Back to the top