Bug 371179 - [Xtend]package explorer layout and file losing problem of Xtend files in default package
Summary: [Xtend]package explorer layout and file losing problem of Xtend files in defa...
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Backlog (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-10 03:54 EST by Evermind CLA
Modified: 2017-03-11 13:42 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evermind CLA 2012-02-10 03:54:20 EST
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.
Comment 1 Christian Dietrich CLA 2017-03-11 13:42:11 EST
looks like jdt does not support this:
org.eclipse.jdt.internal.core.PackageFragment.buildStructure(OpenableElementInfo, IProgressMonitor, Map, IResource)