Re: Re: repository access
Svata Dedic <[email protected]> Mon, 04 Aug 2003 20:08:01 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.projects.devel |
|---|---|
| Message-ID | <[email protected]> |
Peter Wisnovsky wrote: > > > org.netbeans.api.java.project.ProjectPath in java/project module. > > > > http://www.netbeans.org/download/prj40_prototype/javadoc/JavaProjectAPI/org/netbeans/api/java/project/ProjectPath.html > > Ah, ok. I had inferred from the name that it was a generic Projects > class rather than a Java-specific thing. > > Has there any consideration been given to strongly type the "type" > parameters of the "find" methods? I've generally seen either ints or > strong types used to denotate enum values rather than > java.lang.Object. > OTOH - there should not be ints, since natures building on top of Java can define their own path flavours and they could easily clash, or they would need to approach some authority to get a range for their ints. The set of possible values is not closed, which prevents from using a nice enum class (with private constructor). -Svata