Register a profile as built-in [message #474735] |
Fri, 27 July 2007 14:26 |
Eclipse User |
|
|
|
Originally posted by: vincent.latombe.travelsoft.fr
Hi everybody !
I've made some profiles, and I want to make them available as simply as
possible. To do so, i've defined a pathmap to these profiles using the
uri_mapping extension point in my plugin providing those profiles...
Example :
<extension id="ramse-profiles"
point="org.eclipse.emf.ecore.uri_mapping">
<mapping source="pathmap://RAMSES_PROFILES/"
target="platform:/plugin/no.ntnu.item.ramses.core/profiles/ ">
</mapping>
</extension>
So I can access my profiles using the pathmap. But I would like to go
further and make my profiles available automatically (without needing to
Load resource... type the pathmap manually) pretty much like the way
Standard and Ecore profiles are available. I looked up in
org.eclipse.uml2.uml.resources project but I couldn't find any clue
about how to define that.
So, is there someone who could give me a hint on this?
Cheers,
Vincent Latombe
|
|
|
|
Re: Register a profile as built-in [message #474742 is a reply to message #474738] |
Sat, 28 July 2007 06:33 |
Eclipse User |
|
|
|
Originally posted by: vincent.latombe.travelsoft.fr
Thanks Kenn, that's exactly what I wanted to know. I looked up into the
source code of editor i'm using (topcased) and saw where standard and
ecore profiles were hardcoded. I have three ways of proceeding :
- hardcode my profile in the same place (fastest for one shot but bad)
- add a lookup into editor preferences to define custom resources to
pre-load (don't have to change my plugin)
- define an extension point and store information from my plugin, then
retrieve it from tocpased.
The extension point seems nice I'll dig into it.
Kenn Hussey a écrit :
> Vincent,
>
> There's no way to make these automatically show up in the list provided by
> the action in the sample editor - currently it's hard-coded to list only the
> profiles that are already in the resource set (after ensuring the standard
> and Ecore profiles are loaded). I suppose you could contribute your own
> action to the editor (or develop your own editor) that looks for deployed
> profiles in a "well-known" place (e.g. as part of a registry populated via
> an extension point)...
>
> Kenn
>
> "Vincent Latombe" <vincent.latombe@travelsoft.fr> wrote in message
> news:f8cv9u$tl5$1@build.eclipse.org...
>> Hi everybody !
>>
>> I've made some profiles, and I want to make them available as simply as
>> possible. To do so, i've defined a pathmap to these profiles using the
>> uri_mapping extension point in my plugin providing those profiles...
>> Example :
>>
>> <extension id="ramse-profiles"
>> point="org.eclipse.emf.ecore.uri_mapping">
>> <mapping source="pathmap://RAMSES_PROFILES/"
>> target="platform:/plugin/no.ntnu.item.ramses.core/profiles/ ">
>> </mapping>
>> </extension>
>>
>> So I can access my profiles using the pathmap. But I would like to go
>> further and make my profiles available automatically (without needing to
>> Load resource... type the pathmap manually) pretty much like the way
>> Standard and Ecore profiles are available. I looked up in
>> org.eclipse.uml2.uml.resources project but I couldn't find any clue
>> about how to define that.
>>
>> So, is there someone who could give me a hint on this?
>>
>> Cheers,
>>
>> Vincent Latombe
>
>
|
|
|
|
Re: Register a profile as built-in [message #624118 is a reply to message #474738] |
Sat, 28 July 2007 06:33 |
Eclipse User |
|
|
|
Originally posted by: vincent.latombe.travelsoft.fr
Thanks Kenn, that's exactly what I wanted to know. I looked up into the
source code of editor i'm using (topcased) and saw where standard and
ecore profiles were hardcoded. I have three ways of proceeding :
- hardcode my profile in the same place (fastest for one shot but bad)
- add a lookup into editor preferences to define custom resources to
pre-load (don't have to change my plugin)
- define an extension point and store information from my plugin, then
retrieve it from tocpased.
The extension point seems nice I'll dig into it.
Kenn Hussey a écrit :
> Vincent,
>
> There's no way to make these automatically show up in the list provided by
> the action in the sample editor - currently it's hard-coded to list only the
> profiles that are already in the resource set (after ensuring the standard
> and Ecore profiles are loaded). I suppose you could contribute your own
> action to the editor (or develop your own editor) that looks for deployed
> profiles in a "well-known" place (e.g. as part of a registry populated via
> an extension point)...
>
> Kenn
>
> "Vincent Latombe" <vincent.latombe@travelsoft.fr> wrote in message
> news:f8cv9u$tl5$1@build.eclipse.org...
>> Hi everybody !
>>
>> I've made some profiles, and I want to make them available as simply as
>> possible. To do so, i've defined a pathmap to these profiles using the
>> uri_mapping extension point in my plugin providing those profiles...
>> Example :
>>
>> <extension id="ramse-profiles"
>> point="org.eclipse.emf.ecore.uri_mapping">
>> <mapping source="pathmap://RAMSES_PROFILES/"
>> target="platform:/plugin/no.ntnu.item.ramses.core/profiles/ ">
>> </mapping>
>> </extension>
>>
>> So I can access my profiles using the pathmap. But I would like to go
>> further and make my profiles available automatically (without needing to
>> Load resource... type the pathmap manually) pretty much like the way
>> Standard and Ecore profiles are available. I looked up in
>> org.eclipse.uml2.uml.resources project but I couldn't find any clue
>> about how to define that.
>>
>> So, is there someone who could give me a hint on this?
>>
>> Cheers,
>>
>> Vincent Latombe
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03097 seconds