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;
  }
Пример #2
0
 private EditorCell createConstant_x0ve1k_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "Library");
   editorCell.setCellId("Constant_x0ve1k_a0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_i2dquw_a6a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "on deactivate");
   editorCell.setCellId("Constant_i2dquw_a6a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_u56bem_d0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "as");
   editorCell.setCellId("Constant_u56bem_d0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
   style.set(StyleAttributes.PADDING_LEFT, new Padding(1.0, Measure.SPACES));
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
Пример #5
0
 private EditorCell createConstant_x0ve1k_e0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "end");
   editorCell.setCellId("Constant_x0ve1k_e0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
   style.set(StyleAttributes.MATCHING_LABEL, 0, "library-block");
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createComponent_col7k7_a0a(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);
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
 private EditorCell createConstant_42zii1_a1a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell =
       new EditorCell_Constant(editorContext, node, "persistent properties:");
   editorCell.setCellId("Constant_42zii1_a1a0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_obn5mp_e0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ">");
   editorCell.setCellId("Constant_obn5mp_e0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
   style.set(StyleAttributes.PUNCTUATION_LEFT, true);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createComponent_c6z1wa_a0(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.PADDING_RIGHT, 0, new Padding(0.0, Measure.SPACES));
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
Пример #10
0
 private EditorCell createConstant_2konf7_b1a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "run");
   editorCell.setCellId("Constant_2konf7_b1a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   editorCell.setSubstituteInfo(
       new CompositeSubstituteInfo(
           editorContext,
           new BasicCellContext(node),
           new SubstituteInfoPartExt[] {
             new ComplexCanRunAndDebug.RunConfigurationExecutor_generic_cellMenu_2konf7_a0b1a()
           }));
   return editorCell;
 }
Пример #11
0
 private EditorCell createConstant_x0qgth_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "info");
   editorCell.setCellId("Constant_x0qgth_a0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   editorCell.setSubstituteInfo(
       new CompositeSubstituteInfo(
           editorContext,
           new BasicCellContext(node),
           new SubstituteInfoPartExt[] {
             new InfoStatement_Editor.ReplaceWith_WarningStatement_cellMenu_x0qgth_a0a0(),
             new InfoStatement_Editor.ReplaceWith_ReportErrorStatement_cellMenu_x0qgth_b0a0()
           }));
   return editorCell;
 }
Пример #12
0
 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;
 }
 private EditorCell createComponent_v6pnhl_a0(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, false);
   style.set(StyleAttributes.PADDING_RIGHT, new Padding(0.0, Measure.SPACES));
   editorCell.getStyle().putAll(style);
   editorCell.setSubstituteInfo(
       new CompositeSubstituteInfo(
           editorContext,
           new BasicCellContext(node),
           new SubstituteInfoPartExt[] {
             new AbstractContainerType_Editor
                 .AbstractContainerType_component_cellMenu_v6pnhl_a0a0()
           }));
   return editorCell;
 }