public void installCellInfo(SNode child, EditorCell editorCell) { editorCell.setSubstituteInfo( new DefaultChildSubstituteInfo( myOwnerNode, myContainmentLink.getDeclarationNode(), myEditorContext)); if (editorCell.getRole() == null) { editorCell.setRole("left"); } DeleteLogicalOperator.setCellActions(editorCell, myOwnerNode, myEditorContext); }
private EditorCell createComponent_iyfdbj_c0(EditorContext editorContext, SNode node) { EditorCell editorCell = editorContext .getCellFactory() .createEditorComponentCell(node, "jetbrains.mps.lang.core.editor.alias"); Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell); style.set(StyleAttributes.EDITABLE, 0, true); style.set(StyleAttributes.RT_ANCHOR_TAG, 0, "ext_4_RTransform"); editorCell.getStyle().putAll(style); DeleteLogicalOperator.setCellActions(editorCell, node, editorContext); editorCell.setSubstituteInfo( new CompositeSubstituteInfo( editorContext, new BasicCellContext(node), new SubstituteInfoPartExt[] { new LogicalOperator_Editor.ReplaceWith_LogicalOperator_cellMenu_iyfdbj_a0c0() })); return editorCell; }