AlexFalappa / nb-springboot

NetBeans IDE plugin supporting programming with Spring Boot
Apache License 2.0
156 stars 42 forks source link

Configuration Editor: show javadoc in completion of java enums values #146

Open AlexFalappa opened 5 years ago

AlexFalappa commented 5 years ago

Present the list of enumeration values when a configuration property as a Java enumeration data type.

The following properties have a java enumeration data type:

management.endpoint.health.show-details=when_authorized
management.info.git.mode=full
management.metrics.export.graphite.duration-units=days
management.metrics.export.simple.mode=cumulative
management.metrics.export.statsd.flavor=telegraf
management.server.ssl.client-auth=need
server.error.include-stacktrace=on_trace_param
spring.artemis.mode=native
spring.batch.initialize-schema=embedded
spring.cache.type=caffeine
spring.data.cassandra.repositories.type=reactive
spring.datasource.initialization-mode=embedded
spring.integration.jdbc.initialize-schema=embedded
spring.jackson.default-property-inclusion=non_default
spring.jersey.type=filter
spring.jooq.sql-dialect=postgres_9_3
spring.main.banner-mode=console
spring.main.web-application-type=reactive
spring.output.ansi.enabled=never
snicoll commented 5 years ago

FTR, such enum have a javadoc that is similar to the ones that are on fields for regular configuration property metadata. If you can extract that information and present it alongside each value that would be awesome.

This is consistent with the values hints where you can specify a description for each value, see this example

AlexFalappa commented 5 years ago

@snicoll I have implemented the retrieval of enumeration values in d5ded0de0202b6d9076456db9ff3833c6194a072.

Retrieval of javadoc associated to enumeration values will take me some more time as I must get acquainted with NetBeans API for java source management. I will leave this issue open for the moment to track your requested behaviour.