Bug 10980

Summary: JDT / factory for new interfaces would be nice
Product: [Eclipse Project] JDT Reporter: Stefan Matthias Aust <sma>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Stefan Matthias Aust CLA 2002-03-07 13:02:49 EST
There're two ways to create a new type with a DOMFactory: createType() and 
createType(String).  The first always creates a new class, the latter can 
create either interfaces or classes from an existing source.

It would be nice, if you'd add an additional 

 public IType createInterface() {
   return createType("public interface AnInterface ...");
 }

factory method.  Renaming createType() to createClass() could also be an 
improvement.
Comment 1 Olivier Thomann CLA 2002-03-13 12:21:30 EST
Fixed and released in HEAD.