当前位置: 首页>>代码示例>>Java>>正文


Java Style.set方法代码示例

本文整理汇总了Java中jetbrains.mps.openapi.editor.style.Style.set方法的典型用法代码示例。如果您正苦于以下问题:Java Style.set方法的具体用法?Java Style.set怎么用?Java Style.set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在jetbrains.mps.openapi.editor.style.Style的用法示例。


在下文中一共展示了Style.set方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createMultiline_vedntk_c02a

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createMultiline_vedntk_c02a(EditorContext editorContext, SNode node) {
  CellProviderWithRole provider = new MultilineCellProvider(node, editorContext);
  provider.setRole("opmerkingen");
  provider.setNoTargetText("<no opmerkingen>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(editorContext);
  editorCell.setCellId("property_opmerkingen");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    return getUpdateSession().updateAttributeCell(provider.getRoleAttributeKind(), editorCell, attributeConcept);
  } else
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:19,代码来源:Betrekking_Verwoording_EditorBuilder_a.java

示例2: createMultiline_fyoso7_c92a

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createMultiline_fyoso7_c92a(EditorContext editorContext, SNode node) {
  CellProviderWithRole provider = new MultilineCellProvider(node, editorContext);
  provider.setRole("opmerkingen");
  provider.setNoTargetText("<no opmerkingen>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(editorContext);
  editorCell.setCellId("property_opmerkingen");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    return getUpdateSession().updateAttributeCell(provider.getRoleAttributeKind(), editorCell, attributeConcept);
  } else
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:19,代码来源:Betrekking_EditorBuilder_a.java

示例3: createProperty_fapojb_b0a

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createProperty_fapojb_b0a() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<no name>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name");
  Style style = new StyleImpl();
  style.set(StyleAttributes.FONT_SIZE, 16);
  editorCell.getStyle().putAll(style);
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:19,代码来源:Simulatie_EditorBuilder_a.java

示例4: createConstant_pjer6y_f31a0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createConstant_pjer6y_f31a0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "");
  editorCell.setCellId("Constant_pjer6y_f31a0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_ON_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:10,代码来源:UitTeVoerenDialoog_EditorBuilder_a.java

示例5: createConstant_fyoso7_v0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createConstant_fyoso7_v0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "");
  editorCell.setCellId("Constant_fyoso7_v0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:11,代码来源:Betrekking_EditorBuilder_a.java

示例6: createRefNodeList_311ogr_e0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createRefNodeList_311ogr_e0() {
  AbstractCellListHandler handler = new Voorwaarden_EditorBuilder_a.voorwaardenListHandler_311ogr_e0(myNode, "voorwaarden", getEditorContext());
  EditorCell_Collection editorCell = handler.createCells(new CellLayout_Indent(), false);
  editorCell.setCellId("refNodeList_voorwaarden");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_CHILDREN_NEWLINE, true);
  style.set(StyleAttributes.INDENT_LAYOUT_ON_NEW_LINE, true);
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.setRole(handler.getElementRole());
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:13,代码来源:Voorwaarden_EditorBuilder_a.java

示例7: createConstant_fdm9fu_s0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createConstant_fdm9fu_s0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "subject matter");
  editorCell.setCellId("Constant_fdm9fu_s0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_ON_NEW_LINE, true);
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:11,代码来源:KrachtigeAanspraakFataleVerplichtig_EN_EditorBuilder_a.java

示例8: createCollection_o8qqqk_c0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createCollection_o8qqqk_c0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_o8qqqk_c0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.addEditorCell(createConstant_o8qqqk_a2a());
  editorCell.addEditorCell(createRefCell_o8qqqk_b2a());
  editorCell.addEditorCell(createConstant_o8qqqk_c2a());
  editorCell.addEditorCell(createConstant_o8qqqk_d2a());
  editorCell.addEditorCell(createRefCell_o8qqqk_e2a());
  editorCell.addEditorCell(createConstant_o8qqqk_f2a());
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:15,代码来源:Rechtsbetrekking_Simulatie_EditorBuilder_a.java

示例9: createRefCell_vcx8b9_r0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createRefCell_vcx8b9_r0() {
  CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) {

    @Override
    protected EditorCell createRefCell(EditorContext context, final SNode effectiveNode, SNode node) {
      EditorCell cell = getUpdateSession().updateReferencedNodeCell(new Computable<EditorCell>() {
        public EditorCell compute() {
          return new ZwakkeAanspraakZwakkePlicht_EN_EditorBuilder_a.Inline_Builder_vcx8b9_a71a(getEditorContext(), myNode, effectiveNode).createCell();
        }
      }, effectiveNode, "rechtssubjectMetPlicht");
      CellUtil.setupIDeprecatableStyles(effectiveNode, cell);
      setSemanticNodeToCells(cell, myNode);
      installDeleteActions_notnull(cell);
      return cell;
    }
  };
  provider.setRole("rechtssubjectMetPlicht");
  provider.setNoTargetText("<no rechtssubjectMetPlicht>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  if (editorCell.getRole() == null) {
    editorCell.setReferenceCell(true);
    editorCell.setRole("rechtssubjectMetPlicht");
  }
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:36,代码来源:ZwakkeAanspraakZwakkePlicht_EN_EditorBuilder_a.java

示例10: createConstant_ns8cfe_d0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createConstant_ns8cfe_d0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "");
  editorCell.setCellId("Constant_ns8cfe_d0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:10,代码来源:Dialoog_EditorBuilder_a.java

示例11: createConstant_pwe3o3_v0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createConstant_pwe3o3_v0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "onderwerp");
  editorCell.setCellId("Constant_pwe3o3_v0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_ON_NEW_LINE, true);
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:11,代码来源:ZwakkeAanspraakZwakkePlicht_EditorBuilder_a.java

示例12: createRefCell_yhtdgo_k5a0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createRefCell_yhtdgo_k5a0() {
  CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) {

    @Override
    protected EditorCell createRefCell(EditorContext context, final SNode effectiveNode, SNode node) {
      EditorCell cell = getUpdateSession().updateReferencedNodeCell(new Computable<EditorCell>() {
        public EditorCell compute() {
          return new Rechtsbetrekking_RechtspositieRol1_EditorBuilder_a.Inline_Builder_yhtdgo_a01f0a(getEditorContext(), myNode, effectiveNode).createCell();
        }
      }, effectiveNode, "onderwerp");
      CellUtil.setupIDeprecatableStyles(effectiveNode, cell);
      setSemanticNodeToCells(cell, myNode);
      installDeleteActions_nullable_reference(cell);
      return cell;
    }
  };
  provider.setRole("onderwerp");
  provider.setNoTargetText("<no onderwerp>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  if (editorCell.getRole() == null) {
    editorCell.setReferenceCell(true);
    editorCell.setRole("onderwerp");
  }
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:36,代码来源:Rechtsbetrekking_RechtspositieRol1_EditorBuilder_a.java

示例13: createConstant_yhtdgo_j0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createConstant_yhtdgo_j0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "evaluatielog");
  editorCell.setCellId("Constant_yhtdgo_j0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_ON_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:10,代码来源:Rechtsbetrekking_RechtspositieRol1_InspectorBuilder_a.java

示例14: createConstant_n0qqfd_c0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createConstant_n0qqfd_c0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "");
  editorCell.setCellId("Constant_n0qqfd_c0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.MATCHING_LABEL, "body-brace");
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:11,代码来源:GegevensModel_EditorBuilder_a.java

示例15: createConstant_2759bf_eb0

import jetbrains.mps.openapi.editor.style.Style; //导入方法依赖的package包/类
private EditorCell createConstant_2759bf_eb0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "");
  editorCell.setCellId("Constant_2759bf_eb0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:10,代码来源:Rechtshandeling_EditorBuilder_a.java


注:本文中的jetbrains.mps.openapi.editor.style.Style.set方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。