Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Referring to resources located in bundles
Referring to resources located in bundles [message #416107] Fri, 18 January 2008 08:47 Go to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Hi,

I'm trying the new extension point 'dynamic_package' and I'm wondering
what the syntax for the location should look like.
In other words:
How do I refer to a resource located in a bundle within the target platform?

thanks,
Sven
Re: Referring to resources located in bundles [message #416112 is a reply to message #416107] Fri, 18 January 2008 11:34 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Sven,

Isn't there a simple example in the extension point documentation? :-P

You'd use a relative location much like what you do to refer to the
*.genmodel in the generated_package extension point. E.g., if the
..ecore is in <project>/foo/bar.ecore, you'd use "foo/bar.ecore"
(assuming that's were it is in the final bundle as well;
build.properties is used to describe what goes in the binary result).
Note that I got a bit fancy and included support for a fragment, so this
really is the same as "foo/bar.ecore#/". By allowing you to specify a
fragment, it's possible to refer to nested subpackages, e.g.,
"foo/bar.ecore#//childPackage, or even to load from another resource
type, e.g., "foo/bar.uml#someUUI" might refer to an profile EPackage in
a UML file.


Sven Efftinge wrote:
> Hi,
>
> I'm trying the new extension point 'dynamic_package' and I'm wondering
> what the syntax for the location should look like.
> In other words:
> How do I refer to a resource located in a bundle within the target
> platform?
>
> thanks,
> Sven


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Odd CCE in Delete command
Next Topic:Platform URI and special chars in project name
Goto Forum:
  


Current Time: Thu Mar 28 14:51:20 GMT 2024

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

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

Back to the top