Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Error with import after refactoring interface
Error with import after refactoring interface [message #1799424] Thu, 06 December 2018 15:03 Go to next message
Udo Walker is currently offline Udo WalkerFriend
Messages: 48
Registered: January 2013
Member
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] Fri, 07 December 2018 04:09 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:team dev, git, and emf code gen
Next Topic: how to add resources to a resource set
Goto Forum:
  


Current Time: Tue Mar 19 06:17:10 GMT 2024

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

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

Back to the top