Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-dev] How to document OSGi extensibility?



On Fri, Jan 22, 2021 at 3:42 PM Christoph Läubrich <laeubi@xxxxxxxxxxxxxx> wrote:
Good point! I'd like to enhance my annotation idea in the following way:

@Whiteboard(extensions = {
    "org.eclipse.ui.genericeditor.contentAssistProcessors"
  }
  properties = {"xyz"}
  }
)

that way it would be possible to automatically read the meta-data and
transform them into help or whatever...

Eclipse Platform should avoid the funk of building and relying on Eclipse-specific documentation annotations for OSGi. It looks like in this case, it's more interesting to just bring the idea to the OSGi Alliance so it can become specified or shared with other OSGi projects to identify the best solution in a standard-ish way; and then Eclipse Platform could start using them.
Concretely, generating documentation is a difficult task, see how javadoc or PDE extension point doc-gen are complex; we don't want to start dealing with such extra complex new problem in Platform.

Note that 1 issue introduced by the idea of documenting on the interface is that it kinds of break the layers: the IContentAssistProcessor interface is not aware of Generic Editor, so it looks like we'd suddenly have to make it kind of aware of it, at least in the doc, creating a (very soft, not technically binding) dependency cycle. That seems undesired to me.

Back to the top