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


Java EditorManager类代码示例

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


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

示例1: createProperty_qsh53x_a0f0a

import jetbrains.mps.nodeEditor.EditorManager; //导入依赖的package包/类
private EditorCell createProperty_qsh53x_a0f0a() {
  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_1");
  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,代码来源:Rechtshandeling_UitgevoerdeHandeling_EditorBuilder_a.java

示例2: createProperty_dwyzfs_a0a0

import jetbrains.mps.nodeEditor.EditorManager; //导入依赖的package包/类
private EditorCell createProperty_dwyzfs_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,代码来源:ObjectWaarde_EditorBuilder_a.java

示例3: createProperty_trpnxn_a0j0

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

示例4: createProperty_o6qvtk_a0a0

import jetbrains.mps.nodeEditor.EditorManager; //导入依赖的package包/类
private EditorCell createProperty_o6qvtk_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("SDT_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,代码来源:SubjectDataType_ComponentBuilder_a.java

示例5: createProperty_tbvjtx_h0

import jetbrains.mps.nodeEditor.EditorManager; //导入依赖的package包/类
private EditorCell createProperty_tbvjtx_h0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("playback");
  provider.setNoTargetText("<no playback>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_playback");
  Style style = new StyleImpl();
  new GreetingStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  style.set(StyleAttributes.EDITABLE, true);
  style.set(StyleAttributes.FONT_STYLE, MPSFonts.ITALIC);
  editorCell.getStyle().putAll(style);
  if (true) {
    editorCell.getStyle().set(StyleAttributes.FOCUS_POLICY, FocusPolicy.ATTRACTS_FOCUS);
  }
  TimeoutPlayback.setCellActions(editorCell, myNode, getEditorContext());
  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,代码行数:25,代码来源:Timeout_EditorBuilder_a.java

示例6: createProperty_my91ok_a0i0

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

示例7: createProperty_o8qqqk_a0a0a4c0

import jetbrains.mps.nodeEditor.EditorManager; //导入依赖的package包/类
private EditorCell createProperty_o8qqqk_a0a0a4c0() {
  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_2");
  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_Simulatie_EditorBuilder_a.java

示例8: createProperty_l65b7j_a0e0

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

示例9: createProperty_eoh9dv_a0c0

import jetbrains.mps.nodeEditor.EditorManager; //导入依赖的package包/类
private EditorCell createProperty_eoh9dv_a0c0() {
  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();
  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,代码来源:OptioneleBevoegdheidOptioneleGehoudenheid_Verwoording_EditorBuilder_a.java

示例10: createProperty_wh7tcl_c0

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

示例11: createProperty_d9mrgs_a0e0

import jetbrains.mps.nodeEditor.EditorManager; //导入依赖的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_my91ok_a0f0

import jetbrains.mps.nodeEditor.EditorManager; //导入依赖的package包/类
private EditorCell createProperty_my91ok_a0f0() {
  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");
  Style style = new StyleImpl();
  new NameStyleClass(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,代码来源:ZwakkeAanspraakZwakkePlicht_Verwoording_InspectorBuilder_a.java

示例13: createProperty_igmdf6_a0i3a

import jetbrains.mps.nodeEditor.EditorManager; //导入依赖的package包/类
private EditorCell createProperty_igmdf6_a0i3a() {
  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,代码来源:Regeling_EditorBuilder_a.java

示例14: createProperty_n6hw22_a0a0

import jetbrains.mps.nodeEditor.EditorManager; //导入依赖的package包/类
private EditorCell createProperty_n6hw22_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,代码来源:OnderwerpType_EditorBuilder_a.java

示例15: createProperty_de2l07_a0a0a5h6a0

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


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