public static Style getDot(final EditorCell cell) {
   Style style = new Style(cell);
   style.set(StyleAttributes.PUNCTUATION_LEFT, true);
   style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
   style.set(StyleAttributes.SELECTABLE, false);
   return style;
 }
 public static Style getJavaDoc(final EditorCell cell) {
   Style style = new Style(cell);
   style.set(StyleAttributes.TEXT_COLOR, MPSColors.gray);
   style.set(StyleAttributes.FONT_STYLE, MPSFonts.BOLD_ITALIC);
   style.set(StyleAttributes.UNDERLINED, true);
   return style;
 }
Ejemplo n.º 3
0
  private EditorCell createReadOnlyModelAccessor_du6pr9_c2b1b0(
      final EditorContext editorContext, final SNode node) {
    EditorCell_Property editorCell =
        EditorCell_Property.create(
            editorContext,
            new ModelAccessor() {
              public String getText() {
                return "Alt-" + SPropertyOperations.getString(node, "number");
              }

              public void setText(String s) {}

              public boolean isValidText(String s) {
                return EqualUtil.equals(s, this.getText());
              }
            },
            node);
    editorCell.setAction(CellActionType.DELETE, new CellAction_Empty());
    editorCell.setCellId("ReadOnlyModelAccessor_du6pr9_c2b1b0");
    {
      Style style = editorCell.getStyle();
      style.set(StyleAttributes.SELECTABLE, false);
      style.set(StyleAttributes.TEXT_COLOR, MPSColors.darkGray);
    }
    return editorCell;
  }
Ejemplo n.º 4
0
 private EditorCell createProperty_uugm4e_a0a0(EditorContext editorContext, SNode node) {
   CellProviderWithRole provider = new PropertyCellProvider(node, editorContext);
   provider.setRole("elementName");
   provider.setNoTargetText("<no elementName>");
   provider.setReadOnly(true);
   EditorCell editorCell;
   editorCell = provider.createEditorCell(editorContext);
   editorCell.setCellId("property_elementName");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.FONT_STYLE, MPSFonts.BOLD);
     style.set(
         StyleAttributes.TEXT_COLOR,
         new AttributeCalculator<Color>() {
           public Color calculate(EditorCell cell) {
             return ElementReference_Editor._Inline_uugm4e_a0a
                 ._StyleParameter_QueryFunction_uugm4e_a1a0a0(
                     (cell == null ? null : cell.getSNode()),
                     (cell == null ? null : cell.getEditorContext()));
           }
         });
   }
   editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
   SNode attributeConcept = provider.getRoleAttribute();
   Class attributeKind = provider.getRoleAttributeClass();
   if (attributeConcept != null) {
     IOperationContext opContext = editorContext.getOperationContext();
     EditorManager manager = EditorManager.getInstanceFromContext(opContext);
     return manager.createRoleAttributeCell(
         editorContext, attributeConcept, attributeKind, editorCell);
   } else return editorCell;
 }
 public static Style getRightAngleBracket(final EditorCell cell) {
   Style style = new Style(cell);
   style.putAll(BaseLanguageStyle_StyleSheet.getAngleBracket(null));
   style.set(StyleAttributes.PUNCTUATION_LEFT, true);
   style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
   return style;
 }
 public static Style getCommentTag(final EditorCell cell) {
   Style style = new Style(cell);
   style.putAll(DocumentationCommentStyleSheet_StyleSheet.getComment(null));
   style.set(StyleAttributes.FONT_STYLE, MPSFonts.BOLD_ITALIC);
   style.set(StyleAttributes.UNDERLINED, true);
   style.set(StyleAttributes.TEXT_COLOR, MPSColors.gray);
   return style;
 }
Ejemplo n.º 7
0
 private EditorCell createEmpty_sjqidp_a0a(EditorContext editorContext, SNode node) {
   EditorCell_Empty editorCell = new EditorCell_Empty(editorContext, node);
   editorCell.setCellId("Empty_sjqidp_a0a");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.PUNCTUATION_LEFT, true);
     style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
   }
   return editorCell;
 }
Ejemplo n.º 8
0
 private EditorCell createCollection_dqg0vp_i0(EditorContext editorContext, SNode node) {
   EditorCell_Collection editorCell = EditorCell_Collection.createIndent2(editorContext, node);
   editorCell.setCellId("Collection_dqg0vp_i0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, false);
     style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
   }
   editorCell.addEditorCell(this.createRefNodeList_dqg0vp_a8a(editorContext, node));
   return editorCell;
 }
