[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Drag and drop (DnD) onto CompilationUnitEditor (JDT Java editor)

Tom Eicher wrote:

Neeraj Mahajan wrote:

Is it possible for a plugin to drop onto CompilationUnitEditor (i.e. JDT
Java editor) from lets say a palette? Lets assume that the palette has an
item - "Method". So when I drag and drop this item onto Java editor a method
is added with some default definition.


This is not currently supported - what you would need is a drop handler extension point that you could contribute to. Feel free to file an enhancement request against jdt-text.

It would be cool to be able to drag and drop class names and methods from project explorer and/or from outline views into the Java editor.


In general everybody will benefit from generic extension points, so you can do things like drag-n-drop between source code editor and UML or GUI editors (e.g. dragging a button into source from a form editor will paste a variable or field name that hold an instance of this component).

 regards,
 Eugene