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


Java CellProviderWithRole.createEditorCell方法代码示例

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


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

示例1: createProperty_hvz52m_a0l0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createProperty_hvz52m_a0l0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<no name>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name_5");
  Style style = new StyleImpl();
  new SubjectStyleClass(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,代码行数:19,代码来源:VerplichteBevoegdheidVerplichteGehoudenheid_Verwoording_InspectorBuilder_a.java

示例2: createProperty_mf23zp_a0a0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createProperty_mf23zp_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,代码来源:EnumeratieDatatype_EditorBuilder_a.java

示例3: createProperty_drg1ot_a0a0a0a0a0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的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

示例4: createProperty_f7i9kn_a0a0a0a

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createProperty_f7i9kn_a0a0a0a() {
  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,代码来源:ReferentieNaarAttribuutMetReferentieNaarKenmerk_EditorBuilder_a.java

示例5: createProperty_wqhc2v_a0b0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createProperty_wqhc2v_a0b0() {
  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");
  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,代码行数:17,代码来源:ObjectInstantie_EditorBuilder_a.java

示例6: createRefCell_drg1ot_a0a0a

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的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

示例7: createProperty_8vcyoe_a0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createProperty_8vcyoe_a0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<no name>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("E_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,代码行数:19,代码来源:Enumeratie_ComponentBuilder_a.java

示例8: createProperty_fapojb_a0i2a0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createProperty_fapojb_a0i2a0() {
  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_3");
  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,代码行数:17,代码来源:Simulatie_EditorBuilder_a.java

示例9: createProperty_my91ok_a0l0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createProperty_my91ok_a0l0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<no name>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name_5");
  Style style = new StyleImpl();
  new SubjectStyleClass(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,代码行数:19,代码来源:ZwakkeAanspraakZwakkePlicht_Verwoording_InspectorBuilder_a.java

示例10: createRefCell_qsh53x_d0a

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createRefCell_qsh53x_d0a() {
  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 Rechtshandeling_UitgevoerdeHandeling_EditorBuilder_a.Inline_Builder_qsh53x_a3a0(getEditorContext(), myNode, effectiveNode).createCell();
        }
      }, effectiveNode, "overgang");
      CellUtil.setupIDeprecatableStyles(effectiveNode, cell);
      setSemanticNodeToCells(cell, myNode);
      installDeleteActions_notnull(cell);
      return cell;
    }
  };
  provider.setRole("overgang");
  provider.setNoTargetText("<no overgang>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  if (editorCell.getRole() == null) {
    editorCell.setReferenceCell(true);
    editorCell.setRole("overgang");
  }
  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) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:37,代码来源:Rechtshandeling_UitgevoerdeHandeling_EditorBuilder_a.java

示例11: createRefCell_s67zsr_q0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createRefCell_s67zsr_q0() {
  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 VerplichteBevoegdheidVerplichteGehoudenheid_EN_EditorBuilder_a.Inline_Builder_s67zsr_a61a(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,代码来源:VerplichteBevoegdheidVerplichteGehoudenheid_EN_EditorBuilder_a.java

示例12: createProperty_4wyyvt_g0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createProperty_4wyyvt_g0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("action");
  provider.setNoTargetText("<no action>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_action");
  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:vaclav,项目名称:voicemenu,代码行数:16,代码来源:Extend_EditorBuilder_a.java

示例13: createProperty_b002fm_c0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createProperty_b002fm_c0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("value2");
  provider.setNoTargetText("<no value2>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_value2");
  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:vaclav,项目名称:voicemenu,代码行数:16,代码来源:general2args_EditorBuilder_a.java

示例14: createRefCell_ev95sk_a2a0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createRefCell_ev95sk_a2a0() {
  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_Lijst_EditorBuilder_a.Inline_Builder_ev95sk_a0c0a(getEditorContext(), myNode, effectiveNode).createCell();
        }
      }, effectiveNode, "rechtssubjectMetRecht");
      CellUtil.setupIDeprecatableStyles(effectiveNode, cell);
      setSemanticNodeToCells(cell, myNode);
      installDeleteActions_notnull(cell);
      return cell;
    }
  };
  provider.setRole("rechtssubjectMetRecht");
  provider.setNoTargetText("<no rechtssubjectMetRecht>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  if (editorCell.getRole() == null) {
    editorCell.setReferenceCell(true);
    editorCell.setRole("rechtssubjectMetRecht");
  }
  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,代码行数:33,代码来源:Rechtsbetrekking_Lijst_EditorBuilder_a.java

示例15: createRefCell_fapojb_f2a0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createRefCell_fapojb_f2a0() {
  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 Simulatie_EditorBuilder_a.Inline_Builder_fapojb_a5c0a(getEditorContext(), myNode, effectiveNode).createCell();
        }
      }, effectiveNode, "casus");
      CellUtil.setupIDeprecatableStyles(effectiveNode, cell);
      setSemanticNodeToCells(cell, myNode);
      installDeleteActions_nullable_reference(cell);
      return cell;
    }
  };
  provider.setRole("casus");
  provider.setNoTargetText("<no casus>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  if (editorCell.getRole() == null) {
    editorCell.setReferenceCell(true);
    editorCell.setRole("casus");
  }
  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,代码行数:33,代码来源:Simulatie_EditorBuilder_a.java


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