|
Re: Referring to resources located in bundles [message #416112 is a reply to message #416107] |
Fri, 18 January 2008 11:34 |
Ed Merks Messages: 33142 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02912 seconds