コード例 #1
0
 public IInteractionElement getElement(String handle, String kind) {
   IInteractionElement node = context.addEvent(mockSelection(handle, kind, source));
   ContextCorePlugin.getContextManager()
       .processInteractionEvent(
           mockUserEvent(
               handle,
               kind,
               source,
               (1 / ContextCore.getCommonContextScaling().getLandmark()) * -2),
           true);
   return node;
 }
コード例 #2
0
 public IInteractionElement mockEditorSelection(String handle, String kind) {
   context.addEvent(mockSelection(handle, kind, source));
   return context.addEvent(mockSelection(handle, kind, source));
 }
コード例 #3
0
 public IInteractionElement mockRaiseInterest(IInteractionElement node) {
   return context.addEvent(
       mockUserEvent(node.getHandleIdentifier(), node.getContentType(), source, 2));
 }