Hi!
I'm working on a plugin and need to create packages due to namespaces. I've managed to create the package and the classes, but i cant figure out how to either move the class to the package, or better, to create it as a child directly.
Tips and tricks?
regards
/Albert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think i tried linking the package as the class owner but got a data type error.
Is the code for the C reverse engineering plugin available as reference?
It's ofc. another step to translate that into LabVIEW as my plugin is intended for, but anything helps. :)
/Albert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi!
I'm working on a plugin and need to create packages due to namespaces. I've managed to create the package and the classes, but i cant figure out how to either move the class to the package, or better, to create it as a child directly.
Tips and tricks?
regards
/Albert
I think you may find the exact details looking at the source of the plugins doing reverse engineering.
Generally when you call
CreateClass(AOwner: UMLNamespace): IUMLClass
on the ClassFactory you need to specify the parent namespace as the parameter.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I think i tried linking the package as the class owner but got a data type error.
Is the code for the C reverse engineering plugin available as reference?
It's ofc. another step to translate that into LabVIEW as my plugin is intended for, but anything helps. :)
/Albert
Here is a tested sample code in C# that adds a class to the second package owned by the project (usually "Logical View")
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thanks, i'll give that a try!
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I got it to work with your code as reference, thanks!
/Albert