Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Dragging TreeItem with markup
Dragging TreeItem with markup [message #1851629] Mon, 11 April 2022 13:19 Go to next message
Julien Guigné is currently offline Julien GuignéFriend
Messages: 2
Registered: April 2022
Junior Member
In our RAP application, we've got a SWT Tree - without JFace viewer.
The Tree is RWT.MARKUP_ENABLED, each item is filled with a HTML span.

The problem is that we need to enable drag and drop inside the tree, and drag translucent content seems to be based on first column text and image.
HTML markup content appears under cursor while dragging, which is troublesome.

index.php/fa/41912/0/

Obviously the issue is resolved without using markup on first column, but we wouldn't want to do that.

I also tried to embed markup inside a Label, and Label inside TreeItem with cell editor, but result is not very satisfying (Label area is not draggable).

Is there a way to adjust a user-friendly content under cursor, or hide the content ?

Is it a known limitation ?

Or should we use Templates instead ?

Regards,

Julien.
Re: Dragging TreeItem with markup [message #1851639 is a reply to message #1851629] Mon, 11 April 2022 15:22 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2381
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

I've just tested the DND on Tree with markup in our Examples demo and it's working as expected (see attached patch).
Please provide a self running snippet to demonstrate the problem.

Best regards,
Ivan
Re: Dragging TreeItem with markup [message #1851640 is a reply to message #1851629] Mon, 11 April 2022 15:25 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2381
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
.... now I see... The problem is about showing the HTML markup while dragging, but the drag-and-drop itself is working fine. Isn't it?
Please open an enhancement request about this issue.

[Updated on: Mon, 11 April 2022 15:32]

Report message to a moderator

Re: Dragging TreeItem with markup [message #1851643 is a reply to message #1851640] Mon, 11 April 2022 15:58 Go to previous messageGo to next message
Julien Guigné is currently offline Julien GuignéFriend
Messages: 2
Registered: April 2022
Junior Member
Ivan Furnadjiev wrote on Mon, 11 April 2022 15:25
.... now I see... The problem is about showing the HTML markup while dragging, but the drag-and-drop itself is working fine. Isn't it?

That's it.

Thank you for your answer.

Have you got a snippet of tree or table with Template, maybe it suits better on dragging ? Seems appropriate in our case...https://www.eclipse.org/rap/developers-guide/devguide.php?topic=tree-table.html&version=3.14#templates

[Updated on: Mon, 11 April 2022 16:02]

Report message to a moderator

Re: Dragging TreeItem with markup [message #1851660 is a reply to message #1851643] Tue, 12 April 2022 06:53 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2381
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

please open an enhancement request and it will be fixed in the upcoming RAP 3.21 release.

Best regards,
Ivan
Previous Topic:How to attach RAP Application to a jetty instance created by org.eclipse.jetty.osgi.boot
Next Topic:Broken JavaDocs links in online dveloper's guide since RAP 3.15
Goto Forum:
  


Current Time: Mon Sep 26 09:52:57 GMT 2022

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

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

Back to the top