Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Juno: code errors in generated model code of static uml profile
Juno: code errors in generated model code of static uml profile [message #892714] Fri, 29 June 2012 06:29 Go to previous message
Christian D is currently offline Christian D
Messages: 8
Registered: February 2012
Junior Member
I'm porting a static profile from indigo to juno release.
I have already updated all changed extension points and references inside the uml profile. But when generating the model code from the genmodel, I experience a case error in the PackageImpl class (see below). It is easy to correct by hand and the profile works fine afterwards, but annoying as the error reappears every time the model code is generated again. Did I miss something while porting? Is there any way to fix this?

In the following snipped org.eclipse.uml2.types.typesPackage should actually be org.eclipse.uml2.types.TypesPackage. The line wasn't even there in indigo.

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized) return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Obtain other dependent packages
		UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
		org.eclipse.uml2.types.typesPackage thetypesPackage = (org.eclipse.uml2.types.typesPackage)EPackage.Registry.INSTANCE.getEPackage(org.eclipse.uml2.types.typesPackage.eNS_URI);
		SystemViewPackage theSystemViewPackage = (SystemViewPackage)EPackage.Registry.INSTANCE.getEPackage(SystemViewPackage.eNS_URI);
...

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Wrapped rather than Truncated Text for Use Case Names in Use Case Diagrams
Next Topic:Control / UnControl not visible in the Model Explorer Context Menu
Goto Forum:
  


Current Time: Fri May 24 04:16:10 EDT 2013

Powered by FUDForum. Page generated in 0.02267 seconds