• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java StyleAttributes类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中jetbrains.mps.editor.runtime.style.StyleAttributes的典型用法代码示例。如果您正苦于以下问题:Java StyleAttributes类的具体用法?Java StyleAttributes怎么用?Java StyleAttributes使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



StyleAttributes类属于jetbrains.mps.editor.runtime.style包,在下文中一共展示了StyleAttributes类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createMultiline_s67zsr_c13a

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createMultiline_s67zsr_c13a(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,代码来源:VerplichteBevoegdheidVerplichteGehoudenheid_EN_EditorBuilder_a.java


示例2: createProperty_lkvao1_a0a0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createProperty_lkvao1_a0a0() {
  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.AUTO_DELETABLE, 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,代码行数:19,代码来源:ReferentieNaarRechtsSubject_EditorBuilder_a.java


示例3: createProperty_p67uos_b0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createProperty_p67uos_b0() {
  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.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,代码行数:19,代码来源:Casus_EditorBuilder_a.java


示例4: createProperty_qc0910_a0a0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createProperty_qc0910_a0a0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<no name>");
  provider.setReadOnly(true);
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name");
  Style style = new StyleImpl();
  style.set(StyleAttributes.AUTO_DELETABLE, 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,代码行数:20,代码来源:PresentatieLink_EditorBuilder_a.java


示例5: createMultiline_vedntk_c02a

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的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


示例6: createCollection_fapojb_h0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createCollection_fapojb_h0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_fapojb_h0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.SELECTABLE, false);
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.setFoldable(true);
  editorCell.addEditorCell(createConstant_fapojb_a7a());
  editorCell.addEditorCell(createConstant_fapojb_b7a());
  editorCell.addEditorCell(createRefCell_fapojb_c7a());
  editorCell.addEditorCell(createConstant_fapojb_d7a());
  editorCell.addEditorCell(createRefCell_fapojb_e7a());
  editorCell.addEditorCell(createConstant_fapojb_f7a());
  editorCell.addEditorCell(createConstant_fapojb_g7a());
  editorCell.addEditorCell(createConstant_fapojb_h7a());
  editorCell.addEditorCell(createRefCell_fapojb_i7a());
  editorCell.addEditorCell(createConstant_fapojb_j7a());
  editorCell.addEditorCell(createRefCell_fapojb_k7a());
  editorCell.addEditorCell(createConstant_fapojb_l7a());
  editorCell.setInitiallyCollapsed(true);
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:24,代码来源:Simulatie_EditorBuilder_a.java


示例7: createProperty_de2l07_a0a0a5h6a0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createProperty_de2l07_a0a0a5h6a0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<no name>");
  provider.setReadOnly(true);
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name_4");
  Style style = new StyleImpl();
  style.set(StyleAttributes.AUTO_DELETABLE, 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,代码行数:20,代码来源:Rechtsbetrekking_RechtspositieRol2_EditorBuilder_a.java


示例8: createQueryList_pjer6y_c31a0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createQueryList_pjer6y_c31a0(final EditorContext editorContext, final SNode node) {

    return QueryListContext.computeWithContext(new QueryListContext(node), new _FunctionTypes._return_P0_E0<EditorCell_QueryList>() {
      public EditorCell_QueryList invoke() {
        QueryListHandler handler = new UitTeVoerenDialoog_EditorBuilder_a.QueryListHandler_pjer6y_c31a0(editorContext, node);

        EditorCell_QueryList editorCell = handler.createCells(editorContext, new CellLayout_Vertical());
        editorCell.setCellId("QueryList_pjer6y_c31a0");
        Style style = new StyleImpl();
        style.set(StyleAttributes.READ_ONLY, true);
        editorCell.getStyle().putAll(style);
        return editorCell;
      }
    });

  }
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:17,代码来源:UitTeVoerenDialoog_EditorBuilder_a.java


示例9: createProperty_do4if9_a0a0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createProperty_do4if9_a0a0() {
  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.AUTO_DELETABLE, 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,代码行数:19,代码来源:ReferentieNaarArtikel_EditorBuilder_a.java


示例10: createMultiline_xevd8x_c0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createMultiline_xevd8x_c0(EditorContext editorContext, SNode node) {
  CellProviderWithRole provider = new MultilineCellProvider(node, editorContext);
  provider.setRole("name");
  provider.setNoTargetText("<no name>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(editorContext);
  editorCell.setCellId("property_name");
  Style style = new StyleImpl();
  new NameStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, 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,代码来源:OptioneleBevoegdheidOptioneleGehoudenheid_EditorBuilder_a.java


示例11: createCollection_srnish_f0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createCollection_srnish_f0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_srnish_f0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.addEditorCell(createConstant_srnish_a5a());
  editorCell.addEditorCell(createConstant_srnish_b5a());
  editorCell.addEditorCell(createConstant_srnish_c5a());
  editorCell.addEditorCell(createRefNodeList_srnish_d5a());
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:13,代码来源:Presentatie_EditorBuilder_a.java


示例12: createConstant_s67zsr_gb0

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


示例13: createConstant_1zehi0_a0

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


示例14: installCellInfo

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private void installCellInfo(SNode child, EditorCell editorCell) {
  if (editorCell.getSubstituteInfo() == null || editorCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
    editorCell.setSubstituteInfo(new SChildSubstituteInfo(editorCell, myNode, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d02L, 0x65312e0ffedaa69L, "versietijdstip"), child));
  }
  if (editorCell.getRole() == null) {
    editorCell.setRole("versietijdstip");
  }
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:12,代码来源:Context_EN_EditorBuilder_a.java


示例15: createConstant_ri0if9_d0

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


示例16: createConstant_fapojb_e0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createConstant_fapojb_e0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "Rechtsposities");
  editorCell.setCellId("Constant_fapojb_e0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.FONT_SIZE, 16);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:10,代码来源:Simulatie_EditorBuilder_a.java


示例17: createCollection_u7mlcm_d0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createCollection_u7mlcm_d0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_u7mlcm_d0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  style.set(StyleAttributes.INDENT_LAYOUT_ON_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.addEditorCell(createConstant_u7mlcm_a3a());
  editorCell.addEditorCell(createConstant_u7mlcm_b3a());
  editorCell.addEditorCell(createRefNodeList_u7mlcm_c3a());
  editorCell.addEditorCell(createConstant_u7mlcm_d3a());
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:14,代码来源:InteractieDefinitie_EditorBuilder_a.java


示例18: createConstant_my91ok_b0

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


示例19: createConstant_pjer6y_o0a

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createConstant_pjer6y_o0a() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "Handelingen");
  editorCell.setCellId("Constant_pjer6y_o0a");
  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,代码来源:UitTeVoerenDialoog_EditorBuilder_a.java


示例20: createCollection_4rhwny_g0

import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createCollection_4rhwny_g0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_4rhwny_g0");
  Style style = new StyleImpl();
  new RegularStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  style.set(StyleAttributes.SELECTABLE, false);
  style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
  editorCell.getStyle().putAll(style);
  editorCell.addEditorCell(createConstant_4rhwny_a6a());
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:12,代码来源:Tijd_EditorBuilder_a.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CasAuthenticationToken类代码示例发布时间:2022-05-22
下一篇:
Java QueryTimeoutException类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap