Community
Participate
Working Groups
Build Identifier: Version: 3.7.1 Build id: 20110909-1335 Xtend version: 2.3M5 In package explorer, Java class in default package is grouped under "(default package)" node which is subnode of source folder, but Xtend class in default package is directly under source folder, demostrated as follows: src // source folder |--(default package) | |-JavaClassInDefaultPackage.java |--XtendClassInDefaultPackage.xtend And more critically, when I manually drag the Xtend file into "(default package)" node, a dialog shows up saying refactoring failure, and the Xtend file is deleted. BTW: drag and dropping Xtend files between packages will not change its package definition. Reproducible: Always Steps to Reproduce: 1.Create a Java project 2.Create a Java class and a Xtend class, both in default package 3.In package explorer of eclipse, the two files are not located together as shown above 4.Drag the Xtend file into "(default package)" node 5.A dialog shows saying refactoring failure, with two options: Undo and Abort. At this point the Xtend file has been deleted. Choosing either option is useless.
looks like jdt does not support this: org.eclipse.jdt.internal.core.PackageFragment.buildStructure(OpenableElementInfo, IProgressMonitor, Map, IResource)