Drag and Drop of code

Post Reply
Steffenadensis
Posts: 31
Joined: Tue Jul 29, 2014 11:42 am

Drag and Drop of code

Post by Steffenadensis » Tue Jul 29, 2014 12:31 pm

Hello,

i noticed that if i mark text in the editor of odysseus, for example in an PQL script, the mouse act like i can cut and paste the marked code by holding the left mouse button, but it do not work.
Kind regards

T. Steffen

Operating system: Debian GNU/Linux 7.6 (wheezy)

admin
Site Admin
Posts: 5
Joined: Mon Jul 28, 2014 4:58 pm

Re: Drag and Drop of code

Post by admin » Tue Jul 29, 2014 2:46 pm

I can reproduce it.

Seems to be a configuration problem in the rcp application.

java.lang.NullPointerException
at org.eclipse.ui.internal.EditorSiteDragAndDropServiceImpl$1.dragLeave(EditorSiteDragAndDropServiceImpl.java:107)
at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:70)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

I will make a (low prio) ticket for it.

If someone has an idea ;-)

User avatar
ckuka
Posts: 35
Joined: Tue Jul 29, 2014 10:55 am
Location: Shanghai, P.R. China/中国上海
Contact:

Re: Drag and Drop of code

Post by ckuka » Tue Jul 29, 2014 3:10 pm

Looks like the OdysseusScriptEditor has to implement ITextEditorDropTargetListener.
kind regards / 祝好
Christian Kuka

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest