コード例 #1
0
 /** @generated */
 private static void loadDefaultImports(Package model) {
   ResourceSet resourceSet = model.eResource().getResourceSet();
   Model umlLibrary =
       (Model)
           resourceSet
               .getResource(URI.createURI(UMLResource.UML_PRIMITIVE_TYPES_LIBRARY_URI), true)
               .getContents()
               .get(0);
   model.createElementImport(umlLibrary.getOwnedType("Boolean"));
   model.createElementImport(umlLibrary.getOwnedType("String"));
   model.createElementImport(umlLibrary.getOwnedType("UnlimitedNatural"));
   model.createElementImport(umlLibrary.getOwnedType("Integer"));
 }