コード例 #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));
 }