Ejemplo n.º 9
0
 private EditorCell createConstant_du6pr9_a2b1b0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "(");
   editorCell.setCellId("Constant_du6pr9_a2b1b0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.MATCHING_LABEL, "parenthesis");
     style.set(StyleAttributes.TEXT_COLOR, MPSColors.lightGray);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_1x071y_a6a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "");
   editorCell.setCellId("Constant_1x071y_a6a");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, true);
     style.set(StyleAttributes.EDITABLE, true);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
Ejemplo n.º 11
0
 private EditorCell createAttributedNodeCell_73o0fl_c0(EditorContext editorContext, SNode node) {
   IOperationContext opContext = editorContext.getOperationContext();
   EditorManager manager = EditorManager.getInstanceFromContext(opContext);
   EditorCell editorCell = manager.getCurrentAttributedNodeCell();
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.DRAW_BRACKETS, true);
     style.set(StyleAttributes.BRACKETS_COLOR, MPSColors.pink);
   }
   return editorCell;
 }
Ejemplo n.º 12
0
 private EditorCell createConstant_bwxq1q_a6a1a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "validate");
   editorCell.setCellId("Constant_bwxq1q_a6a1a");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.TEXT_COLOR, MPSColors.DARK_BLUE);
     style.set(StyleAttributes.FONT_STYLE, MPSFonts.BOLD);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
Ejemplo n.º 13
0
 private EditorCell createConstant_dqg0vp_g0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, " ");
   editorCell.setCellId("Constant_dqg0vp_g0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
     style.set(StyleAttributes.SELECTABLE, false);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_c9gv4j_a2a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "");
   editorCell.setCellId("Constant_c9gv4j_a2a");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.PADDING_RIGHT, new Padding(0.0, Measure.SPACES));
     style.set(StyleAttributes.EDITABLE, true);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_uv9f3e_c0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "]");
   editorCell.setCellId("Constant_uv9f3e_c0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.MATCHING_LABEL, "SquareBrace");
     style.set(StyleAttributes.PUNCTUATION_LEFT, true);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
Ejemplo n.º 16
0
 private EditorCell createConstant_fl5ndt_b2b1a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ":");
   editorCell.setCellId("Constant_fl5ndt_b2b1a");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, false);
     style.set(StyleAttributes.LAYOUT_CONSTRAINT, "punctuation");
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createConstant_1xd1xh_a1a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "");
   editorCell.setCellId("Constant_1xd1xh_a1a0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, true);
     style.set(StyleAttributes.EDITABLE, true);
     style.set(StyleAttributes.INDENT_LAYOUT_NO_WRAP, true);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
Ejemplo n.º 18
0
 private EditorCell createConstant_du6pr9_b2b1b0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell =
       new EditorCell_Constant(editorContext, node, "show keystroke: ");
   editorCell.setCellId("Constant_du6pr9_b2b1b0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, false);
     style.set(StyleAttributes.TEXT_COLOR, MPSColors.lightGray);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
Ejemplo n.º 19
0
 private EditorCell createConstant_si17nj_d0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ".");
   editorCell.setCellId("Constant_si17nj_d0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, false);
     style.set(StyleAttributes.PUNCTUATION_LEFT, true);
     style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
Ejemplo n.º 20
0
 private EditorCell createConstant_uc5iyq_a0a(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "/**");
   editorCell.setCellId("Constant_uc5iyq_a0a");
   BaseLanguageStyle_StyleSheet.getComment(editorCell).apply(editorCell);
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.INDENT_LAYOUT_ON_NEW_LINE, true);
     style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
Ejemplo n.º 21
0
 private EditorCell createConstant_fl5ndt_c0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "}");
   editorCell.setCellId("Constant_fl5ndt_c0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.MATCHING_LABEL, "brace");
     style.set(StyleAttributes.INDENT_LAYOUT_NO_WRAP, true);
     style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
Ejemplo n.º 22
0
 private EditorCell createConstant_qpt50r_e0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, ">");
   editorCell.setCellId("Constant_qpt50r_e0");
   BaseLanguageStyle_StyleSheet.getRightBrace(editorCell).apply(editorCell);
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.MATCHING_LABEL, "angle-brackets");
     style.set(StyleAttributes.PUNCTUATION_LEFT, true);
     style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
Ejemplo n.º 23
0
 private EditorCell createConstant_73o0fl_d0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "TF>");
   editorCell.setCellId("Constant_73o0fl_d0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, true);
     style.set(StyleAttributes.TEXT_BACKGROUND_COLOR, MPSColors.pink);
     style.set(StyleAttributes.SELECTED_TEXT_BACKGROUND_COLOR, MPSColors.magenta);
   }
   MacroSymbol_Actions.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
