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

Java EditorCell类代码示例

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

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



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

示例1: createCollection_6xvrct_d0

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createCollection_6xvrct_d0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_6xvrct_d0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.addEditorCell(createConstant_6xvrct_a3a());
  editorCell.addEditorCell(createConstant_6xvrct_b3a());
  editorCell.addEditorCell(createRefNodeList_6xvrct_c3a());
  editorCell.addEditorCell(createConstant_6xvrct_d3a());
  editorCell.addEditorCell(createConstant_6xvrct_e3a());
  editorCell.addEditorCell(createRefNodeList_6xvrct_f3a());
  editorCell.addEditorCell(createCollection_6xvrct_g3a());
  editorCell.addEditorCell(createConstant_6xvrct_h3a());
  editorCell.addEditorCell(createConstant_6xvrct_i3a());
  editorCell.addEditorCell(createRefNodeList_6xvrct_j3a());
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:19,代码来源:Gevolg_EditorBuilder_a.java


示例2: createProperty_drg1ot_a0a0a0a0a0

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createProperty_drg1ot_a0a0a0a0a0() {
  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();
  new OnderwerpStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  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,代码行数:21,代码来源:IsGeen_EditorBuilder_a.java


示例3: createRefCell_drg1ot_a0a0a

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

    @Override
    protected EditorCell createRefCell(EditorContext context, SNode effectiveNode, SNode node) {
      EditorCell cell = new IsGeen_EditorBuilder_a.Inline_Builder_drg1ot_a0a.Inline_Builder_drg1ot_a0a0a0(getEditorContext(), myNode, effectiveNode).createCell();
      installDeleteActions_nullable_aggregation(cell);
      return cell;
    }
  };
  provider.setRole("object");
  provider.setNoTargetText("<no object>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  if (editorCell.getRole() == null) {
    editorCell.setReferenceCell(true);
    editorCell.setRole("object");
  }
  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,代码行数:27,代码来源:IsGeen_EditorBuilder_a.java


示例4: createProperty_d0e2am_n0

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createProperty_d0e2am_n0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("toonalles");
  provider.setNoTargetText("<no toonalles>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_toonalles");
  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,代码来源:Context_EditorBuilder_a.java


示例5: createCollection_o8qqqk_a_0

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createCollection_o8qqqk_a_0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_o8qqqk_a_0");
  editorCell.setBig(true);
  editorCell.setCellContext(getCellFactory().getCellContext());
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.addEditorCell(createConstant_o8qqqk_a0_0());
  editorCell.addEditorCell(createConstant_o8qqqk_b0());
  editorCell.addEditorCell(createRefNode_o8qqqk_c0());
  editorCell.addEditorCell(createConstant_o8qqqk_d0());
  editorCell.addEditorCell(createConstant_o8qqqk_e0_0());
  editorCell.addEditorCell(createRefNode_o8qqqk_f0());
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:17,代码来源:Rechtsbetrekking_Simulatie_InspectorBuilder_a.java


示例6: createProperty_ce48up_a0a0

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createProperty_ce48up_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();
  new OnderwerpStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  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,代码行数:21,代码来源:ReferentieNaarObject_EditorBuilder_a.java


示例7: createProperty_ffjt3u_a0a0

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createProperty_ffjt3u_a0a0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<te wijzigen onderwerp>");
  provider.setReadOnly(true);
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name");
  Style style = new StyleImpl();
  new OnderwerpStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  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,代码来源:MethodeAanpassenFeiten_EditorBuilder_a.java


示例8: createCollection_9qq2ms_a

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createCollection_9qq2ms_a() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_9qq2ms_a");
  editorCell.setBig(true);
  editorCell.setCellContext(getCellFactory().getCellContext());
  editorCell.addEditorCell(createConstant_9qq2ms_a0());
  editorCell.addEditorCell(createConstant_9qq2ms_b0());
  editorCell.addEditorCell(createProperty_9qq2ms_c0());
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:11,代码来源:XpathVeld_EditorBuilder_a.java


示例9: createCollection_dwyzfs_a

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createCollection_dwyzfs_a() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_dwyzfs_a");
  editorCell.setBig(true);
  editorCell.setCellContext(getCellFactory().getCellContext());
  editorCell.addEditorCell(createRefCell_dwyzfs_a0());
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:9,代码来源:ObjectWaarde_EditorBuilder_a.java


示例10: installCellInfo

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的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, 0x4ce3b5e2c39586d9L, 0x4ce3b5e2c39586daL, "expressie"), child));
  }
  if (editorCell.getRole() == null) {
    editorCell.setRole("expressie");
  }
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:9,代码来源:IsPositief_EditorBuilder_a.java


