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; }
public IInteractionElement mockEditorSelection(String handle, String kind) { context.addEvent(mockSelection(handle, kind, source)); return context.addEvent(mockSelection(handle, kind, source)); }
public IInteractionElement mockRaiseInterest(IInteractionElement node) { return context.addEvent( mockUserEvent(node.getHandleIdentifier(), node.getContentType(), source, 2)); }