private EditorCell createCollection_58m68g_b0(EditorContext editorContext, SNode node) { EditorCell_Collection editorCell = EditorCell_Collection.createIndent2(editorContext, node); editorCell.setCellId("Collection_58m68g_b0"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, 0, false); style.set( StyleAttributes.getInstance() .<String>getAttribute( "jetbrains.mps.lang.editor.styleTests", "test-inherited-attribute"), 0, TestConceptWithStyleAttributes_Editor._StyleParameter_QueryFunction_58m68g_a1b0( (editorCell == null ? null : editorCell.getContext()), (editorCell == null ? null : editorCell.getSNode()))); style.set( StyleAttributes.getInstance() .<Boolean>getAttribute("jetbrains.mps.lang.editor.styleTests", "test-simple-attribute"), 0, TestConceptWithStyleAttributes_Editor._StyleParameter_QueryFunction_58m68g_a2b0( (editorCell == null ? null : editorCell.getContext()), (editorCell == null ? null : editorCell.getSNode()))); editorCell.getStyle().putAll(style); editorCell.addEditorCell(this.createConstant_58m68g_a1a(editorContext, node)); editorCell.addEditorCell(this.createConstant_58m68g_b1a(editorContext, node)); editorCell.addEditorCell(this.createCollection_58m68g_c1a(editorContext, node)); return editorCell; }
private EditorCell createCollection_eb7h0d_b4a(EditorContext editorContext, SNode node) { EditorCell_Collection editorCell = EditorCell_Collection.createIndent2(editorContext, node); editorCell.setCellId("Collection_eb7h0d_b4a"); Style style = new StyleImpl(); style.set(StyleAttributes.SELECTABLE, 0, false); style.set( StyleAttributes.INDENT_LAYOUT_NEW_LINE, 0, IfStatement_Editor._StyleParameter_QueryFunction_eb7h0d_a1b4a( (editorCell == null ? null : editorCell.getContext()), (editorCell == null ? null : editorCell.getSNode()))); style.set( StyleAttributes.INDENT_LAYOUT_INDENT, 0, IfStatement_Editor._StyleParameter_QueryFunction_eb7h0d_a2b4a( (editorCell == null ? null : editorCell.getContext()), (editorCell == null ? null : editorCell.getSNode()))); editorCell.getStyle().putAll(style); editorCell.addEditorCell(this.createRefNode_eb7h0d_a1e0(editorContext, node)); return editorCell; }
private EditorCell createRefNodeList_c4imx1_d0(EditorContext editorContext, SNode node) { AbstractCellListHandler handler = new FieldDocComment_Editor.tagsListHandler_c4imx1_d0(node, "tags", editorContext); EditorCell_Collection editorCell = handler.createCells(editorContext, new CellLayout_Vertical(), false); editorCell.setCellId("refNodeList_tags"); Style style = new StyleImpl(); DocumentationCommentStyleSheet_StyleSheet.apply_Comment(style, editorCell); style.set( StyleAttributes.INDENT_LAYOUT_NEW_LINE, 0, FieldDocComment_Editor._StyleParameter_QueryFunction_c4imx1_a0d0( (editorCell == null ? null : editorCell.getContext()), (editorCell == null ? null : editorCell.getSNode()))); style.set( StyleAttributes.INDENT_LAYOUT_INDENT, 0, FieldDocComment_Editor._StyleParameter_QueryFunction_c4imx1_a1d0( (editorCell == null ? null : editorCell.getContext()), (editorCell == null ? null : editorCell.getSNode()))); editorCell.getStyle().putAll(style); editorCell.setRole(handler.getElementRole()); return editorCell; }