diff --git a/repository/Grafoscopio-Utils/GrafoscopioDocumentation.class.st b/repository/Grafoscopio-Utils/GrafoscopioDocumentation.class.st index 5e64b3e..68e3991 100644 --- a/repository/Grafoscopio-Utils/GrafoscopioDocumentation.class.st +++ b/repository/Grafoscopio-Utils/GrafoscopioDocumentation.class.st @@ -139,6 +139,20 @@ GrafoscopioDocumentation >> openNotebookAt: index [ ifFalse: [ self updateUI ]] ] +{ #category : #updating } +GrafoscopioDocumentation >> registerIntoDockingBar [ + "I detect if any of the documents that are part of my collection contains any metadata + indicating if they should be registered in the main docking bar, and in such case, I add them." + self documents + do: [ :doc | | metadata currentNotebook | + currentNotebook := GrafoscopioNotebook new loadFromFile: self localPlace / doc. + metadata := currentNotebook metadata. + metadata ifNotNil: [ + metadata + at: 'showOnHelp' + ifPresent: [ GrafoscopioDockingBar addToHelpMenu: currentNotebook ] ] ] +] + { #category : #accessing } GrafoscopioDocumentation >> repository [ ^ repository