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

Java SNode类代码示例

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

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



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

示例1: createProperty_3ja71y_b0

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
private EditorCell createProperty_3ja71y_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,代码来源:Object_EditorBuilder_a.java


示例2: geefType_id1f2HX0n1roP

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
static String geefType_id1f2HX0n1roP(@NotNull SNode __thisNode__) {
  {
    final SNode rechtsSubject = __thisNode__;
    if (SNodeOperations.isInstanceOf(rechtsSubject, MetaAdapterFactory.getConcept(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0aL, "ObjectiefRecht.structure.RechtsSubject"))) {
      return "rechtssubject";
    }
  }
  {
    final SNode onderwerp = __thisNode__;
    if (SNodeOperations.isInstanceOf(onderwerp, MetaAdapterFactory.getConcept(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x218d2fe3c8aff5b9L, "ObjectiefRecht.structure.Onderwerp"))) {
      return "onderwerp";
    }
  }
  {
    final SNode enumeratie = __thisNode__;
    if (SNodeOperations.isInstanceOf(enumeratie, MetaAdapterFactory.getConcept(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x67229afa69d710b5L, "ObjectiefRecht.structure.Enumeratie"))) {
      return "enumeratie";
    }
  }

  return null;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:23,代码来源:Object__BehaviorDescriptor.java


示例3: createProperty_d1dh3g_a0o0

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
private EditorCell createProperty_d1dh3g_a0o0() {
  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,代码来源:AanspraakNaIngebrekeStellingPlicht_EN_EditorBuilder_a.java


示例4: createMultiline_fyoso7_c92a

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
private EditorCell createMultiline_fyoso7_c92a(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_EditorBuilder_a.java


示例5: createProperty_7ngqyl_c0

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


示例6: createProperty_b84ey0_c0

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


示例7: createProperty_pwfrmn_a0c9a0

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
private EditorCell createProperty_pwfrmn_a0c9a0() {
  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,代码来源:Venster_EditorBuilder_a.java


示例8: createProperty_sj3av1_a0o0

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
private EditorCell createProperty_sj3av1_a0o0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<no name>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name_6");
  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_Verwoording_InspectorBuilder_a.java


示例9: createChildCell

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
protected EditorCell createChildCell(SNode child) {
  EditorCell editorCell = getUpdateSession().updateChildNodeCell(child);
  editorCell.setAction(CellActionType.DELETE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x46db58718361b134L, 0x46db58718361b137L, "expressie2"), child));
  editorCell.setAction(CellActionType.BACKSPACE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x46db58718361b134L, 0x46db58718361b137L, "expressie2"), child));
  installCellInfo(child, editorCell);
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:8,代码来源:LigtNa_EditorBuilder_a.java


示例10: evalueerRechtsbetrekkingen_id7mDqhOixwsa

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
static void evalueerRechtsbetrekkingen_id7mDqhOixwsa(@NotNull SNode __thisNode__, SNode simulatie) {
  for (SNode rechtsbetrekking : ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(SLinkOperations.getTarget(simulatie, MetaAdapterFactory.getReferenceLink(0x15970de38fe74b13L, 0x81c738b38d51c39aL, 0x6d2de15fcae53fb5L, 0xa37796bba047244L, "gegevenshuishouding")), MetaAdapterFactory.getContainmentLink(0x15970de38fe74b13L, 0x81c738b38d51c39aL, 0x6807b3aa0b72d4deL, 0x2b935eb9665dcfc2L, "rechtsbetrekkingen")), MetaAdapterFactory.getContainmentLink(0x2c493149da1d45e9L, 0x8ea2e0b0cfc3047aL, 0x2b935eb9660efb2eL, 0x2b935eb9660efb2fL, "rechtsbetrekkingen")))) {
    Simulatie__BehaviorDescriptor.schoonBerichten_idCRumITE5PD.invoke(simulatie);
    Object object = null;
    try {
      object = Interpreter.evalueer(simulatie, rechtsbetrekking);
    } catch (InterpreterRuntimeException e) {
    }
    SLinkOperations.setTarget(rechtsbetrekking, MetaAdapterFactory.getContainmentLink(0x2c493149da1d45e9L, 0x8ea2e0b0cfc3047aL, 0x57de6dcc3687a87eL, 0x57de6dcc3687a880L, "evaluatielog"), Interpreter.geefLijstMetBerichten());
    SPropertyOperations.set(rechtsbetrekking, MetaAdapterFactory.getProperty(0x2c493149da1d45e9L, 0x8ea2e0b0cfc3047aL, 0x57de6dcc3687a87eL, 0x57de6dcc3687a786L, "evaluatieresultaat"), "" + (((Boolean) object)));
  }
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:13,代码来源:Simulatie__BehaviorDescriptor.java


