Project: JDT
Bug 67589 [reorg] cannot move folder into folder of non-java project [refactoring]
Reported: 2004-06-17 03:46:21 | Status: verified fixed

Cannot move folder into a folder inside a non-java project with ReorgMove. The move dialog only shows the simple project, without any children. Reason: StandardJavaElementContentProvider#getChildren(..) doesn't return children of an IProject. PackageExplorerContentProvider#getChildren has special code, which explains why children of non-java projects are visible in the Package Explorer: if (parentElement instanceof IProject) return ((IProject)parentElement).members(); In StandardJavaElementContentProvider#getChildren(..), ... if (element instanceof IFolder) return getResources((IFolder)element); ... should be changed to ... if (element instanceof IContainer) return getResources((IContainer)element);

Files changed in fix:
org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/DestinationContentProvider.java