mirror of
https://github.com/DanilaFe/abacus
synced 2024-11-16 23:53:09 -08:00
Add documentation loading for functions.
This commit is contained in:
parent
1a47e07e97
commit
1f0addccea
|
@ -6,6 +6,6 @@ package org.nwapw.abacus.function;
|
|||
*/
|
||||
public enum DocumentationType {
|
||||
|
||||
FUNCTION
|
||||
FUNCTION, TREE_VALUE_FUNCTION
|
||||
|
||||
}
|
||||
|
|
|
@ -360,6 +360,8 @@ public class AbacusController implements PluginListener {
|
|||
PluginManager pluginManager = abacus.getPluginManager();
|
||||
functionList.addAll(manager.getAllFunctions().stream().map(name -> pluginManager.documentationFor(name, DocumentationType.FUNCTION))
|
||||
.collect(Collectors.toCollection(ArrayList::new)));
|
||||
functionList.addAll(manager.getAllTreeValueFunctions().stream().map(name -> pluginManager.documentationFor(name, DocumentationType.TREE_VALUE_FUNCTION))
|
||||
.collect(Collectors.toCollection(ArrayList::new)));
|
||||
functionList.sort(Comparator.comparing(Documentation::getCodeName));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user