示例11: createCollection_ffjt3u_c0

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createCollection_ffjt3u_c0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_ffjt3u_c0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.addEditorCell(createConstant_ffjt3u_a2a());
  editorCell.addEditorCell(createConstant_ffjt3u_b2a());
  editorCell.addEditorCell(createCollection_ffjt3u_c2a());
  editorCell.addEditorCell(createConstant_ffjt3u_d2a());
  editorCell.addEditorCell(createConstant_ffjt3u_e2a());
  editorCell.addEditorCell(createCollection_ffjt3u_f2a());
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:15,代码来源:MethodeAanpassenFeiten_EditorBuilder_a.java


示例12: createConstant_hnwz83_e0

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


示例13: createConstant_ri0if9_j0

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createConstant_ri0if9_j0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "heeft als gevolg");
  editorCell.setCellId("Constant_ri0if9_j0");
  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,代码来源:TijdsverloopMetRechtsgevolg_EditorBuilder_a.java


示例14: createConstant_gnj8f1_a

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createConstant_gnj8f1_a() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "nee");
  editorCell.setCellId("Constant_gnj8f1_a");
  editorCell.setBig(true);
  editorCell.setCellContext(getCellFactory().getCellContext());
  Style style = new StyleImpl();
  style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:12,代码来源:waardeNee_EditorBuilder_a.java


示例15: installElementCellActions

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
public void installElementCellActions(SNode elementNode, EditorCell elementCell) {
  if (elementCell.getUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET) == null) {
    elementCell.putUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET, AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET);
    if (elementNode != null) {
      elementCell.setAction(CellActionType.DELETE, new CellAction_DeleteNode(elementNode, CellAction_DeleteNode.DeleteDirection.FORWARD));
      elementCell.setAction(CellActionType.BACKSPACE, new CellAction_DeleteNode(elementNode, CellAction_DeleteNode.DeleteDirection.BACKWARD));
      elementCell.addKeyMap(new RefNodeListHandlerElementKeyMap(this, ","));
    }
    if (elementCell.getSubstituteInfo() == null || elementCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
      elementCell.setSubstituteInfo(new SChildSubstituteInfo(elementCell, getNode(), MetaAdapterFactory.getContainmentLink(0x30ef095ad48945ffL, 0xa80f456a798ac125L, 0x76ccb41bf3857614L, 0x76ccb41bf3857617L, "attributen"), elementNode));
    }
  }
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:14,代码来源:Identificatie_EditorBuilder_a.java


示例16: createImage_pwfrmn_a0a0a31a0

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createImage_pwfrmn_a0a0a31a0() {
  SModule imageModule;
  String imagePath;
  imageModule = SNodeOperations.getConcept(myNode).getLanguage().getSourceModule();
  imagePath = "${imagespath}/Green.png";
  EditorCell_Image editorCell = EditorCell_Image.createImageCell(getEditorContext(), myNode, imageModule, imagePath);
  editorCell.setCellId("Image_pwfrmn_a0a0a31a0");
  EvalueerUitvoerbareHandelingen.setCellActions(editorCell, myNode, getEditorContext());
  editorCell.setDescent(4);
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:12,代码来源:Venster_EditorBuilder_a.java


示例17: createEmptyCell

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
@Override
protected EditorCell createEmptyCell() {
  getCellFactory().pushCellContext();
  getCellFactory().setNodeLocation(new SNodeLocation.FromParentAndLink(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x25be3715c7b32639L, "voorwaarden")));
  try {
    EditorCell editorCell = super.createEmptyCell();
    editorCell.setCellId("empty_voorwaarden");
    installCellInfo(null, editorCell);
    setCellContext(editorCell);
    return editorCell;
  } finally {
    getCellFactory().popCellContext();
  }
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:15,代码来源:AanspraakNaIngebrekeStellingPlicht_EditorBuilder_a.java


示例18: createProperty_ghyq5j_a0

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createProperty_ghyq5j_a0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("seconden");
  provider.setNoTargetText("<no seconden>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_seconden");
  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,代码行数:16,代码来源:Seconden_EditorBuilder_a.java


示例19: createEmptyCell

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
@Override
protected EditorCell createEmptyCell() {
  getCellFactory().pushCellContext();
  getCellFactory().setNodeLocation(new SNodeLocation.FromParentAndLink(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x4916e0625ce15ba0L, 0x4916e0625ce244bcL, "brongeldigTot")));
  try {
    EditorCell editorCell = super.createEmptyCell();
    editorCell.setCellId("empty_brongeldigTot");
    installCellInfo(null, editorCell);
    setCellContext(editorCell);
    return editorCell;
  } finally {
    getCellFactory().popCellContext();
  }
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:15,代码来源:BronGeldigheidOvergangZonderRechtsgevolg_ComponentBuilder_a.java


示例20: createConstant_tbvjtx_f0

import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createConstant_tbvjtx_f0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "File: ");
  editorCell.setCellId("Constant_tbvjtx_f0");
  Style style = new StyleImpl();
  new HardCodedTextStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  style.set(StyleAttributes.SELECTABLE, false);
  style.set(StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.black));
  style.set(StyleAttributes.FONT_STYLE, MPSFonts.BOLD_ITALIC);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:13,代码来源:Timeout_EditorBuilder_a.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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