private EditorCell createReadOnlyModelAccessor_7k9x8q_a0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return (String)
                    INodeWithReference__BehaviorDescriptor.getTextWhenBroken_idigjXyuNrou.invoke(
                        node);
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_7k9x8q_a0");
    Style style = new StyleImpl();
    style.set(
        StyleAttributes.TEXT_COLOR, 0, StyleRegistry.getInstance().getSimpleColor(MPSColors.gray));
    editorCell.getStyle().putAll(style);
    return editorCell;
  }
Example #2
0
  private EditorCell createReadOnlyModelAccessor_rnm7c_a(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return SPropertyOperations.getString(
                    SNodeOperations.getConceptDeclaration(node), "conceptAlias");
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setCellId("ALIAS_EDITOR_COMPONENT");
    Style style = new StyleImpl();
    style.set(StyleAttributes.FONT_STYLE, MPSFonts.BOLD);
    editorCell.getStyle().putAll(style);
    return editorCell;
  }
  private EditorCell createReadOnlyModelAccessor_ldr481_y0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return "\""
                    + ReplaceRegexpOperation_Behavior.call_getReplacementString_3796137614137207007(
                        node)
                    + "\"";
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_ldr481_y0");
    return editorCell;
  }
  private EditorCell createReadOnlyModelAccessor_ns5ajd_b0() {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            getEditorContext(),
            new ModelAccessor() {
              public String getText() {
                return IModuleRef__BehaviorDescriptor.moduleReference_id173Z5qAOun8
                    .invoke(myNode)
                    .getModuleName();
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            myNode);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setSubstituteInfo(
        new CompositeSubstituteInfo(
            getEditorContext(),
            new BasicCellContext(myNode),
            new SubstituteInfoPartExt[] {
              new SolutionRef_EditorBuilder_a.ReplaceWith_SolutionRef_cellMenu_ns5ajd_a0b0(),
              new SChildSubstituteInfoPartEx(editorCell)
            }));
    editorCell.setCellId("ReadOnlyModelAccessor_ns5ajd_b0");
    return editorCell;
  }
  private EditorCell createReadOnlyModelAccessor_lbdr4h_f0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                SNode parent = SNodeOperations.getParent(node);
                if ((parent != null)) {
                  return parent.getRoleInParent();
                } else {
                  return "";
                }
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_lbdr4h_f0");
    Style style = new StyleImpl();
    style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
    editorCell.getStyle().putAll(style);
    return editorCell;
  }
  private EditorCell createReadOnlyModelAccessor_n2wc8f_a0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return (SPropertyOperations.getString(
                            node,
                            MetaAdapterFactory.getProperty(
                                0xceab519525ea4f22L,
                                0x9b92103b95ca8c0cL,
                                0x10802efe25aL,
                                0x10d34fa226eL,
                                "alias"))
                        != null
                    ? SPropertyOperations.getString(
                        node,
                        MetaAdapterFactory.getProperty(
                            0xceab519525ea4f22L,
                            0x9b92103b95ca8c0cL,
                            0x10802efe25aL,
                            0x10d34fa226eL,
                            "alias"))
                    : SPropertyOperations.getString(
                        SNodeOperations.getConceptDeclaration(node),
                        MetaAdapterFactory.getProperty(
                            0xc72da2b97cce4447L,
                            0x8389f407dc1158b7L,
                            0x1103553c5ffL,
                            0x46ab0ad5826c74caL,
                            "conceptAlias")));
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setSubstituteInfo(
        new CompositeSubstituteInfo(
            editorContext,
            new BasicCellContext(node),
            new SubstituteInfoPartExt[] {
              new CustomMapCreator_component.ReplaceWith_HashMapCreator_cellMenu_n2wc8f_a0a0()
            }));
    editorCell.setCellId("ReadOnlyModelAccessor_n2wc8f_a0");
    Style style = new StyleImpl();
    BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
    style.set(StyleAttributes.PADDING_RIGHT, 0, new Padding(0.0, Measure.SPACES));
    style.set(StyleAttributes.RT_ANCHOR_TAG, 0, "ext_1_RTransform");
    editorCell.getStyle().putAll(style);
    return editorCell;
  }