示例11: execute

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
@Override
public void execute(@NotNull String pattern) {
  if (SNodeOperations.isInstanceOf(SNodeOperations.getParent(_context.getNode()), MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde308L, "jetbrains.mps.samples.VoiceMenu.structure.Menu"))) {
    List<SNode> list = ListSequence.fromList(SLinkOperations.getChildren(SNodeOperations.cast(SNodeOperations.getParent(_context.getNode()), MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde308L, "jetbrains.mps.samples.VoiceMenu.structure.Menu")), MetaAdapterFactory.getContainmentLink(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde308L, 0x5b6b060cf3fde688L, "events"))).sort(new ISelector<SNode, String>() {
      public String select(SNode it) {
        return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger"));
      }
    }, false).toListSequence();
    for (SNode item : ListSequence.fromList(list)) {
      ListSequence.fromList(SLinkOperations.getChildren(SNodeOperations.cast(SNodeOperations.getParent(_context.getNode()), MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde308L, "jetbrains.mps.samples.VoiceMenu.structure.Menu")), MetaAdapterFactory.getContainmentLink(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde308L, 0x5b6b060cf3fde688L, "events"))).addElement(item);
    }
    SelectionUtil.selectCell(_context.getEditorContext(), _context.getNode(), SelectionManager.FIRST_ERROR_CELL + "|" + SelectionManager.FOCUS_POLICY_CELL + "|" + SelectionManager.FIRST_EDITABLE_CELL + "|" + SelectionManager.FIRST_CELL);
  }
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:15,代码来源:Event_TransformationMenu.java


示例12: getParameters

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
@Nullable
@Override
protected Iterable<? extends String> getParameters(TransformationMenuContext _context) {
  SNode[] array = Sequence.fromIterable(SNodeOperations.ofConcept(SNodeOperations.getAllSiblings(_context.getNode(), false), MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, "jetbrains.mps.samples.VoiceMenu.structure.Event"))).toGenericArray(SNode.class);

  List<String> list = ListSequence.fromList(new ArrayList<String>());

  ListSequence.fromList(list).addElement("1");
  ListSequence.fromList(list).addElement("2");
  ListSequence.fromList(list).addElement("3");
  ListSequence.fromList(list).addElement("4");
  ListSequence.fromList(list).addElement("5");
  ListSequence.fromList(list).addElement("6");
  ListSequence.fromList(list).addElement("7");
  ListSequence.fromList(list).addElement("8");
  ListSequence.fromList(list).addElement("9");
  ListSequence.fromList(list).addElement("0");
  ListSequence.fromList(list).addElement("*");
  ListSequence.fromList(list).addElement("#");

  for (SNode event : array) {

    if (ListSequence.fromList(list).contains(SPropertyOperations.getString(event, MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger")))) {
      ListSequence.fromList(list).removeElement(SPropertyOperations.getString(event, MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger")));
    }
  }
  return Sequence.fromArray(ListSequence.fromList(list).toGenericArray(String.class));
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:29,代码来源:Event_TransformationMenu.java


示例13: createRefCell_hvz52m_f0

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
private EditorCell createRefCell_hvz52m_f0() {
  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_Verwoording_InspectorBuilder_a.Inline_Builder_hvz52m_a5a(getEditorContext(), myNode, effectiveNode).createCell();
        }
      }, effectiveNode, "bevoegdheidTot");
      CellUtil.setupIDeprecatableStyles(effectiveNode, cell);
      setSemanticNodeToCells(cell, myNode);
      installDeleteActions_notnull(cell);
      return cell;
    }
  };
  provider.setRole("bevoegdheidTot");
  provider.setNoTargetText("<no bevoegdheidTot>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  if (editorCell.getRole() == null) {
    editorCell.setReferenceCell(true);
    editorCell.setRole("bevoegdheidTot");
  }
  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,代码来源:VerplichteBevoegdheidVerplichteGehoudenheid_Verwoording_InspectorBuilder_a.java


示例14: createChildCell

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
protected EditorCell createChildCell(SNode child) {
  EditorCell editorCell = getUpdateSession().updateChildNodeCell(child);
  editorCell.setAction(CellActionType.DELETE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x61be2dc6a1404defL, 0xa5927499aa2bac19L, 0x1c192b17c99b8af4L, 0x1c192b17c99b8b09L, "datum2"), child));
  editorCell.setAction(CellActionType.BACKSPACE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x61be2dc6a1404defL, 0xa5927499aa2bac19L, 0x1c192b17c99b8af4L, 0x1c192b17c99b8b09L, "datum2"), child));
  installCellInfo(child, editorCell);
  return editorCell;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:8,代码来源:VerschilTussenDatums_EditorBuilder_a.java


