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