Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sapphire-dev] New topic in forum Sapphire, called How to Interface Diagram Editor Drag and Drop, by Tom Strong

Title: Eclipse Community Forums
Subject: How to Interface Diagram Editor Drag and Drop Author: Tom Strong Date: Wed, 06 June 2018 07:35
I work on OpenCPI producing a UI for framework operation. We've use sapphire both as a XML editor by forms and by the Diagram.

I have produced our own view for framework assets and I want to be able to drag and drop elements from that view into the diagram. We've implemented the ability to do so using the Eclipse Project Explore view.

I've found that LocalSelectionTransfer is used and I've gotten the diagram accept the drag. I need to know what I have to provide in the event (listener.dragSetData()) for the diagram to pick it up. I see in ObjectsTransferDropTargetListener a command is obtained and the current event is examined. I go to the my DragAndDrop Service and I see a Context is passed in and an IFile is pulled off. Prior Event processing is obscured.

Thanks for your help,
Tom
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]

Back to the top