• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java SNodePointer类的典型用法和代码示例

java 1次浏览

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

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

示例1: getParts

点赞 3

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@Override
@NotNull
protected List<MenuPart<TransformationMenuItem, TransformationMenuContext>> getParts(TransformationMenuContext _context) {
  List<MenuPart<TransformationMenuItem, TransformationMenuContext>> result = new ArrayList<MenuPart<TransformationMenuItem, TransformationMenuContext>>();
  if (ListSequence.fromListAndArray(new ArrayList<String>(), MenuLocations.CONTEXT_ACTIONS_TOOL).contains(_context.getMenuLocation())) {
    result.add(new DefaultConceptMenusTransformationMenuPart(SModelUtil.getDirectSuperConcepts(MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x420d89797f0d16dbL, "jetbrains.mps.samples.VoiceMenu.structure.HangUp"))) {
      @NotNull
      @Override
      public List<TransformationMenuItem> createItems(@NotNull TransformationMenuContext context) {
        context.getEditorMenuTrace().pushTraceInfo();
        context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase("include menus for all the direct superconcepts of " + "HangUp", new SNodePointer("r:7c1e5bbb-2d18-4cf3-a11d-502be6b13261(jetbrains.mps.samples.VoiceMenu.editor)", "4660170996522192360")));
        try {
          return super.createItems(context);
        } finally {
          context.getEditorMenuTrace().popTraceInfo();
        }
      }

    });
  }
  return result;
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:23,
代码来源:HangUp_TransformationMenu.java

示例2: createItem

点赞 3

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@Nullable
protected TransformationMenuItem createItem(TransformationMenuContext context) {
  Event_TransformationMenu.TMP_SubMenu_8shh52_a5.TMP_Action_8shh52_b0f.Item item = new Event_TransformationMenu.TMP_SubMenu_8shh52_a5.TMP_Action_8shh52_b0f.Item(context);
  String description;
  try {
    description = "single item: " + item.getLabelText("");
  } catch (Throwable t) {
    Logger.getLogger(getClass()).error("Exception while executing getText of the item " + item, t);
    return null;
  }
  context.getEditorMenuTrace().pushTraceInfo();
  try {
    context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase(description, new SNodePointer("r:7c1e5bbb-2d18-4cf3-a11d-502be6b13261(jetbrains.mps.samples.VoiceMenu.editor)", "6198827212361908988")));
    item.setTraceInfo(context.getEditorMenuTrace().getTraceInfo());
  } finally {
    context.getEditorMenuTrace().popTraceInfo();
  }
  return item;
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:20,
代码来源:Event_TransformationMenu.java

示例3: createItem

点赞 3

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@Nullable
protected TransformationMenuItem createItem(TransformationMenuContext context) {
  Activity_TransformationMenu.TMP_SubMenu_rgk9zw_a0.TMP_Action_rgk9zw_a0a.Item item = new Activity_TransformationMenu.TMP_SubMenu_rgk9zw_a0.TMP_Action_rgk9zw_a0a.Item(context);
  String description;
  try {
    description = "single item: " + item.getLabelText("");
  } catch (Throwable t) {
    Logger.getLogger(getClass()).error("Exception while executing getText of the item " + item, t);
    return null;
  }
  context.getEditorMenuTrace().pushTraceInfo();
  try {
    context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase(description, new SNodePointer("r:7c1e5bbb-2d18-4cf3-a11d-502be6b13261(jetbrains.mps.samples.VoiceMenu.editor)", "971041030088529427")));
    item.setTraceInfo(context.getEditorMenuTrace().getTraceInfo());
  } finally {
    context.getEditorMenuTrace().popTraceInfo();
  }
  return item;
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:20,
代码来源:Activity_TransformationMenu.java

示例4: createItem

点赞 3

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@Nullable
protected TransformationMenuItem createItem(TransformationMenuContext context) {
  Timeout_TransformationMenu.TMP_SubMenu_4a1v5f_a0.TMP_Action_4a1v5f_b0a.Item item = new Timeout_TransformationMenu.TMP_SubMenu_4a1v5f_a0.TMP_Action_4a1v5f_b0a.Item(context);
  String description;
  try {
    description = "single item: " + item.getLabelText("");
  } catch (Throwable t) {
    Logger.getLogger(getClass()).error("Exception while executing getText of the item " + item, t);
    return null;
  }
  context.getEditorMenuTrace().pushTraceInfo();
  try {
    context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase(description, new SNodePointer("r:7c1e5bbb-2d18-4cf3-a11d-502be6b13261(jetbrains.mps.samples.VoiceMenu.editor)", "8911965566431952852")));
    item.setTraceInfo(context.getEditorMenuTrace().getTraceInfo());
  } finally {
    context.getEditorMenuTrace().popTraceInfo();
  }
  return item;
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:20,
代码来源:Timeout_TransformationMenu.java

示例5: createItem

