Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Static profiles from 3rd party for Papyrus
Static profiles from 3rd party for Papyrus [message #469801] Fri, 27 March 2009 16:06 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hey all,

my prof gave my a plugin, that contains a static profile (profile model
and its implementation code), that he has created with topcased. I
think, that Papyrus has a better perspective and want to register the
profile within Papyrus Environment like it is described in the tutorial.
But, unfortunately i have no source code but only the class files. Is it
possible to regenerate this profile for Papyrus (by using the papysrus
extension point) without reimplementing it?

Thx
Timothy
Re: Static profiles from 3rd party for Papyrus [message #469803 is a reply to message #469801] Fri, 27 March 2009 20:20 Go to previous messageGo to next message
Yann Tanguy is currently offline Yann TanguyFriend
Messages: 80
Registered: July 2009
Member
Papyrus and Topcased both rely on the Eclipse UML2 plugin, as a result
the profiles should be compatible between tools without major issues.

In your case, you should not have to re-generate the source code for the
profile, but simply add the following extension in your plugin:
- org.eclipse.emf.ecore.uri_mapping
- com.cea.papyrus.extensionpoints.uml2.UMLProfile

Check the pages 27-31 in my doc about profiles on Papyrus website
(http://www.papyrusuml.org/scripts/home/publigen/content/tem plates/show.asp?P=148&L=EN&ITEMID=23).

regards,

Yann.


Timothy Marc a écrit :
> Hey all,
>
> my prof gave my a plugin, that contains a static profile (profile model
> and its implementation code), that he has created with topcased. I
> think, that Papyrus has a better perspective and want to register the
> profile within Papyrus Environment like it is described in the tutorial.
> But, unfortunately i have no source code but only the class files. Is it
> possible to regenerate this profile for Papyrus (by using the papysrus
> extension point) without reimplementing it?
>
> Thx
> Timothy
Re: Static profiles from 3rd party for Papyrus [message #469804 is a reply to message #469803] Fri, 27 March 2009 21:41 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Yann,

well, the UML2 files are compatible, but the problem is, that i have no
access to the sources of the plugin. I got it as a compiled jar file. Is
it possible to add these informations afterwards into the MANIFEST.MF?
Sorry, i would try, but currently i have no access to the ressources.

Timothy

Yann Tanguy schrieb:
> Papyrus and Topcased both rely on the Eclipse UML2 plugin, as a result
> the profiles should be compatible between tools without major issues.
>
> In your case, you should not have to re-generate the source code for the
> profile, but simply add the following extension in your plugin:
> - org.eclipse.emf.ecore.uri_mapping
> - com.cea.papyrus.extensionpoints.uml2.UMLProfile
>
> Check the pages 27-31 in my doc about profiles on Papyrus website
> (http://www.papyrusuml.org/scripts/home/publigen/content/tem plates/show.asp?P=148&L=EN&ITEMID=23).
>
>
> regards,
>
> Yann.
>
>
> Timothy Marc a écrit :
>> Hey all,
>>
>> my prof gave my a plugin, that contains a static profile (profile
>> model and its implementation code), that he has created with topcased.
>> I think, that Papyrus has a better perspective and want to register
>> the profile within Papyrus Environment like it is described in the
>> tutorial. But, unfortunately i have no source code but only the class
>> files. Is it possible to regenerate this profile for Papyrus (by using
>> the papysrus extension point) without reimplementing it?
>>
>> Thx
>> Timothy
Re: Static profiles from 3rd party for Papyrus [message #469805 is a reply to message #469804] Sat, 28 March 2009 00:20 Go to previous messageGo to next message
Yann Tanguy is currently offline Yann TanguyFriend
Messages: 80
Registered: July 2009
Member
Then create a new plugin that you will use as an adapter for your static
profile in Papyrus.

You will just need to know the plugin id, and the path where the profile
file is stored in the existing plug-in (jar is an archive file, you can
extract the content to find id, path and profile exact file name).

In the new plug-in you add Papyrus profile related extensions (cf.
example above), but you reference the exiting plugin that contains the
static profile.

PROFILE_PLUGIN_ID = id of the profile plug-in
PATH = relative path of the profile file in the plug-in

<extension
point="org.eclipse.emf.ecore.uri_mapping">
<mapping
source="pathmap://MY_PROFILES/"
target="platform:/plugin/PROFILE_PLUGIN_ID/PATH/"/>
</extension>
<extension
point="com.cea.papyrus.extensionpoints.uml2.UMLProfile">
<profile
description="A description..."
name="PROFILE_NAME"
path="pathmap://MY_PROFILES/PROFILE_FILE_NAME.profile.uml"
provider="..."/>
</extension>


Timothy Marc a écrit :
> Yann,
>
> well, the UML2 files are compatible, but the problem is, that i have no
> access to the sources of the plugin. I got it as a compiled jar file. Is
> it possible to add these informations afterwards into the MANIFEST.MF?
> Sorry, i would try, but currently i have no access to the ressources.
>
> Timothy
>
> Yann Tanguy schrieb:
>> Papyrus and Topcased both rely on the Eclipse UML2 plugin, as a result
>> the profiles should be compatible between tools without major issues.
>>
>> In your case, you should not have to re-generate the source code for
>> the profile, but simply add the following extension in your plugin:
>> - org.eclipse.emf.ecore.uri_mapping
>> - com.cea.papyrus.extensionpoints.uml2.UMLProfile
>>
>> Check the pages 27-31 in my doc about profiles on Papyrus website
>> (http://www.papyrusuml.org/scripts/home/publigen/content/tem plates/show.asp?P=148&L=EN&ITEMID=23).
>>
>>
>> regards,
>>
>> Yann.
>>
>>
>> Timothy Marc a écrit :
>>> Hey all,
>>>
>>> my prof gave my a plugin, that contains a static profile (profile
>>> model and its implementation code), that he has created with
>>> topcased. I think, that Papyrus has a better perspective and want to
>>> register the profile within Papyrus Environment like it is described
>>> in the tutorial. But, unfortunately i have no source code but only
>>> the class files. Is it possible to regenerate this profile for
>>> Papyrus (by using the papysrus extension point) without
>>> reimplementing it?
>>>
>>> Thx
>>> Timothy
Re: Static profiles from 3rd party for Papyrus [message #469831 is a reply to message #469805] Sat, 28 March 2009 00:49 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Yann,

that alternative sound very promising. I will try this. Have a nice
weekend and good night.

Timothy

Yann Tanguy schrieb:
> Then create a new plugin that you will use as an adapter for your static
> profile in Papyrus.
>
> You will just need to know the plugin id, and the path where the profile
> file is stored in the existing plug-in (jar is an archive file, you can
> extract the content to find id, path and profile exact file name).
>
> In the new plug-in you add Papyrus profile related extensions (cf.
> example above), but you reference the exiting plugin that contains the
> static profile.
>
> PROFILE_PLUGIN_ID = id of the profile plug-in
> PATH = relative path of the profile file in the plug-in
>
> <extension
> point="org.eclipse.emf.ecore.uri_mapping">
> <mapping
> source="pathmap://MY_PROFILES/"
> target="platform:/plugin/PROFILE_PLUGIN_ID/PATH/"/>
> </extension>
> <extension
> point="com.cea.papyrus.extensionpoints.uml2.UMLProfile">
> <profile
> description="A description..."
> name="PROFILE_NAME"
> path="pathmap://MY_PROFILES/PROFILE_FILE_NAME.profile.uml"
> provider="..."/>
> </extension>
>
>
> Timothy Marc a écrit :
>> Yann,
>>
>> well, the UML2 files are compatible, but the problem is, that i have
>> no access to the sources of the plugin. I got it as a compiled jar
>> file. Is it possible to add these informations afterwards into the
>> MANIFEST.MF?
>> Sorry, i would try, but currently i have no access to the ressources.
>>
>> Timothy
>>
>> Yann Tanguy schrieb:
>>> Papyrus and Topcased both rely on the Eclipse UML2 plugin, as a
>>> result the profiles should be compatible between tools without major
>>> issues.
>>>
>>> In your case, you should not have to re-generate the source code for
>>> the profile, but simply add the following extension in your plugin:
>>> - org.eclipse.emf.ecore.uri_mapping
>>> - com.cea.papyrus.extensionpoints.uml2.UMLProfile
>>>
>>> Check the pages 27-31 in my doc about profiles on Papyrus website
>>> (http://www.papyrusuml.org/scripts/home/publigen/content/tem plates/show.asp?P=148&L=EN&ITEMID=23).
>>>
>>>
>>> regards,
>>>
>>> Yann.
>>>
>>>
>>> Timothy Marc a écrit :
>>>> Hey all,
>>>>
>>>> my prof gave my a plugin, that contains a static profile (profile
>>>> model and its implementation code), that he has created with
>>>> topcased. I think, that Papyrus has a better perspective and want to
>>>> register the profile within Papyrus Environment like it is described
>>>> in the tutorial. But, unfortunately i have no source code but only
>>>> the class files. Is it possible to regenerate this profile for
>>>> Papyrus (by using the papysrus extension point) without
>>>> reimplementing it?
>>>>
>>>> Thx
>>>> Timothy
Re: Static profiles from 3rd party for Papyrus [message #582388 is a reply to message #469801] Fri, 27 March 2009 20:20 Go to previous message
Yann Tanguy is currently offline Yann TanguyFriend
Messages: 80
Registered: July 2009
Member
Papyrus and Topcased both rely on the Eclipse UML2 plugin, as a result
the profiles should be compatible between tools without major issues.

In your case, you should not have to re-generate the source code for the
profile, but simply add the following extension in your plugin:
- org.eclipse.emf.ecore.uri_mapping
- com.cea.papyrus.extensionpoints.uml2.UMLProfile

Check the pages 27-31 in my doc about profiles on Papyrus website
(http://www.papyrusuml.org/scripts/home/publigen/content/tem plates/show.asp?P=148&L=EN&ITEMID=23).

regards,

Yann.


Timothy Marc a écrit :
> Hey all,
>
> my prof gave my a plugin, that contains a static profile (profile model
> and its implementation code), that he has created with topcased. I
> think, that Papyrus has a better perspective and want to register the
> profile within Papyrus Environment like it is described in the tutorial.
> But, unfortunately i have no source code but only the class files. Is it
> possible to regenerate this profile for Papyrus (by using the papysrus
> extension point) without reimplementing it?
>
> Thx
> Timothy
Re: Static profiles from 3rd party for Papyrus [message #582420 is a reply to message #469803] Fri, 27 March 2009 21:41 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Yann,

well, the UML2 files are compatible, but the problem is, that i have no
access to the sources of the plugin. I got it as a compiled jar file. Is
it possible to add these informations afterwards into the MANIFEST.MF?
Sorry, i would try, but currently i have no access to the ressources.

Timothy

Yann Tanguy schrieb:
> Papyrus and Topcased both rely on the Eclipse UML2 plugin, as a result
> the profiles should be compatible between tools without major issues.
>
> In your case, you should not have to re-generate the source code for the
> profile, but simply add the following extension in your plugin:
> - org.eclipse.emf.ecore.uri_mapping
> - com.cea.papyrus.extensionpoints.uml2.UMLProfile
>
> Check the pages 27-31 in my doc about profiles on Papyrus website
> (http://www.papyrusuml.org/scripts/home/publigen/content/tem plates/show.asp?P=148&L=EN&ITEMID=23).
>
>
> regards,
>
> Yann.
>
>
> Timothy Marc a écrit :
>> Hey all,
>>
>> my prof gave my a plugin, that contains a static profile (profile
>> model and its implementation code), that he has created with topcased.
>> I think, that Papyrus has a better perspective and want to register
>> the profile within Papyrus Environment like it is described in the
>> tutorial. But, unfortunately i have no source code but only the class
>> files. Is it possible to regenerate this profile for Papyrus (by using
>> the papysrus extension point) without reimplementing it?
>>
>> Thx
>> Timothy
Re: Static profiles from 3rd party for Papyrus [message #582432 is a reply to message #469804] Sat, 28 March 2009 00:20 Go to previous message
Yann Tanguy is currently offline Yann TanguyFriend
Messages: 80
Registered: July 2009
Member
Then create a new plugin that you will use as an adapter for your static
profile in Papyrus.

You will just need to know the plugin id, and the path where the profile
file is stored in the existing plug-in (jar is an archive file, you can
extract the content to find id, path and profile exact file name).

In the new plug-in you add Papyrus profile related extensions (cf.
example above), but you reference the exiting plugin that contains the
static profile.

PROFILE_PLUGIN_ID = id of the profile plug-in
PATH = relative path of the profile file in the plug-in

<extension
point="org.eclipse.emf.ecore.uri_mapping">
<mapping
source="pathmap://MY_PROFILES/"
target="platform:/plugin/PROFILE_PLUGIN_ID/PATH/"/>
</extension>
<extension
point="com.cea.papyrus.extensionpoints.uml2.UMLProfile">
<profile
description="A description..."
name="PROFILE_NAME"
path="pathmap://MY_PROFILES/PROFILE_FILE_NAME.profile.uml"
provider="..."/>
</extension>


Timothy Marc a écrit :
> Yann,
>
> well, the UML2 files are compatible, but the problem is, that i have no
> access to the sources of the plugin. I got it as a compiled jar file. Is
> it possible to add these informations afterwards into the MANIFEST.MF?
> Sorry, i would try, but currently i have no access to the ressources.
>
> Timothy
>
> Yann Tanguy schrieb:
>> Papyrus and Topcased both rely on the Eclipse UML2 plugin, as a result
>> the profiles should be compatible between tools without major issues.
>>
>> In your case, you should not have to re-generate the source code for
>> the profile, but simply add the following extension in your plugin:
>> - org.eclipse.emf.ecore.uri_mapping
>> - com.cea.papyrus.extensionpoints.uml2.UMLProfile
>>
>> Check the pages 27-31 in my doc about profiles on Papyrus website
>> (http://www.papyrusuml.org/scripts/home/publigen/content/tem plates/show.asp?P=148&L=EN&ITEMID=23).
>>
>>
>> regards,
>>
>> Yann.
>>
>>
>> Timothy Marc a écrit :
>>> Hey all,
>>>
>>> my prof gave my a plugin, that contains a static profile (profile
>>> model and its implementation code), that he has created with
>>> topcased. I think, that Papyrus has a better perspective and want to
>>> register the profile within Papyrus Environment like it is described
>>> in the tutorial. But, unfortunately i have no source code but only
>>> the class files. Is it possible to regenerate this profile for
>>> Papyrus (by using the papysrus extension point) without
>>> reimplementing it?
>>>
>>> Thx
>>> Timothy
Re: Static profiles from 3rd party for Papyrus [message #584468 is a reply to message #469805] Sat, 28 March 2009 00:49 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Yann,

that alternative sound very promising. I will try this. Have a nice
weekend and good night.

Timothy

Yann Tanguy schrieb:
> Then create a new plugin that you will use as an adapter for your static
> profile in Papyrus.
>
> You will just need to know the plugin id, and the path where the profile
> file is stored in the existing plug-in (jar is an archive file, you can
> extract the content to find id, path and profile exact file name).
>
> In the new plug-in you add Papyrus profile related extensions (cf.
> example above), but you reference the exiting plugin that contains the
> static profile.
>
> PROFILE_PLUGIN_ID = id of the profile plug-in
> PATH = relative path of the profile file in the plug-in
>
> <extension
> point="org.eclipse.emf.ecore.uri_mapping">
> <mapping
> source="pathmap://MY_PROFILES/"
> target="platform:/plugin/PROFILE_PLUGIN_ID/PATH/"/>
> </extension>
> <extension
> point="com.cea.papyrus.extensionpoints.uml2.UMLProfile">
> <profile
> description="A description..."
> name="PROFILE_NAME"
> path="pathmap://MY_PROFILES/PROFILE_FILE_NAME.profile.uml"
> provider="..."/>
> </extension>
>
>
> Timothy Marc a écrit :
>> Yann,
>>
>> well, the UML2 files are compatible, but the problem is, that i have
>> no access to the sources of the plugin. I got it as a compiled jar
>> file. Is it possible to add these informations afterwards into the
>> MANIFEST.MF?
>> Sorry, i would try, but currently i have no access to the ressources.
>>
>> Timothy
>>
>> Yann Tanguy schrieb:
>>> Papyrus and Topcased both rely on the Eclipse UML2 plugin, as a
>>> result the profiles should be compatible between tools without major
>>> issues.
>>>
>>> In your case, you should not have to re-generate the source code for
>>> the profile, but simply add the following extension in your plugin:
>>> - org.eclipse.emf.ecore.uri_mapping
>>> - com.cea.papyrus.extensionpoints.uml2.UMLProfile
>>>
>>> Check the pages 27-31 in my doc about profiles on Papyrus website
>>> (http://www.papyrusuml.org/scripts/home/publigen/content/tem plates/show.asp?P=148&L=EN&ITEMID=23).
>>>
>>>
>>> regards,
>>>
>>> Yann.
>>>
>>>
>>> Timothy Marc a écrit :
>>>> Hey all,
>>>>
>>>> my prof gave my a plugin, that contains a static profile (profile
>>>> model and its implementation code), that he has created with
>>>> topcased. I think, that Papyrus has a better perspective and want to
>>>> register the profile within Papyrus Environment like it is described
>>>> in the tutorial. But, unfortunately i have no source code but only
>>>> the class files. Is it possible to regenerate this profile for
>>>> Papyrus (by using the papysrus extension point) without
>>>> reimplementing it?
>>>>
>>>> Thx
>>>> Timothy
Previous Topic:Static profiles from 3rd party for Papyrus
Next Topic:Missing operations of realized interfaces in StateMachine Diagram
Goto Forum:
  


Current Time: Tue Dec 23 04:34:33 GMT 2014

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

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