Grind join up to date with KActions

This commit is contained in:
Alexander Nozik 2017-10-08 11:52:22 +03:00
parent d3a58af577
commit 23b4fc0246

View File

@ -44,14 +44,14 @@ public class Numass {
public static void printDescription(Context context) throws DescriptorException { public static void printDescription(Context context) throws DescriptorException {
MarkupBuilder builder = new MarkupBuilder() MarkupBuilder builder = new MarkupBuilder()
.addText("***Data description***", "red") .text("***Data description***", "red")
.ln() .ln()
.addText("\t") .text("\t")
.addContent( .content(
MarkupUtils.markupDescriptor(DescriptorUtils.buildDescriptor("method::hep.dataforge.data.DataManager.read")) MarkupUtils.markupDescriptor(DescriptorUtils.buildDescriptor("method::hep.dataforge.data.DataManager.read"))
) )
.ln() .ln()
.addText("***Allowed actions***", "red") .text("***Allowed actions***", "red")
.ln(); .ln();
@ -60,10 +60,10 @@ public class Numass {
am.getAllActions() am.getAllActions()
.map(name -> am.optAction(name).get()) .map(name -> am.optAction(name).get())
.map(action -> ActionDescriptor.build(action)).forEach(descriptor -> .map(action -> ActionDescriptor.build(action)).forEach(descriptor ->
builder.addText("\t").addContent(MarkupUtils.markupDescriptor(descriptor)) builder.text("\t").content(MarkupUtils.markupDescriptor(descriptor))
); );
builder.addText("***End of actions list***", "red"); builder.text("***End of actions list***", "red");
context.io().getMarkupRenderer().render(builder.build()); context.io().getMarkupRenderer().render(builder.build());