点赞 3

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@Nullable
protected TransformationMenuItem createItem(TransformationMenuContext context) {
  Empty_TransformationMenu.TMP_Param_8h8mrh_a1.TMP_Action_8h8mrh_a0b.Item item = new Empty_TransformationMenu.TMP_Param_8h8mrh_a1.TMP_Action_8h8mrh_a0b.Item(context);
  String description;
  try {
    description = "single item: " + item.getLabelText("");
  } catch (Throwable t) {
    Logger.getLogger(getClass()).error("Exception while executing getText of the item " + item, t);
    return null;
  }
  context.getEditorMenuTrace().pushTraceInfo();
  try {
    context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase(description, new SNodePointer("r:7c1e5bbb-2d18-4cf3-a11d-502be6b13261(jetbrains.mps.samples.VoiceMenu.editor)", "3202371390661149450")));
    item.setTraceInfo(context.getEditorMenuTrace().getTraceInfo());
  } finally {
    context.getEditorMenuTrace().popTraceInfo();
  }
  return item;
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:20,
代码来源:Empty_TransformationMenu.java

示例6: createItem

点赞 3

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@Nullable
protected TransformationMenuItem createItem(TransformationMenuContext context) {
  Command_TransformationMenu.TMP_SubMenu_8e2zmm_a1.TMP_Action_8e2zmm_c0b.Item item = new Command_TransformationMenu.TMP_SubMenu_8e2zmm_a1.TMP_Action_8e2zmm_c0b.Item(context);
  String description;
  try {
    description = "single item: " + item.getLabelText("");
  } catch (Throwable t) {
    Logger.getLogger(getClass()).error("Exception while executing getText of the item " + item, t);
    return null;
  }
  context.getEditorMenuTrace().pushTraceInfo();
  try {
    context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase(description, new SNodePointer("r:7c1e5bbb-2d18-4cf3-a11d-502be6b13261(jetbrains.mps.samples.VoiceMenu.editor)", "4660170996523424455")));
    item.setTraceInfo(context.getEditorMenuTrace().getTraceInfo());
  } finally {
    context.getEditorMenuTrace().popTraceInfo();
  }
  return item;
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:20,
代码来源:Command_TransformationMenu.java

示例7: getParts

点赞 3

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@Override
@NotNull
protected List<MenuPart<TransformationMenuItem, TransformationMenuContext>> getParts(TransformationMenuContext _context) {
  List<MenuPart<TransformationMenuItem, TransformationMenuContext>> result = new ArrayList<MenuPart<TransformationMenuItem, TransformationMenuContext>>();
  if (ListSequence.fromListAndArray(new ArrayList<String>(), MenuLocations.CONTEXT_ACTIONS_TOOL).contains(_context.getMenuLocation())) {
    result.add(new DefaultConceptMenusTransformationMenuPart(SModelUtil.getDirectSuperConcepts(MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5dfe7d133997fdc5L, "jetbrains.mps.samples.VoiceMenu.structure.Action"))) {
      @NotNull
      @Override
      public List<TransformationMenuItem> createItems(@NotNull TransformationMenuContext context) {
        context.getEditorMenuTrace().pushTraceInfo();
        context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase("include menus for all the direct superconcepts of " + "Action", new SNodePointer("r:7c1e5bbb-2d18-4cf3-a11d-502be6b13261(jetbrains.mps.samples.VoiceMenu.editor)", "4660170996523432008")));
        try {
          return super.createItems(context);
        } finally {
          context.getEditorMenuTrace().popTraceInfo();
        }
      }

    });
  }
  if (ListSequence.fromListAndArray(new ArrayList<String>(), MenuLocations.CONTEXT_ACTIONS_TOOL).contains(_context.getMenuLocation())) {
    result.add(new Action_TransformationMenu.TMP_SubMenu_h8wml4_a1());
  }
  return result;
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:26,
代码来源:Action_TransformationMenu.java

示例8: getParts

点赞 3

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@Override
@NotNull
protected List<MenuPart<TransformationMenuItem, TransformationMenuContext>> getParts(TransformationMenuContext _context) {
  List<MenuPart<TransformationMenuItem, TransformationMenuContext>> result = new ArrayList<MenuPart<TransformationMenuItem, TransformationMenuContext>>();
  if (ListSequence.fromListAndArray(new ArrayList<String>(), MenuLocations.CONTEXT_ACTIONS_TOOL).contains(_context.getMenuLocation())) {
    result.add(new DefaultConceptMenusTransformationMenuPart(SModelUtil.getDirectSuperConcepts(MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5dfe7d1339980acaL, "jetbrains.mps.samples.VoiceMenu.structure.Back"))) {
      @NotNull
      @Override
      public List<TransformationMenuItem> createItems(@NotNull TransformationMenuContext context) {
        context.getEditorMenuTrace().pushTraceInfo();
        context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase("include menus for all the direct superconcepts of " + "Back", new SNodePointer("r:7c1e5bbb-2d18-4cf3-a11d-502be6b13261(jetbrains.mps.samples.VoiceMenu.editor)", "4660170996511643335")));
        try {
          return super.createItems(context);
        } finally {
          context.getEditorMenuTrace().popTraceInfo();
        }
      }

    });
  }
  return result;
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:23,
代码来源:Back_TransformationMenu.java

