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


Java CellProviderWithRole.setNoTargetText方法代码示例

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


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

示例1: createProperty_eawz8v_a0i0_0

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

示例2: createProperty_ikqrmj_p0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createProperty_ikqrmj_p0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("default_path");
  provider.setNoTargetText("path");
  provider.setAllowsEmptyTarget(true);
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_default_path");
  Style style = new StyleImpl();
  new GreetingStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  style.set(StyleAttributes.FONT_STYLE, MPSFonts.ITALIC);
  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:vaclav,项目名称:voicemenu,代码行数:22,代码来源:WorkSpace_EditorBuilder_a.java

示例3: createProperty_tm0j27_a0d0a

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

示例4: createProperty_puiv9n_a0x0

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

示例5: createProperty_tbidtd_a0a0a0a0a0

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

示例6: createProperty_fyoso7_a0l0

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

示例7: createMultiline_pnyewd_c0

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

示例8: createProperty_eawz8v_a0l0

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

示例9: createProperty_ikqrmj_r0

import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入方法依赖的package包/类
private EditorCell createProperty_ikqrmj_r0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("Name of Voicemenu");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name");
  Style style = new StyleImpl();
  new HeadingStyleClass(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:vaclav,项目名称:voicemenu,代码行数:19,代码来源:WorkSpace_EditorBuilder_a.java

示例10: createProperty_l65b7j_c0

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

示例11: createProperty_d9mrgs_a0e0

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

示例12: createProperty_yhtdgo_i0

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

示例13: createRefCell_vcx8b9_r0

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

示例14: createRefCell_pjer6y_d0a

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

示例15: createRefCell_ar76ie_a0

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


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