package jetbrains.mps.lang.editor.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.EditorManager; import jetbrains.mps.openapi.editor.update.AttributeKind; /*package*/ class MigratedSideTransformMenuAttribute_EditorBuilder_a extends AbstractEditorBuilder { @NotNull private SNode myNode; public MigratedSideTransformMenuAttribute_EditorBuilder_a(@NotNull EditorContext context, @NotNull SNode node) { super(context); myNode = node; } @NotNull @Override public SNode getNode() { return myNode; } /*package*/ EditorCell createCell() { return createAttributedNodeCell_7l7okl_a(); } private EditorCell createAttributedNodeCell_7l7okl_a() { EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext()); EditorCell editorCell = getUpdateSession().getAttributedCell(AttributeKind.NODE, myNode); editorCell.setBig(true); editorCell.setCellContext(getCellFactory().getCellContext()); return editorCell; } }