Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] Support for local and anonymous types released

Part of the new support for local and anonymous types in the Java model has
been released and will be part of tonight's build.

This includes:
- local and anonymous types are shown in the Outline view and the Package
Explorer view
- Java element deltas for these types are notified
- handles on these types can be created (see IMember.getType(String, int))
- mementos for these handles are supported
- open on selection (F3) in a Java editor goes to the local type definition

This doesn't yet include:
- type hierarchy on these types
- search on these types
- anonymous/local binary types


Note for the JDT/UI team:
Right now the Outline shows an element with an empty label for an anonymous
type (since getElementName() returns an empty String). As for initializers
that show "{...}", I would suggest that a special label is used for
anonymous type. This label could be "new X() {...}". It would be
constructed as follows: "new " + IType.getSuperClassName() + "() {...}".





Back to the top