示例9: createItem

点赞 3

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@Nullable
protected TransformationMenuItem createItem(TransformationMenuContext context) {
  Menu_TransformationMenu.TMP_Action_caopkk_a3.Item item = new Menu_TransformationMenu.TMP_Action_caopkk_a3.Item(context);
  String description;
  try {
    description = "single item: " + item.getLabelText("");
  } catch (Throwable t) {
    Logger.getLogger(getClass()).error("Exception while executing getText of the item " + item, t);
    return null;
  }
  context.getEditorMenuTrace().pushTraceInfo();
  try {
    context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase(description, new SNodePointer("r:7c1e5bbb-2d18-4cf3-a11d-502be6b13261(jetbrains.mps.samples.VoiceMenu.editor)", "5283568769197469293")));
    item.setTraceInfo(context.getEditorMenuTrace().getTraceInfo());
  } finally {
    context.getEditorMenuTrace().popTraceInfo();
  }
  return item;
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:20,
代码来源:Menu_TransformationMenu.java

示例10: createItem

点赞 3

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@Nullable
protected TransformationMenuItem createItem(TransformationMenuContext context) {
  WorkSpace_TransformationMenu.TMP_SubMenu_tva3ah_c0.TMP_Action_tva3ah_c2a.Item item = new WorkSpace_TransformationMenu.TMP_SubMenu_tva3ah_c0.TMP_Action_tva3ah_c2a.Item(context);
  String description;
  try {
    description = "single item: " + item.getLabelText("");
  } catch (Throwable t) {
    Logger.getLogger(getClass()).error("Exception while executing getText of the item " + item, t);
    return null;
  }
  context.getEditorMenuTrace().pushTraceInfo();
  try {
    context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase(description, new SNodePointer("r:7c1e5bbb-2d18-4cf3-a11d-502be6b13261(jetbrains.mps.samples.VoiceMenu.editor)", "8720745441960174180")));
    item.setTraceInfo(context.getEditorMenuTrace().getTraceInfo());
  } finally {
    context.getEditorMenuTrace().popTraceInfo();
  }
  return item;
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:20,
代码来源:WorkSpace_TransformationMenu.java

示例11: createMenuItems

点赞 2

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@NotNull
@Override
public List<SubstituteMenuItem> createMenuItems(@NotNull SubstituteMenuContext context) {
  context.getEditorMenuTrace().pushTraceInfo();
  context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase("default substitute menu for ContextReference. Generated from implicit smart reference attribute.", new SNodePointer("r:5e8e0652-8a9b-4dc5-a599-f2416177a2d1(jetbrains.mps.samples.Text.structure)", "479456951540049481")));
  try {
    return super.createMenuItems(context);
  } finally {
    context.getEditorMenuTrace().popTraceInfo();
  }
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:12,
代码来源:ContextReference_SubstituteMenu.java

示例12: createMenuItems

点赞 2

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@NotNull
@Override
public List<SubstituteMenuItem> createMenuItems(@NotNull SubstituteMenuContext context) {
  context.getEditorMenuTrace().pushTraceInfo();
  context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase("default substitute menu for ReferentieNaarToestand. Generated from implicit smart reference attribute.", new SNodePointer("r:c031b870-a41c-4293-b637-5b2b15a59218(ObjectiefRecht.structure)", "8478423347125903418")));
  try {
    return super.createMenuItems(context);
  } finally {
    context.getEditorMenuTrace().popTraceInfo();
  }
}
 

开发者ID:diederikd,
项目名称:DeBrug,
代码行数:12,
代码来源:ReferentieNaarToestand_SubstituteMenu.java

示例13: createMenuItems

点赞 2

import jetbrains.mps.smodel.SNodePointer; //导入依赖的package包/类
@NotNull
@Override
public List<TransformationMenuItem> createMenuItems(@NotNull TransformationMenuContext context) {
  context.getEditorMenuTrace().pushTraceInfo();
  context.getEditorMenuTrace().setDescriptor(new EditorMenuDescriptorBase("default transformation menu for " + "Menu", new SNodePointer("r:7c1e5bbb-2d18-4cf3-a11d-502be6b13261(jetbrains.mps.samples.VoiceMenu.editor)", "6198827212360090600")));
  try {
    return super.createMenuItems(context);
  } finally {
    context.getEditorMenuTrace().popTraceInfo();
  }
}
 

开发者ID:vaclav,
项目名称:voicemenu,
代码行数:12,
代码来源:Menu_TransformationMenu.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)