Beispiel #1
0
 @Override
 protected void doExecute(AnActionEvent e, Map<String, Object> params) {
   SNode result = NodeFactoryManager.createNode(myConcept, null, null, myModel);
   myModel.addRootNode(result);
   if (myNewRootCallback != null) {
     myNewRootCallback.set(result);
   }
 }
 public SNode createNodeToInsert(EditorContext editorContext) {
   return NodeFactoryManager.createNode(
       MetaAdapterFactory.getConcept(
           0xf3061a5392264cc5L,
           0xa443f952ceaf5816L,
           0x114a71b1af4L,
           "jetbrains.mps.baseLanguage.structure.AnnotationInstanceValue"),
       null,
       getNode(),
       getNode().getModel());
 }
 public SNode createNodeToInsert(EditorContext editorContext) {
   return NodeFactoryManager.createNode(
       MetaAdapterFactory.getConcept(
           0x798100da4f0a421aL,
           0xb99171f8c50ce5d2L,
           0x5c860be1bc5cc1c8L,
           "jetbrains.mps.build.structure.GeneratorInternal_IWorkflowParticipantReference"),
       null,
       getNode(),
       getNode().getModel());
 }
 public SNode createNodeToInsert(EditorContext editorContext) {
   SNode listOwner = super.getOwner();
   return NodeFactoryManager.createNode(listOwner, editorContext, super.getElementRole());
 }