Example #7
0
  private EditorCell createModelAccess_58c6e4_b1a(
      final EditorContext editorContext, final SNode node) {
    ModelAccessor modelAccessor =
        new ModelAccessor() {
          public String getText() {
            return (boolean)
                    NodesTestCase__BehaviorDescriptor.needsWriteAction_id5vTxdEzuQjU.invoke(node)
                + "";
          }

          public void setText(String text) {
            if (text.equals("true")) {
              SPropertyOperations.set(
                  node,
                  MetaAdapterFactory.getProperty(
                      0x8585453e6bfb4d80L,
                      0x98deb16074f1d86cL,
                      0x11b55b49e46L,
                      0x57f984daa37add4aL,
                      "needsNoWriteAction"),
                  "" + (false));
            } else if (text.equals("false")) {
              SPropertyOperations.set(
                  node,
                  MetaAdapterFactory.getProperty(
                      0x8585453e6bfb4d80L,
                      0x98deb16074f1d86cL,
                      0x11b55b49e46L,
                      0x57f984daa37add4aL,
                      "needsNoWriteAction"),
                  "" + (true));
            }
          }

          public boolean isValidText(String text) {
            return text.equals("true") || text.equals("false");
          }
        };
    EditorCell_Property editorCell = EditorCell_Property.create(editorContext, modelAccessor, node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setCellId("ModelAccess_58c6e4_b1a");
    editorCell.setDefaultText(" ");
    editorCell.setSubstituteInfo(
        new CompositeSubstituteInfo(
            editorContext,
            new BasicCellContext(node),
            new SubstituteInfoPartExt[] {
              new NodesTestCase_Editor.NodesTestCase_generic_cellMenu_58c6e4_a0b1a(),
              new NodesTestCase_Editor.NodesTestCase_generic_cellMenu_58c6e4_b0b1a()
            }));
    return editorCell;
  }
Example #8
0
  private EditorCell createModelAccess_58c6e4_b0a(
      final EditorContext editorContext, final SNode node) {
    ModelAccessor modelAccessor =
        new ModelAccessor() {
          public String getText() {
            return (boolean)
                    ITestCase__BehaviorDescriptor.canRunInProcess_id5_jSk8paieB.invoke(node)
                + "";
          }

          public void setText(String text) {
            if (text.equals("true")) {
              SPropertyOperations.set(
                  node,
                  MetaAdapterFactory.getProperty(
                      0xf61473f9130f42f6L,
                      0xb98d6c438812c2f6L,
                      0x11b2709bd56L,
                      0x59337dc8dffe0d9dL,
                      "canNotRunInProcess"),
                  "" + (false));
            } else if (text.equals("false")) {
              SPropertyOperations.set(
                  node,
                  MetaAdapterFactory.getProperty(
                      0xf61473f9130f42f6L,
                      0xb98d6c438812c2f6L,
                      0x11b2709bd56L,
                      0x59337dc8dffe0d9dL,
                      "canNotRunInProcess"),
                  "" + (true));
            }
          }

          public boolean isValidText(String text) {
            return text.equals("true") || text.equals("false");
          }
        };
    EditorCell_Property editorCell = EditorCell_Property.create(editorContext, modelAccessor, node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setCellId("ModelAccess_58c6e4_b0a");
    editorCell.setDefaultText(" ");
    editorCell.setSubstituteInfo(
        new CompositeSubstituteInfo(
            editorContext,
            new BasicCellContext(node),
            new SubstituteInfoPartExt[] {
              new NodesTestCase_Editor.NodesTestCase_generic_cellMenu_58c6e4_a0b0a(),
              new NodesTestCase_Editor.NodesTestCase_generic_cellMenu_58c6e4_b0b0a()
            }));
    return editorCell;
  }
  private EditorCell createReadOnlyModelAccessor_ldr481_w0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return (BehaviorReflection.invokeVirtual(
                        Boolean.TYPE,
                        SLinkOperations.getTarget(
                            node,
                            MetaAdapterFactory.getContainmentLink(
                                0xdaafa647f1f74b0bL,
                                0xb09669cd7c8408c0L,
                                0x34ae970c1923d18aL,
                                0x34ae970c1924ee3bL,
                                "search")),
                        "virtual_isValid_4759120547781297301",
                        new Object[] {})
                    ? "/"
                        + BehaviorReflection.invokeVirtual(
                            String.class,
                            SLinkOperations.getTarget(
                                node,
                                MetaAdapterFactory.getContainmentLink(
                                    0xdaafa647f1f74b0bL,
                                    0xb09669cd7c8408c0L,
                                    0x34ae970c1923d18aL,
                                    0x34ae970c1924ee3bL,
                                    "search")),
                            "virtual_toString_1213877429451",
                            new Object[] {})
                        + "/"
                    : "<invalid>");
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_ldr481_w0");
    Style style = new StyleImpl();
    style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, 0, true);
    editorCell.getStyle().putAll(style);
    return editorCell;
  }
  private EditorCell createReadOnlyModelAccessor_ejkdta_b0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return BehaviorReflection.invokeVirtualStatic(
                    String.class,
                    SConceptRepository.getInstance()
                        .getConcept(
                            NameUtil.nodeFQName(SNodeOperations.getConceptDeclaration(node))),
                    "virtual_getOp_1262430001741497951",
                    new Object[] {});
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_ejkdta_b0");
    Style style = new StyleImpl();
    BashLanguageStyle_StyleSheet.applyOperator(style, editorCell);
    editorCell.getStyle().putAll(style);
    return editorCell;
  }
