Skip to main content



      Home
Home » Modeling » EMF » Error with import after refactoring interface
Error with import after refactoring interface [message #1799424] Thu, 06 December 2018 10:03 Go to next message
Eclipse UserFriend
I have an xcore model description file where I use a type wrapper for an interface. The interface type is imported in the xcore file with an import statement.

Then I changed the interface name with Eclipse refactoring tools. After that the name of the interface in the xcore file changed to the new interface name but the import statement of the new interface type was added to the beginning of the xcore file -> the xcore file is not valid anymore.

Example:

Before:
package x.y.z

import some.package.Interface

type MyInterface wraps Interface

...


After:
import some.package.NewInterface

package x.y.z

type MyInterface wraps NewInterface

...


I used Eclipse 2018-09 and EMF SDK 2.15.0.v20180905-1732.


Re: Error with import after refactoring interface [message #1799452 is a reply to message #1799424] Thu, 06 December 2018 23:09 Go to previous message
Eclipse UserFriend
That sounds like a bug. Please open a Bugzilla with a small test case that reproduces the problem:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EMF&component=xcore
Previous Topic:team dev, git, and emf code gen
Next Topic: how to add resources to a resource set
Goto Forum:
  


Current Time: Sat Jul 05 06:03:41 EDT 2025

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

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

Back to the top