Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Why is @EventTopic in an internal package?
Why is @EventTopic in an internal package? [message #1746624] Wed, 02 November 2016 08:08 Go to next message
Stephan Hildebrandt is currently offline Stephan HildebrandtFriend
Messages: 25
Registered: July 2015
Junior Member
Hi,

the annotation @EventTopic is contained in the bundle (and package) org.eclipse.e4.core.di.extensions. The bundle's manifest exports this package with x-internal:=true. Obviously, this leads to discouraged access warnings when I use @EventTopic in my code. Is there a reason for this or is this simply a bug? I could not find any issues in the bug tracker or any explanations on the internet.

Best regards,

Stephan
Re: Why is @EventTopic in an internal package? [message #1746656 is a reply to message #1746624] Wed, 02 November 2016 14:04 Go to previous message
Eclipse UserFriend
x-internal means that it's not API and so its definition may change. We've had some discussion about changing this particular annotation as it exposes the OSGi Event class which makes it hard to use outside of an OSGi context.

Brian.
Previous Topic:IWorkbench.restart() can not load correct language
Next Topic:How to use @Translation in E4 application
Goto Forum:
  


Current Time: Wed Apr 24 17:40:12 GMT 2024

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

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

Back to the top