Example #11
0
  private EditorCell createReadOnlyModelAccessor_mtiojs_a(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return EditorCellModel_Behavior.call_getOpeningTag_1220340471382(node);
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_mtiojs_a");
    Style style = new StyleImpl();
    Styles_StyleSheet.applyBordered(style, editorCell);
    style.set(
        StyleAttributes.BACKGROUND_COLOR,
        StyleRegistry.getInstance()
            .getSimpleColor(
                _OpenTag._StyleParameter_QueryFunction_mtiojs_a0a(
                    (editorCell == null ? null : editorCell.getContext()),
                    (editorCell == null ? null : editorCell.getSNode()))));
    style.set(StyleAttributes.EDITABLE, false);
    editorCell.getStyle().putAll(style);
    return editorCell;
  }
    private EditorCell createReadOnlyModelAccessor_h52dks_a0a0(
        final EditorContext editorContext, final SNode node) {
      EditorCell_Property editorCell =
          EditorCell_Property.create(
              editorContext,
              new ModelAccessor() {
                public String getText() {
                  return ((SLinkOperations.getTarget(node, "declaration", false) != null)
                      ? SPropertyOperations.getString(
                          SLinkOperations.getTarget(node, "declaration", false), "name")
                      : "<unknown>");
                }

                public void setText(String s) {}

                public boolean isValidText(String s) {
                  return EqualUtil.equals(s, getText());
                }
              },
              node);
      editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
      editorCell.setCellId("ReadOnlyModelAccessor_h52dks_a0a0");
      if (editorCell.getRole() == null) {
        editorCell.setReferenceCell(true);
        editorCell.setRole("importClause");
      }
      return editorCell;
    }
  private EditorCell createReadOnlyModelAccessor_5c1jtb_b0a(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return BehaviorReflection.invokeVirtual(
                    String.class,
                    SLinkOperations.getTarget(
                        SNodeOperations.getAncestor(
                            node,
                            "jetbrains.mps.ui.modeling.structure.EventHandlerTemplate",
                            false,
                            false),
                        "producerType",
                        true),
                    "virtual_getPresentation_1213877396640",
                    new Object[] {});
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_5c1jtb_b0a");
    return editorCell;
  }
  private EditorCell createReadOnlyModelAccessor_clzyhh_a0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return BehaviorReflection.invokeVirtual(
                    String.class,
                    node,
                    "virtual_getTextWhenBroken_328850564593858078",
                    new Object[] {});
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_clzyhh_a0");
    Style style = new StyleImpl();
    style.set(
        StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.darkGray));
    editorCell.getStyle().putAll(style);
    return editorCell;
  }
Example #15
0
  private EditorCell createReadOnlyModelAccessor_ns5ajd_b0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return BehaviorReflection.invokeVirtual(
                        SModuleReference.class,
                        node,
                        "virtual_moduleReference_1280144168199513544",
                        new Object[] {})
                    .getModuleName();
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setSubstituteInfo(
        new CompositeSubstituteInfo(
            editorContext,
            new BasicCellContext(node),
            new SubstituteInfoPartExt[] {
              new SolutionRef_Editor.ReplaceWith_SolutionRef_cellMenu_ns5ajd_a0b0()
            }));
    editorCell.setCellId("ReadOnlyModelAccessor_ns5ajd_b0");
    return editorCell;
  }
