The ExtLibrary stereotype already supports the use of qualified names via the "prefix" attribute. However, this attribute is not set to "std::" in the STL model library and there is an error in the evaluation of this attribute. I will correct this two problems asap.
I am a beginner about Papyrus.
I need to make a property with std::string type in a class.
But I can't find std::string in type dialog because there are UMLRT-RTS and AnsiCLibrary.
I guess that if I import C++ registered package, I will find std::string in type dialog.
Is it right?
If it is right, Can you show me where to find C++ registered Package and how to import C++ registered Package.
Since you have the choice between the UMLRT-RTS and the Ansi-C library, you have probably Papyrus-RT installed.
The STL library (quite limited though). is part of Papyrus SW designer which you can install either via the market-place or its update-site (neon or oxygen): http://download.eclipse.org/modeling/mdt/papyrus/components/designer/
While Papyrus-RT targets a specific modeling approach dedicated for real-time systems, Papyrus SW Designer is a bit broader. After you installed SW designer, have a look at the installed examples (File->New->Example)
I have found the way to std::string as variable type of class attribute.
I applied AttributeProperties to the variable of a class and set std::string to type:String of AttributeProperties.
I don't have any problem until now.
Is it correct to use std::string like this?
AttributeProperties is a stereotype of the Papyrus-RT C++ profile and is taken into account by the Papyrus-RT code generator. The use of the STL model library (coming with Papyrus-SW designer) in Papyrus-RT has not been intended, but seems to be ok - if you apply the additional stereotype.
If you use the code generation from Papyrus SW designer, you just type your class attribute with "string" from the STL model library, i.e. you don't need this stereotype.