Summary: | Provide API for getting occurrence count from initializers and types | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philip Mayer <eclipsetalk2> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | markus.kell.r |
Version: | 3.2 | ||
Target Milestone: | 3.2 M4 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Philip Mayer
2005-11-04 04:36:47 EST
We also wouldn't mind if the method was added on ISourceReference, although IInitializer and IType would be sufficient for now. Could this PR be considered for 3.2 (or even M4)? We currently cast to the internal SourceRefElement to get at this information, but we shouldn't ship like this ;-) The occurrence count doesn't really make sense for an IClassFile or an ICompilationUnit, so it cannot be on ISourceReference. Instead I added IMember#getOccurrenceCount(). Also added tests CompilationUnitTests#testGetOccurrenceCount01/02. Verified for 3.2 M4 using build I20051212-0010 |