Example #16
0
  private EditorCell createReadOnlyModelAccessor_91bvrs_a0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return ((SLinkOperations.getTarget(node, "classifier", false) != null)
                    ? BehaviorReflection.invokeVirtual(
                        String.class,
                        SLinkOperations.getTarget(node, "classifier", false),
                        "virtual_getFqName_1213877404258",
                        new Object[] {})
                    : "<unknown>");
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_91bvrs_a0");
    return editorCell;
  }
  private EditorCell createReadOnlyModelAccessor_ktoyyv_c0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                SNode target =
                    AbstractNodeReference__BehaviorDescriptor.tryToFindNode_id6szrkDoc2K7.invoke(
                        node, SNodeOperations.getModel(node).getModule().getRepository());
                if ((target != null)) {
                  return NodeReferenceUtil.getNodePresentation(target);
                } else {
                  return SPropertyOperations.getString(
                      node,
                      MetaAdapterFactory.getProperty(
                          0x9074634404fd4286L,
                          0x97d5b46ae6a81709L,
                          0x27bf3263be23f0dfL,
                          0x27bf3263be23f299L,
                          "nodeName"));
                }
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_ktoyyv_c0");
    Style style = new StyleImpl();
    style.set(
        StyleAttributes.TEXT_BACKGROUND_COLOR,
        0,
        StyleRegistry.getInstance()
            .getSimpleColor(
                ReflectionNodeReference_Editor._StyleParameter_QueryFunction_ktoyyv_a0c0(
                    (editorCell == null ? null : editorCell.getContext()),
                    (editorCell == null ? null : editorCell.getSNode()))));
    editorCell.getStyle().putAll(style);
    return editorCell;
  }
Example #18
0
  private EditorCell createReadOnlyModelAccessor_879g1p_b0a(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return ((boolean)
                        Regexp__BehaviorDescriptor.isValid_id48bMILtL4il.invoke(
                            SLinkOperations.getTarget(
                                node,
                                MetaAdapterFactory.getContainmentLink(
                                    0xdaafa647f1f74b0bL,
                                    0xb09669cd7c8408c0L,
                                    0x11174a6454dL,
                                    0x11174a66599L,
                                    "regexp")))
                    ? "/"
                        + Regexp__BehaviorDescriptor.toString_idhEwIUjb.invoke(
                            SLinkOperations.getTarget(
                                node,
                                MetaAdapterFactory.getContainmentLink(
                                    0xdaafa647f1f74b0bL,
                                    0xb09669cd7c8408c0L,
                                    0x11174a6454dL,
                                    0x11174a66599L,
                                    "regexp")))
                        + "/"
                    : "<invalid>");
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_879g1p_b0a");
    return editorCell;
  }
    private EditorCell createReadOnlyModelAccessor_7k9x8q_a0b0a(
        final EditorContext editorContext, final SNode node) {
      EditorCell_Property editorCell =
          EditorCell_Property.create(
              editorContext,
              new ModelAccessor() {
                public String getText() {
                  return (String)
                      PastedNodeReference__BehaviorDescriptor.getText_id5Yox2dUTCkJ.invoke(
                          SNodeOperations.asSConcept(
                              MetaAdapterFactory.getConcept(
                                  0xde1ad86d6e504a02L,
                                  0xb306d4d17f64c375L,
                                  0x51132a123c89fa7eL,
                                  "jetbrains.mps.console.base.structure.PastedNodeReference")),
                          node);
                }

                public void setText(String s) {}

                public boolean isValidText(String s) {
                  return EqualUtil.equals(s, getText());
                }
              },
              node);
      editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
      editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
      editorCell.setCellId("ReadOnlyModelAccessor_7k9x8q_a0b0a");
      Style style = new StyleImpl();
      style.set(
          StyleAttributes.TEXT_COLOR,
          0,
          StyleRegistry.getInstance().getSimpleColor(MPSColors.DARK_BLUE));
      style.set(StyleAttributes.UNDERLINED, 0, true);
      style.set(StyleAttributes.EDITABLE, 0, false);
      editorCell.getStyle().putAll(style);
      return editorCell;
    }
  private EditorCell createReadOnlyModelAccessor_gmtuod_c9c0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return ConceptMethodDeclaration_BehaviorDescriptor
                    .getOverridenMethodConceptName_idhP3pnOc.invoke(node);
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setAction(CellActionType.BACKSPACE, EmptyCellAction.getInstance());
    editorCell.setCellId("ReadOnlyModelAccessor_gmtuod_c9c0");
    return editorCell;
  }
  private EditorCell createModelAccess_x1gmbt_a0(
      final EditorContext editorContext, final SNode node) {
    ModelAccessor modelAccessor =
        new ModelAccessor() {
          public String getText() {
            return SPropertyOperations.getString(node, "text");
          }

          public void setText(String text) {
            SPropertyOperations.set(node, "text", text);
            TextCommentPartUtil.processCellText(editorContext, node, text);
          }

          public boolean isValidText(String text) {
            return true;
          }
        };
    EditorCell_Property editorCell = EditorCell_Property.create(editorContext, modelAccessor, node);
    editorCell.setAction(CellActionType.DELETE, EmptyCellAction.getInstance());
    editorCell.setCellId("ModelAccess_x1gmbt_a0");
    editorCell.addKeyMap(new TextCommentLinePart_KeyMap());
    editorCell.setDefaultText("");
    return editorCell;
  }