Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Marte profile( Papyrus problem)
Marte profile( Papyrus problem) [message #1739626] Wed, 03 August 2016 11:31 Go to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
index.php/fa/26677/0/Hi,

I can't apply marte profile too.
I followed these steps:
1) New>papyrus project
I give the name of the project, next I choose Profile.
2) New > papyrus model

I enter marte sources manually, using this link:
http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/tree/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/resources?id=8c0a29c3e4b19676126faf9e13e7029bf02d1a06&h=master
For step 1) , I used marte.profile.di, marte.profile.notation, marte.profile.uml.
For ste 2) I used marte_Library.library.di, marte_Library.library.notation, marte_Library.library.uml.

For the test of this profile,
New> papurys project.
When I apply the profile from properties, I had the attached error .
I'm using eclipse Luna , java se development kit 8 update 92
Please can one help me? Thanks in advance

Re: Marte profile( Papyrus problem) [message #1739627 is a reply to message #1739626] Wed, 03 August 2016 11:37 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
Hello Raoudha Saida,

would be interesting to know the error details. The error details should appear if you press the "Details >>" button of the error window.

Greetings,
Carsten
Re: Marte profile( Papyrus problem) [message #1739638 is a reply to message #1739627] Wed, 03 August 2016 12:23 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member

index.php/fa/26678/0/
  • Attachment: Capture.PNG
    (Size: 47.38KB, Downloaded 1164 times)
Re: Marte profile( Papyrus problem) [message #1739881 is a reply to message #1739638] Fri, 05 August 2016 10:44 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
Hi,
I try to use another version of eclipse but it still the same error.
Please can one help me?
Re: Marte profile( Papyrus problem) [message #1739935 is a reply to message #1739881] Fri, 05 August 2016 18:19 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
Hi,

I works fine in my installation.

I did not used MARTE before, so
* I set up a fresh Papyrus 2.0.0 (Neon) with MARTE (just to test it)
* created a new Papyrus project
* chose UML
* pressed <next>
* gave the project a name
* pressed <next>
* in "Choose a profile to apply" I pressed "Browse registered profiles" and selected "MARTE"

In the project I am able to apply MARTE Stereotypes without any problems.

/Carsten
Re: Marte profile( Papyrus problem) [message #1740876 is a reply to message #1739935] Fri, 19 August 2016 09:46 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
Hi,
Thanks for your reply.
My aim is to extend the profile MARTE and make modifications not only apply their stereotypes, that's why I created this new profile using mentioned resources. However, I met the attached error.
Please can one help me.
I'm using eclipse Luna and jdk 8u-102(windows 7 x64).
index.php/fa/26790/0/
  • Attachment: Capture.PNG
    (Size: 93.01KB, Downloaded 1180 times)

[Updated on: Fri, 19 August 2016 09:49]

Report message to a moderator

Re: Marte profile( Papyrus problem) [message #1740896 is a reply to message #1740876] Fri, 19 August 2016 15:28 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
OK, so you modify the MARTE profile itself. This gives me another guess what might be happened.

In Papyrus a profile must be released and registered to be applied. If you do not release and register a profile after a modification it will not be found.

Regards
Carsten Pitz
Re: Marte profile( Papyrus problem) [message #1740898 is a reply to message #1740896] Fri, 19 August 2016 15:40 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
Hi,
Thanks for your reply.
What you mean by "In Papyrus a profile must be released"? How ?
Re: Marte profile( Papyrus problem) [message #1740902 is a reply to message #1740898] Fri, 19 August 2016 16:07 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
When saving the profile the following pop up window appears.
index.php/fa/26796/0/

After chhosing <yes> the Profile Definition window appears.
index.php/fa/26797/0/

After that the profile is defined and can be used.
index.php/fa/26798/0/

At least in my little PoC in which I modified the Unit Stereotype of the MARTE Foundations.

Regards
Carsten Pitz
Re: Marte profile( Papyrus problem) [message #1740906 is a reply to message #1740902] Fri, 19 August 2016 16:38 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
The problem when I want to apply this new profile for another papyrus project.
- MarteProfile is my new modified profile.
- Test3: the project for testing.
I click on "+" , next I apply MarteProfile, next "select All", next ok.
But, I have error.
index.php/fa/26804/0/

index.php/fa/26805/0/index.php/fa/26806/0/index.php/fa/26807/0/
  • Attachment: Capture1.PNG
    (Size: 59.02KB, Downloaded 1092 times)
  • Attachment: Capture2.PNG
    (Size: 73.29KB, Downloaded 1110 times)
  • Attachment: Capture3.PNG
    (Size: 69.20KB, Downloaded 1103 times)
  • Attachment: Capture5.PNG
    (Size: 83.28KB, Downloaded 1100 times)
Re: Marte profile( Papyrus problem) [message #1740908 is a reply to message #1740906] Fri, 19 August 2016 17:06 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
I did the same and it works fine in my installation

index.php/fa/26808/0/

Papyrus -- I am using 2.0.0 -- by magic includes MARTE profile when I add the modified MARTE profile.

Maybe using Version 0.8.2 you have to do this step manually. Try adding the registered MARTE profile before adding your own.

Regards
Carsten

[Updated on: Fri, 19 August 2016 17:12]

Report message to a moderator

Re: Marte profile( Papyrus problem) [message #1740909 is a reply to message #1740908] Fri, 19 August 2016 17:17 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
What's your eclipse version and jdk?
I used eclipse luna and java 8 update 102 (64 bit)
Re: Marte profile( Papyrus problem) [message #1740912 is a reply to message #1740909] Fri, 19 August 2016 17:23 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
For the PoC I used Papyrus 2.0.0 on Eclipse Neon running on Oracle Java build 1.8.0_101-b13 on Ubuntu Linux 16.04.

Regards
Carsten Pitz
Re: Marte profile( Papyrus problem) [message #1740913 is a reply to message #1740912] Fri, 19 August 2016 17:35 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
To creat the new profile MARTE , I use master resources for luna eclipse from this link
http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/tree/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/resources?id=8c0a29c3e4b19676126faf9e13e7029bf02d1a06&h=master

Could you know the right version of MARTE resources for Neon ?
Re: Marte profile( Papyrus problem) [message #1740914 is a reply to message #1740913] Fri, 19 August 2016 17:50 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
I simply installed MARTE using the "Help" --> "install new software" dialog.

The

http://download.eclipse.org/modeling/mdt/papyrus/updates/releases/neon/2.0.0/extra

software site (package) which includes MARTE.

Regards
Carsten Pitz

[Updated on: Fri, 19 August 2016 18:07]

Report message to a moderator

Re: Marte profile( Papyrus problem) [message #1740918 is a reply to message #1740914] Fri, 19 August 2016 18:05 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
To modify and extend Marte Profile, I need to creat new papyrus project which contains MARTE resources, that's why I use master resources...
If I use you method, how can'I extend MARTE and have my own profile with my new extension?
Re: Marte profile( Papyrus problem) [message #1740921 is a reply to message #1740918] Fri, 19 August 2016 18:18 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
As I did. I created my own profile. Within the profile I imported the original MARTE packages to be modified using the UML package import mechanism. And created my own stereotypes based on the original MARTE stereotypes.

I include the project directories as ZIP archives.

Regards
Carsten Pitz
Re: Marte profile( Papyrus problem) [message #1740924 is a reply to message #1740921] Fri, 19 August 2016 18:44 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
Thanks a lot for your help, I will try with your method and i hope thaht it works for me.
Re: Marte profile( Papyrus problem) [message #1741684 is a reply to message #1740924] Sat, 27 August 2016 11:19 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
Hi Carsten,
I tried using your method to extend MARTE profile with new classes.
Why you do the import of MARTE profile within the new created profile? I couldn't find the option "using the UML packages import mechanism"
Could you help me please.
Re: Marte profile( Papyrus problem) [message #1741687 is a reply to message #1741684] Sat, 27 August 2016 14:43 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
Quote:
Why you do the import of MARTE profile within the new created profile?

I do not know if it is strictly required, but I find it helpful as annotation. It documents which packages are altered.

Quote:
I couldn't find the option "using the UML packages import mechanism"
Could you help me please.

Ups, that feature is well hidden Wink
Right click on the profile's enntry within the model explorer. Choose "New Child". In the "New Child" dialog choose "Package import".
Open the "Properties" view on the newly created package import. Choose the "Advanced" tab (on the left side of the view's window). Then edit the "Imported Package" to point to the package to be imported.

/Carsten

[Updated on: Sat, 27 August 2016 14:44]

Report message to a moderator

Re: Marte profile( Papyrus problem) [message #1742673 is a reply to message #1741687] Tue, 06 September 2016 14:10 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
Hi,
Thanks a lot for your reply and help.
I followed the mentioned steps , but I didn't find "Imported packages" in advanced.
What can'I do?
index.php/fa/26980/0/
index.php/fa/26981/0/
  • Attachment: Capture1.PNG
    (Size: 45.60KB, Downloaded 1017 times)
  • Attachment: Capture2.PNG
    (Size: 27.11KB, Downloaded 1008 times)
Re: Marte profile( Papyrus problem) [message #1743159 is a reply to message #1742673] Mon, 12 September 2016 18:22 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
Sorry Raoudha,

I was on holiday. As a consequence I answer rather late.

My description obviously was ambiguous.

Here are two screen shots. I guess you marked the imported package

index.php/fa/27033/0/

instead of the package import

index.php/fa/27034/0/

Best regards,
Carsten

[Updated on: Mon, 12 September 2016 18:24]

Report message to a moderator

Re: Marte profile( Papyrus problem) [message #1743721 is a reply to message #1743159] Mon, 19 September 2016 09:06 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
Hi Carsten,
Thanks a lot for your help.
I succeded to import MARTE package, the result in the first attached image.
But, I can't create a class with " This element is imported" as you did with Unit in the second attached image.
How can'I do this step? could you help me please
index.php/fa/27119/0/
index.php/fa/27120/0/
  • Attachment: Capture.PNG
    (Size: 233.10KB, Downloaded 971 times)
  • Attachment: capture1.png
    (Size: 232.86KB, Downloaded 1024 times)

[Updated on: Mon, 19 September 2016 09:08]

Report message to a moderator

Re: Marte profile( Papyrus problem) [message #1743769 is a reply to message #1743721] Mon, 19 September 2016 14:23 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
Hi Raouda,
I do not understand your issue. Do you refer to https://www.eclipse.org/forums/index.php?t=msg&th=1079824&goto=1740908&#msg_1740908 ?
Best regards
Carsten
Re: Marte profile( Papyrus problem) [message #1743837 is a reply to message #1743769] Tue, 20 September 2016 08:05 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
In your profile, you created Unit class which is imported from Marte profile and you do an extension from this class for modifying the profile.
Could you please inform me how can'I creat this Unit class or any other class imported from Marte profile?
Thnks in advance.
Re: Marte profile( Papyrus problem) [message #1743850 is a reply to message #1743837] Tue, 20 September 2016 08:57 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 259
Registered: May 2015
Location: Germany
Senior Member
No, in my example both Unit and myModifiedUnit are stereotypes (not classes).

In a former post (https://www.eclipse.org/forums/index.php?t=msg&th=1079824&goto=1740908&#msg_1740908) I introduced a class named class1 which uses the stereotype myModifiedUnit.

Best regards
Carsten
Re: Marte profile( Papyrus problem) [message #1743873 is a reply to message #1743850] Tue, 20 September 2016 10:38 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
I did not understand how you created unit and myModifiedUnit.
Could you inform me step by step the creation of these two stereotypes.
I would be grateful if you could help me. Thanks.
Re: Marte profile( Papyrus problem) [message #1743982 is a reply to message #1743873] Wed, 21 September 2016 09:47 Go to previous message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
Hi Carsten,
Could you help me to solve my problem.
Thanks in advance.

[Updated on: Thu, 22 September 2016 09:57]

Report message to a moderator

Previous Topic:Self generalization
Next Topic:Export Papyrus as standalone product
Goto Forum:
  


Current Time: Fri Aug 07 13:21:56 GMT 2020

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

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

Back to the top