示例15: invokeSpecial0

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
@Override
protected <T> T invokeSpecial0(@NotNull SNode node, @NotNull SMethod<T> method, @Nullable Object[] parameters) {
  int methodIndex = BH_METHODS.indexOf(method);
  if (methodIndex < 0) {
    throw new BHMethodNotFoundException(this, method);
  }
  switch (methodIndex) {
    default:
      throw new BHMethodNotFoundException(this, method);
  }
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:12,代码来源:WorkSpace__BehaviorDescriptor.java


示例16: installElementCellActions

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的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));
    }
    if (elementCell.getSubstituteInfo() == null || elementCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
      elementCell.setSubstituteInfo(new SChildSubstituteInfo(elementCell, getNode(), MetaAdapterFactory.getContainmentLink(0x914c58c4068049cfL, 0x8599f5ced7a657d6L, 0x6a75f8ea191bcebL, 0x6a75f8ea191bcecL, "Commands"), elementNode));
    }
  }
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:13,代码来源:Body_EditorBuilder_a.java


示例17: installCellInfo

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的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, 0x46db58718361b134L, 0x46db58718361b137L, "expressie2"), child));
  }
  if (editorCell.getRole() == null) {
    editorCell.setRole("expressie2");
  }
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:9,代码来源:IsKleinerDan_EditorBuilder_a.java


示例18: execute

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的package包/类
@Override
public void execute(final SNode node, final EditorContext editorContext) {
  SNode newnode = SConceptOperations.createNewNode(MetaAdapterFactory.getConcept(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d94L, "ObjectiefRecht.structure.VerplichteBevoegdheidVerplichteGehoudenheid"));
  SPropertyOperations.set(newnode, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), SPropertyOperations.getString(node, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")));
  SLinkOperations.setTarget(newnode, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x4916e0625cee85caL, "bron"), SLinkOperations.getTarget(node, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x4916e0625cee85caL, "bron")));
  SLinkOperations.setTarget(newnode, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x4916e0625ce15ba0L, 0x4916e0625ce244bcL, "brongeldigTot"), SLinkOperations.getTarget(node, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x4916e0625ce15ba0L, 0x4916e0625ce244bcL, "brongeldigTot")));
  SLinkOperations.setTarget(newnode, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x4916e0625ce15ba0L, 0x4916e0625ce244baL, "brongeldigVan"), SLinkOperations.getTarget(node, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x4916e0625ce15ba0L, 0x4916e0625ce244baL, "brongeldigVan")));
  SLinkOperations.setTarget(newnode, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x3b480c1097819187L, "GeldigTot"), SLinkOperations.getTarget(node, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x3b480c1097819187L, "GeldigTot")));
  SLinkOperations.setTarget(newnode, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x3b480c109781917eL, "GeldigVan"), SLinkOperations.getTarget(node, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x3b480c109781917eL, "GeldigVan")));
  SLinkOperations.setTarget(newnode, MetaAdapterFactory.getReferenceLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x218d2fe3c8aff5f6L, "onderwerp"), SLinkOperations.getTarget(node, MetaAdapterFactory.getReferenceLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x218d2fe3c8aff5f6L, "onderwerp")));
  SLinkOperations.setTarget(newnode, MetaAdapterFactory.getReferenceLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x611073d615228d2eL, "rechtssubjectMetPlicht"), SLinkOperations.getTarget(node, MetaAdapterFactory.getReferenceLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x611073d615228d2eL, "rechtssubjectMetPlicht")));
  SLinkOperations.setTarget(newnode, MetaAdapterFactory.getReferenceLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x611073d615228d2dL, "rechtssubjectMetRecht"), SLinkOperations.getTarget(node, MetaAdapterFactory.getReferenceLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x611073d615228d2dL, "rechtssubjectMetRecht")));
  SNodeOperations.replaceWithAnother(node, newnode);
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:15,代码来源:VerplichteBevoegdheidVerplichteGehoudenheid_Intention.java


示例19: installCellInfo

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的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, 0x611073d615228d0dL, 0x3b480c1097819187L, "GeldigTot"), child));
  }
  if (editorCell.getRole() == null) {
    editorCell.setRole("GeldigTot");
  }
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:12,代码来源:AanspraakNaIngebrekeStellingPlicht_EN_EditorBuilder_a.java


示例20: installElementCellActions

import org.jetbrains.mps.openapi.model.SNode; //导入依赖的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));
    }
    if (elementCell.getSubstituteInfo() == null || elementCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
      elementCell.setSubstituteInfo(new SChildSubstituteInfo(elementCell, getNode(), MetaAdapterFactory.getContainmentLink(0x30ef095ad48945ffL, 0xa80f456a798ac125L, 0xb116d9d60df9be7L, 0xb116d9d60df9be8L, "objectinstanties"), elementNode));
    }
  }
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:13,代码来源:Tabel_EditorBuilder_a.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java VPackSlice类代码示例发布时间:2022-05-23
下一篇:
Java GitBranchUtil类代码示例发布时间: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