package jetbrains.mps.lang.editor.editorTest.editor; /*Generated by MPS */ import jetbrains.mps.editor.runtime.descriptor.AbstractEditorBuilder; import org.jetbrains.annotations.NotNull; import org.jetbrains.mps.openapi.model.SNode; import jetbrains.mps.openapi.editor.EditorContext; import jetbrains.mps.openapi.editor.cells.EditorCell; import jetbrains.mps.nodeEditor.cells.EditorCell_Collection; import jetbrains.mps.nodeEditor.cellLayout.CellLayout_Indent; import jetbrains.mps.nodeEditor.cellMenu.CompositeSubstituteInfo; import jetbrains.mps.nodeEditor.cellMenu.BasicCellContext; import jetbrains.mps.nodeEditor.cellMenu.SubstituteInfoPartExt; import jetbrains.mps.nodeEditor.cellMenu.SChildSubstituteInfoPartEx; import jetbrains.mps.lang.editor.generator.internal.AbstractCellMenuPart_ReplaceNode_CustomNodeConcept; import org.jetbrains.mps.openapi.language.SAbstractConcept; import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory; import jetbrains.mps.nodeEditor.cells.EditorCell_Constant; /*package*/ class SubstTestChild_WithNextApplicableEditorAndMenu_1_specificHint_EditorBuilder_a extends AbstractEditorBuilder { @NotNull private SNode myNode; public SubstTestChild_WithNextApplicableEditorAndMenu_1_specificHint_EditorBuilder_a(@NotNull EditorContext context, @NotNull SNode node) { super(context); myNode = node; } @NotNull @Override public SNode getNode() { return myNode; } /*package*/ EditorCell createCell() { return createCollection_eiugxc_a(); } private EditorCell createCollection_eiugxc_a() { EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent()); editorCell.setCellId("Collection_eiugxc_a"); editorCell.setBig(true); editorCell.setCellContext(getCellFactory().getCellContext()); editorCell.addEditorCell(createNextEditor_eiugxc_a0()); editorCell.addEditorCell(createConstant_eiugxc_b0()); return editorCell; } private EditorCell createNextEditor_eiugxc_a0() { { EditorCell editorCell = getCellFactory().createEditorCell(myNode, false, SubstTestChild_WithNextApplicableEditorAndMenu_1_specificHint_Editor.class); editorCell.setSubstituteInfo(new CompositeSubstituteInfo(getEditorContext(), new BasicCellContext(myNode), new SubstituteInfoPartExt[]{new SubstTestChild_WithNextApplicableEditorAndMenu_1_specificHint_EditorBuilder_a.ReplaceWith_SubstTestChild_WithNextApplicableEditorAndMenu_2_cellMenu_eiugxc_a0a0(), new SChildSubstituteInfoPartEx(editorCell)})); return editorCell; } } public static class ReplaceWith_SubstTestChild_WithNextApplicableEditorAndMenu_2_cellMenu_eiugxc_a0a0 extends AbstractCellMenuPart_ReplaceNode_CustomNodeConcept { public ReplaceWith_SubstTestChild_WithNextApplicableEditorAndMenu_2_cellMenu_eiugxc_a0a0() { } public SAbstractConcept getReplacementConcept() { return MetaAdapterFactory.getConcept(0x81f0abb8d71e4d13L, 0xa0c1d2291fbb28b7L, 0x818e8ddb10b1390L, "jetbrains.mps.lang.editor.editorTest.structure.SubstTestChild_WithNextApplicableEditorAndMenu_2"); } } private EditorCell createConstant_eiugxc_b0() { EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "child with next applicable editor and menu 1"); editorCell.setCellId("Constant_eiugxc_b0"); editorCell.setDefaultText(""); return editorCell; } }