Community
Participate
Working Groups
3.2 The type kind indicator needs to know what kind the first type in a compilation unit or class file is: - class - abstract class - interface - annotation - enum As discussed at the JDT summit, a possibility is to offer that in API on CU or CF that can avoid the eager poulation of the model
IJavaFile#getFirstTypeModifiers() would first peak at the Java model info cache, and if not available use searchAllTypeNames(...).
Unfortunately, I had not enough time to implement this requirement for 3.3 M3. Need to make decision for M4 if this bug will still stay in plan or not...
Discussed on the call: No need for new API at the moment: I implemented the suggested improvement directly in the decorator. Unless I find a second usecase for this, we can set this bug to CLOSED