Bug 10980 - JDT / factory for new interfaces would be nice
Summary: JDT / factory for new interfaces would be nice
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-07 13:02 EST by Stefan Matthias Aust CLA
Modified: 2002-03-13 12:32 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.