Community
Participate
Working Groups
Create a dummy Java project when pasting files/folders to the Package Explorer while nothing is selected. If the clipboard contains only folders that contain .project files, create projects out of the folders (this would also allow to copy-paste project from one Eclipse instance to another). Otherwise, create a "_pasted_code_{n}" project and put the files/folders in there.
This also covers creating the package structure when pasting *.java files.