Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » [UML2] how to load UML_PRIMITIVE_TYPES_LIBRARY
[UML2] how to load UML_PRIMITIVE_TYPES_LIBRARY [message #477017] Mon, 03 March 2008 19:05
Jinhui is currently offline JinhuiFriend
Messages: 42
Registered: July 2009
Member
Hello everyone,

I've posted this message in the MDT group, accidentally. So now to the
right place:

I am having this problem, I want to access the UML_Primitive_Lib, so that
I can use the primitive types as type specification.

I tried like this:

URI primitiveTpyeLibURI =
URI.createURI(XMI2UMLResource.UML_PRIMITIVE_TYPES_LIBRARY_UR I);
Model uml2PrimitiveTypesLibrary =
(Model)UML2Util.load(
RESOURCE_SET,
primitiveTpyeLibURI,
UMLPackage.Literals.MODEL);


actually I've tried with many URIs in different classes, but none of work
seemed to be working(i.e. load() always returns null). Btw, I'm using
RSA7.0.0.4, is this a problem of RSA7? Does anyone have any idea?

--XMI2UMLResource
* UML_PRIMITIVE_TYPES_LIBRARY_2_1_URI
* UML_PRIMITIVE_TYPES_LIBRARY_URI
--UMLResource
* UML_PRIMITIVE_TYPES_LIBRARY_URI
--UML22UMLResource
* UML2_PRIMITIVE_TYPES_LIBRARY_URI Any one has any idea?


best Regards.
Jinhui
Previous Topic:Re: [UML2] programmatically set the type of a newly created Parameter???
Next Topic:[UML2] how to load UML_PRIMITIVE_TYPES_LIBRARY
Goto Forum:
  


Current Time: Thu Mar 28 19:28:07 GMT 2024

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

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

Back to the top