Skip to main content



      Home
Home » Modeling » Papyrus » How can I modify <<ExternLibrary>> std?
How can I modify <<ExternLibrary>> std? [message #1835199] Thu, 26 November 2020 19:44 Go to next message
Eclipse UserFriend
I was wondering if it is possible to modify the <<ExternLibrary>> std because I need to work with std::thread and it is not contained in it.
Re: How can I modify <<ExternLibrary>> std? [message #1835228 is a reply to message #1835199] Fri, 27 November 2020 07:52 Go to previous messageGo to next message
Eclipse UserFriend
You can't. Libraries deployed in bundles in the Eclipse/Papyrus workbench are read-only resources.

But you can create your own library with the types you need, to share them amongst your design models. Only I don't know what would be the semantics of importing multiple distinct packages named 'std'. Probably for code generation it wouldn't matter.

HTH,
Christian
Re: How can I modify <<ExternLibrary>> std? [message #1835233 is a reply to message #1835228] Fri, 27 November 2020 09:12 Go to previous messageGo to next message
Eclipse UserFriend
Christian Damus wrote on Fri, 27 November 2020 07:52
You can't. Libraries deployed in bundles in the Eclipse/Papyrus workbench are read-only resources.


Well, that sucks. I was fearing I would have to do that.

Christian Damus wrote on Fri, 27 November 2020 07:52
But you can create your own library with the types you need, to share them amongst your design models. Only I don't know what would be the semantics of importing multiple distinct packages named 'std'. Probably for code generation it wouldn't matter.


Yeah, it's only for code generation. Do you know how can I create my own library? Is that process just as a regular project?
Re: How can I modify <<ExternLibrary>> std? [message #1835238 is a reply to message #1835233] Fri, 27 November 2020 10:02 Go to previous messageGo to next message
Eclipse UserFriend
A model library is just a package that contains reusable constructs meant to be imported into/referenced by your models. So, yeah, the very same process.

You might choose to stereotype your library package as «ModelLibrary» for documentation purposes; maybe some tools would treat it specially, I don't know.

Christian
Re: How can I modify <<ExternLibrary>> std? [message #1835302 is a reply to message #1835238] Mon, 30 November 2020 07:46 Go to previous messageGo to next message
Eclipse UserFriend
... or you create a bug for Papyrus SW designer with the lists of elements missing for you in the C++ std library. Of course, are lot are missing as the C++ library is huge. Thus, I don't aim for a complete library, but it would be good if the likelihood to find relevant classes inside becomes a bit bigger.
Re: How can I modify <<ExternLibrary>> std? [message #1835310 is a reply to message #1835302] Mon, 30 November 2020 09:36 Go to previous message
Eclipse UserFriend
Ansgar Radermacher wrote on Mon, 30 November 2020 07:46
... or you create a bug for Papyrus SW designer with the lists of elements missing for you in the C++ std library. Of course, are lot are missing as the C++ library is huge. Thus, I don't aim for a complete library, but it would be good if the likelihood to find relevant classes inside becomes a bit bigger.


Well, I could do that, but that means I would be creating a lot of bugs and I don't think that you should use your time on adding stuff to std when you can use it for more valuable activities like fixing real issues.

I will just create my own std and add stuff as I need it. I just thought it was a way of modifying the included one myself, hence the question in the original post.
Previous Topic:Issues creating my own std library
Next Topic:Class attributes and methods missing when deleting it and dragging it again to the diagram.
Goto Forum:
  


Current Time: Wed Jul 23 16:40:15 EDT 2025

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

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

Back to the top