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