Ejemplo n.º 24
0
 private EditorCell createConstant_73o0fl_a0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell =
       new EditorCell_Constant(editorContext, node, "template fragment");
   editorCell.setCellId("Constant_73o0fl_a0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, false);
     style.set(StyleAttributes.TEXT_COLOR, MPSColors.DARK_BLUE);
     style.set(StyleAttributes.TEXT_BACKGROUND_COLOR, MPSColors.lightGray);
   }
   editorCell.setDefaultText("");
   return editorCell;
 }
Ejemplo n.º 25
0
 private EditorCell createCollection_qpt50r_g0(EditorContext editorContext, SNode node) {
   EditorCell_Collection editorCell = EditorCell_Collection.createIndent2(editorContext, node);
   editorCell.setCellId("Collection_qpt50r_g0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, false);
     style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
     style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
   }
   editorCell.addEditorCell(this.createConstant_qpt50r_a6a(editorContext, node));
   editorCell.addEditorCell(this.createRefNode_qpt50r_b6a(editorContext, node));
   return editorCell;
 }
 private EditorCell createConstant_ayjduv_a0a_0(EditorContext editorContext, SNode node) {
   EditorCell_Constant editorCell = new EditorCell_Constant(editorContext, node, "${");
   editorCell.setCellId("Constant_ayjduv_a0a_0");
   buildStyles_StyleSheet.getMacro(editorCell).apply(editorCell);
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
     style.set(StyleAttributes.PUNCTUATION_LEFT, true);
   }
   delete_BuildStringPart.setCellActions(editorCell, node, editorContext);
   editorCell.setDefaultText("");
   return editorCell;
 }
 private EditorCell createRefNodeList_9ahxcc_f0(EditorContext editorContext, SNode node) {
   AbstractCellListHandler handler =
       new ConceptSwitchStatement_Editor.caseListHandler_9ahxcc_f0(node, "case", editorContext);
   EditorCell_Collection editorCell =
       handler.createCells(editorContext, new CellLayout_Indent(), false);
   editorCell.setCellId("refNodeList_case");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
     style.set(StyleAttributes.INDENT_LAYOUT_CHILDREN_NEWLINE, true);
   }
   editorCell.setRole(handler.getElementRole());
   return editorCell;
 }
Ejemplo n.º 28
0
 private EditorCell createCollection_9e1twx_a(EditorContext editorContext, SNode node) {
   EditorCell_Collection editorCell = EditorCell_Collection.createIndent2(editorContext, node);
   editorCell.setCellId("Collection_9e1twx_a");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
     style.set(StyleAttributes.INDENT_LAYOUT_ON_NEW_LINE, true);
   }
   editorCell.addEditorCell(this.createConstant_9e1twx_a0(editorContext, node));
   editorCell.addEditorCell(this.createRefCell_9e1twx_b0(editorContext, node));
   editorCell.addEditorCell(this.createConstant_9e1twx_c0(editorContext, node));
   editorCell.addEditorCell(this.createRefNode_9e1twx_d0(editorContext, node));
   return editorCell;
 }
Ejemplo n.º 29
0
 private EditorCell createRefNodeList_dvtb4y_k3a(EditorContext editorContext, SNode node) {
   AbstractCellListHandler handler =
       new BuildMps_IdeaPlugin_Editor.dependenciesListHandler_dvtb4y_k3a(
           node, "dependencies", editorContext);
   EditorCell_Collection editorCell =
       handler.createCells(editorContext, new CellLayout_Indent(), false);
   editorCell.setCellId("refNodeList_dependencies");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
     style.set(StyleAttributes.INDENT_LAYOUT_CHILDREN_NEWLINE, true);
   }
   editorCell.setRole(handler.getElementRole());
   return editorCell;
 }
Ejemplo n.º 30
0
 private EditorCell createCollection_uc5iyq_a0(EditorContext editorContext, SNode node) {
   EditorCell_Collection editorCell = EditorCell_Collection.createIndent2(editorContext, node);
   editorCell.setCellId("Collection_uc5iyq_a0");
   {
     Style style = editorCell.getStyle();
     style.set(StyleAttributes.SELECTABLE, false);
     style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
   }
   editorCell.setCanBeFolded(true);
   editorCell.setFoldedCell(this.createConstant_uc5iyq_a0a_0(editorContext, node));
   editorCell.addEditorCell(this.createConstant_uc5iyq_a0a(editorContext, node));
   editorCell.addEditorCell(this.createConstant_uc5iyq_b0a(editorContext, node));
   editorCell.addEditorCell(this.createConstant_uc5iyq_c0a(editorContext, node));
   editorCell.addEditorCell(this.createConstant_uc5iyq_d0a(editorContext, node));
   return editorCell;
 }