Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » using types from non-exported packages
using types from non-exported packages [message #1126353] Sat, 05 October 2013 12:57 Go to next message
Vlad Gheorghe is currently offline Vlad GheorgheFriend
Messages: 127
Registered: May 2011
Senior Member

Using xtext 2.4.2.

Many packages fo the xtext plugins are not on the Export-package list.
For instance:
org.eclipse.xtext.ui
org.eclipse.xtext.ui.editor.embedded;x-friends:="org.eclipse.xtext.
ui.codetemplates.ui"

This makes them unusable from other bundles, due to osgi access restricitons.

Is this by intention ?

How should a client application use e.g. org.eclipse.xtext.ui.editor.embedded.EmbeddedEditor ?

Regards
Vlad Gheorghe
Re: using types from non-exported packages [message #1126386 is a reply to message #1126353] Sat, 05 October 2013 13:46 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi I don't get your point. The code is exported by OSGi means but
restricted by eclipse api means (you can use it but not complain when
api changes)

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: using types from non-exported packages [message #1129038 is a reply to message #1126386] Tue, 08 October 2013 08:18 Go to previous message
Vlad Gheorghe is currently offline Vlad GheorgheFriend
Messages: 127
Registered: May 2011
Senior Member
Thanks for the fast response!

You are right, I made a wrong assumption regarding the meaning of the 'x-friends' tag.
(I was not aware that it is an eclipse-only annotation - but now I know Smile.

I had some guice-related errors that looked similar (ClassNotFoundException), and I assumed that this was the cause.

Actually, everything works as expected.

Thanks for the help.
Vlad



Previous Topic:New Maven archetype available: Xtext with multi module Tycho
Next Topic:How to translate a .g file (ANTLR grammar file) into xtext file automatically
Goto Forum:
  


Current Time: Fri Mar 29 10:09:05 GMT 2024

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

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

Back to the top