The extension point
fr.obeo.dsl.viewpoint.diagram.headerProvider
allows clients to provide header provider for a given
fr.obeo.dsl.viewpoint.DDiagram
. A default one will be provided by Viewpoint for
fr.obeo.dsl.viewpoint.diagram.sequence.SequenceDDiagram
. But this last is used only if there is no client specific header provider.
The provider header class is required to implement
fr.obeo.dsl.viewpoint.diagram.tools.api.editor.IHeaderProvider
. This interface has two services :
boolean supportHeader(DDiagram diagram)
: Indicates if this provider support the header section for the given
DDiagram
to display header datas. This header section is displayed between the tabbar and the diagram (just above the ruler if this one is displayed). If this provider support header, it should return the data to display through
getHeaderData(DDiagram)
method.
LinkedList<HeaderData> getHeaderData(DDiagram diagram)
: Return the list of
HeaderData
. This HeaderData should be sorted according to xLocation and they should not have overlap. Otherwise, the result is not predictable.
Each
HeaderData
contains :