private EditorCell createConstant_58m68g_a1a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "re");
   editorCell.setCellId("Constant_58m68g_a1a");
   Style style = new StyleImpl();
   style.set(
       StyleAttributes.getInstance()
           .<String>getAttribute(
               "jetbrains.mps.lang.editor.styleTests", "test-inherited-attribute"),
       0,
       TestConceptWithStyleAttributes_Editor._StyleParameter_QueryFunction_58m68g_a0a1a(
           (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_a1a1a(
           (editorCell == null ? null : editorCell.getContext()),
           (editorCell == null ? null : editorCell.getSNode())));
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
Example #2
0
 private EditorCell createConstant_aryab1_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "ITestCase");
   editorCell.setCellId("Constant_aryab1_a0");
   Style style = new StyleImpl();
   style.set(
       StyleAttributes.STRIKE_OUT,
       0,
       TestCaseRef_Editor._StyleParameter_QueryFunction_aryab1_a0a0(
           (editorCell == null ? null : editorCell.getContext()),
           (editorCell == null ? null : editorCell.getSNode())));
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_p7dwc8_c0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ")");
   editorCell.setCellId("Constant_p7dwc8_c0");
   Style style = new StyleImpl();
   style.set(StyleAttributes.PUNCTUATION_LEFT, 0, true);
   style.set(
       StyleAttributes.INDENT_LAYOUT_NEW_LINE,
       0,
       ExportScopeNamespace_Editor._StyleParameter_QueryFunction_p7dwc8_a1c0(
           (editorCell == null ? null : editorCell.getContext()),
           (editorCell == null ? null : editorCell.getSNode())));
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_40aq2x_c0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ";");
   editorCell.setCellId("Constant_40aq2x_c0");
   Style style = new StyleImpl();
   XmlSS_StyleSheet.applyXmlEntityRef(style, editorCell);
   style.set(StyleAttributes.PUNCTUATION_LEFT, true);
   style.set(
       StyleAttributes.PUNCTUATION_RIGHT,
       XmlEntityRef_Editor._StyleParameter_QueryFunction_40aq2x_a1c0(
           (editorCell == null ? null : editorCell.getSNode()),
           (editorCell == null ? null : editorCell.getContext())));
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_poez2y_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "&");
   editorCell.setCellId("Constant_poez2y_a0");
   Style style = new StyleImpl();
   XmlSS_StyleSheet.applyXmlAttrEntityRefValue(style, editorCell);
   style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
   style.set(
       StyleAttributes.PUNCTUATION_LEFT,
       XmlEntityRefValue_Editor._StyleParameter_QueryFunction_poez2y_a1a0(
           (editorCell == null ? null : editorCell.getContext()),
           (editorCell == null ? null : editorCell.getSNode())));
   editorCell.getStyle().putAll(style);
   delete_XmlEntityRefValueDelete.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_fao2ea_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "{");
   editorCell.setCellId("Constant_fao2ea_a0");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_LeftBrace(style, editorCell);
   style.set(
       StyleAttributes.INDENT_LAYOUT_NEW_LINE,
       0,
       BaseMethodDeclaration_BodyComponent._StyleParameter_QueryFunction_fao2ea_a0a0(
           (editorCell == null ? null : editorCell.getContext()),
           (editorCell == null ? null : editorCell.getSNode())));
   style.set(StyleAttributes.RT_ANCHOR_TAG, 0, "ext_5_RTransform");
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_eb7h0d_a4a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "{");
   editorCell.setCellId("Constant_eb7h0d_a4a");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_LeftBrace(style, editorCell);
   style.set(
       StyleAttributes.INDENT_LAYOUT_NEW_LINE,
       0,
       IfStatement_Editor._StyleParameter_QueryFunction_eb7h0d_a0a4a(
           (editorCell == null ? null : editorCell.getContext()),
           (editorCell == null ? null : editorCell.getSNode())));
   editorCell.getStyle().putAll(style);
   UnwrapStatementListContainer.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_lbdr4h_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "%(");
   editorCell.setCellId("Constant_lbdr4h_a0");
   Style style = new StyleImpl();
   style.set(
       StyleAttributes.TEXT_COLOR,
       StyleRegistry.getInstance()
           .getSimpleColor(
               Antiquotation_Editor._StyleParameter_QueryFunction_lbdr4h_a0a0(
                   (editorCell == null ? null : editorCell.getContext()),
                   (editorCell == null ? null : editorCell.getSNode()))));
   style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
   editorCell.getStyle().putAll(style);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_c4imx1_f0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, " */");
   editorCell.setCellId("Constant_c4imx1_f0");
   Style style = new StyleImpl();
   DocumentationCommentStyleSheet_StyleSheet.apply_Comment(style, editorCell);
   style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, 0, true);
   style.set(
       StyleAttributes.INDENT_LAYOUT_ON_NEW_LINE,
       0,
       FieldDocComment_Editor._StyleParameter_QueryFunction_c4imx1_a1f0(
           (editorCell == null ? null : editorCell.getContext()),
           (editorCell == null ? null : editorCell.getSNode())));
   editorCell.getStyle().putAll(style);
   RemoveDocComment.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_c4imx1_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "/**");
   editorCell.setCellId("Constant_c4imx1_a0");
   Style style = new StyleImpl();
   DocumentationCommentStyleSheet_StyleSheet.apply_Comment(style, editorCell);
   style.set(
       StyleAttributes.INDENT_LAYOUT_NEW_LINE,
       0,
       FieldDocComment_Editor._StyleParameter_QueryFunction_c4imx1_a0a0(
           (editorCell == null ? null : editorCell.getContext()),
           (editorCell == null ? null : editorCell.getSNode())));
   editorCell.getStyle().putAll(style);
   if (renderingCondition_c4imx1_a0a(node, editorContext)) {
     editorCell.getStyle().set(StyleAttributes.FOCUS_POLICY, FocusPolicy.ATTRACTS_RECURSIVELY);
   }
   RemoveDocComment.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }