Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Get information about current bundle in generator
Get information about current bundle in generator [message #1715794] Thu, 26 November 2015 10:27 Go to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
Hi,

in my generator I need to get some information about the current bundle and its Manifest.
Is there any API for that?

Thanks in advance
~Ingo
Re: Get information about current bundle in generator [message #1715798 is a reply to message #1715794] Thu, 26 November 2015 10:43 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
What is the currrent bundle? The one containing the generator or the target project

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Get information about current bundle in generator [message #1715799 is a reply to message #1715798] Thu, 26 November 2015 10:45 Go to previous messageGo to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
For my purpose I need the target project where the resource is in.
Re: Get information about current bundle in generator [message #1715800 is a reply to message #1715799] Thu, 26 November 2015 10:46 Go to previous messageGo to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
btw, does anybode know an API to add/remove manifest entries. I guess there must be something from eclipse...
Re: Get information about current bundle in generator [message #1715801 is a reply to message #1715800] Thu, 26 November 2015 11:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
not namifest specific: your IFileSystemAccess might be actually a IFileSystemAccessExtension3

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Get information about current bundle in generator [message #1715836 is a reply to message #1715801] Thu, 26 November 2015 13:54 Go to previous messageGo to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
Yes it is a IFileSystemAccessExtension3, but there is no method for getting some information about the bundle.
Do you mean I should read the mainfest via #readTextFile and do the parsing by myself?
I though there must be an API somewehere... Smile
Re: Get information about current bundle in generator [message #1715838 is a reply to message #1715836] Thu, 26 November 2015 14:06 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
As i said i cannot answer you the api question

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Protected Regions for Codegeneration
Next Topic:I want to use my created language in PHPStorm.
Goto Forum:
  


Current Time: Sat Apr 20 03:27:29 GMT 2024

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

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

Back to the top