Skip to main content



      Home
Home » Eclipse Projects » e(fx)clipse » [Ann] Nightly builds have DnD support
[Ann] Nightly builds have DnD support [message #1350263] Mon, 12 May 2014 11:26 Go to next message
Eclipse UserFriend
Hi,

If happen to not read my blog [1] - I've just added DnD support between
stacks (including reordering).

Please note that:
a) this feature is still very new
b) there are bugs in JavaFX TabPane who does strange things sometimes
c) JavaFX misses the required API so we do a lot of reflection foo (we
are working with JavaFX people to get API!)

Still I think the support is useable and I'd like to hear your opinion
on it.

To get DnD you need to add
"bundleclass://org.eclipse.fx.ui.workbench.renderers.base/org.eclipse.fx.ui.workbench.renderers.base.addons.DnDAddon"
to your addons.

The default implementation shows an insert-mark when you reorder and a
tab-preview when moving to another container.

You can customize the feedback by providing an OSGi-Service of type
org.eclipse.fx.ui.workbench.renderers.base.services.DnDFeedbackService.

Tom

[1]http://tomsondev.bestsolution.at/2014/05/12/e4-on-javafx-drag-and-drop-between-stacks-javafx-tabpanes/
Re: [Ann] Nightly builds have DnD support [message #1383972 is a reply to message #1350263] Tue, 27 May 2014 10:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi Tom,

First, i'm French... and sorry for my English...

Dnd support seems working fine and the rendering is nicer than it was with SWT

When one of my container becomes empty (because i dragged all of his parts), i can't anymore drop an other part in it?
Re: [Ann] Nightly builds have DnD support [message #1384011 is a reply to message #1383972] Tue, 27 May 2014 15:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Yes that's on my list but not yet implemented appropiately - similar to
stack splitting. I also need to add the CleanUpAddon support which would
by default collapse empty stacks.

Tom

On 27.05.14 17:16, Bastien Bart wrote:
> Hi Tom,
>
> First, i'm French... and sorry for my English...
>
> Dnd support seems working fine and the rendering is nicer than it was
> with SWT
>
> When one of my container becomes empty (because i dragged all of his
> parts), i can't anymore drop an other part in it?
Re: [Ann] Nightly builds have DnD support [message #1384013 is a reply to message #1384011] Tue, 27 May 2014 16:04 Go to previous message
Eclipse UserFriend
BTW unlike on SWT the feedback is completely customizable. See
https://wiki.eclipse.org/Efxclipse/Runtime/e4#DnDFeedbackService

Tom

On 27.05.14 21:59, Tom Schindl wrote:
> Hi,
>
> Yes that's on my list but not yet implemented appropiately - similar to
> stack splitting. I also need to add the CleanUpAddon support which would
> by default collapse empty stacks.
>
> Tom
>
> On 27.05.14 17:16, Bastien Bart wrote:
>> Hi Tom,
>>
>> First, i'm French... and sorry for my English...
>>
>> Dnd support seems working fine and the rendering is nicer than it was
>> with SWT
>>
>> When one of my container becomes empty (because i dragged all of his
>> parts), i can't anymore drop an other part in it?
>
Previous Topic:Activation of the window context
Next Topic:E4 DI in "onAction" methods
Goto Forum:
  


Current Time: Sun Apr 20 03:54:16 EDT 2025

Powered by FUDForum. Page generated in 0.03824 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top