Allow creating wikidocs in shared libraries
Currently the logic in org.simantics.document.ui.function.All
does not properly handle wiki document creation in shared libraries.
onCreateDocumentButton
only look for a containing Model from the input but. It should be looking for an L0.IndexRoot
instead.
There's also some consolidation work to do for the code in org.simantics.document.ui.function.All
.
org.simantics.document.DocumentUtils
:
-
getDocumentWikiText
should ensureSceneGraphLoaderProcess
is disposed under all conditions -
indexRootPath
should usePossibleVariableIndexRoot
to work with more Variable inputs