Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367620

Summary: better support for creating package-info.java files
Product: [Eclipse Project] JDT Reporter: Philippe Marschall <philippe.marschall>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.8   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Philippe Marschall CLA 2011-12-29 07:30:09 EST
Build Identifier: I20110915-1308

It would be nice if JDT had better support for creating package-info.java files. Right now what I do is New → File → "package-info.java" and then do the quick fix for for adding the package declaration (New → Class doesn't work). This is a bit annoying especially for APIs that require such files like JAXB. It would be nice if the following two would be supported:

 - In the New wizard under Java there is an entry "Package Info" (or similar)
 - In New → Package there is a checkbox for "create package-info.java"

Reproducible: Always
Comment 1 Dani Megert CLA 2012-01-03 06:00:15 EST

*** This bug has been marked as a duplicate of bug 86168 ***