add a new file in the sandbox in language generation aspect

Hello foroum!
I tried to add a new file to my sandbox when clicking on build sandbox model.

following code
model.add root(mynode)

Unfortunately, no new file appears in the sandbox.

Can someone pls point me into the right direction

Comment actions Permalink
Here's what I've tried

ModelAccess.instance().runWriteActionInCommand(new Runnable() { 
  public void run() { 
    node<Inputs> inputs = new node<Inputs>(); = "Hello World"; 
    SNode result = (SNode) NodeFactoryManager.createNode(concept/Inputs/, null, null, this.rootNode.model); root node(Inputs); 
    this.rootNode.model.add root(result); 

Unfortunately, none of them works. I followed that:
and that
Comment actions Permalink
Where are you calling the code from? What is the model?
Comment actions Permalink
I have a separate model called 'plugin', where the IDEA plugin button is stored.
Then in another model called 'sandbox' the user clicks this button and then it imports data from xml and create new root concepts of "Inputs" (filled with the xml data) in separate files in the 'sandbox' model.
Comment actions Permalink
thanks to @Daniel Ratiu
Solved it using
add to mbeddrPlatforumModelGroup at position <default>
in my action group and adding following code in my write action

write action { 
  this.mod.add root(new node<Inputs>()); 

Please sign in to leave a comment.