protected int getCursor(DropTargetEvent event) { StructuredTextViewer textViewer = editor.getTextEditor().getTextViewer(); return VEXTextEditorHelper.getOffsetAtPoint(textViewer, new Point(event.x, event.y)); }
protected Node getCurrentNode(DropTargetEvent event) { StructuredTextViewer textViewer = editor.getTextEditor().getTextViewer(); return VEXTextEditorHelper.getNode(textViewer, getCursor(event)); }