Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » how to launch a wizard when drag and drop an item from palette ?
how to launch a wizard when drag and drop an item from palette ? [message #240589] Fri, 11 January 2008 08:27 Go to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

Hi,

I would like to know how can I do to launch a wizard when a user drag
and drop an item from palette to the edit part.

Thanks

Regards,
Alexandre
Re: how to launch a wizard when drag and drop an item from palette ? [message #240607 is a reply to message #240589] Fri, 11 January 2008 09:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

I've tryed to create a class who extends
TemplateTransferDragSourceListener and registered it using

/**
* Creates the PaletteViewerProvider.
*
* @return PaletteViewerProvider The PaletteViewerProvider
*/
protected PaletteViewerProvider createPaletteViewerProvider() {
return new PaletteViewerProvider(getEditDomain()) {
protected void configurePaletteViewer(PaletteViewer viewer) {
super.configurePaletteViewer(viewer);
// Create a DragSourceListener for this Palette Viewer
// The DropSourceListener is added to the Palette in
// initializeGraphicalViewer()
viewer
.addDragSourceListener(new PaletteTransferDragAndDrop(
viewer));
}
};
}
but dragStart is never called.

What do I've missed ?

Thanks

Regards,
Alexandre
Re: how to launch a wizard when drag and drop an item from palette ? [message #240612 is a reply to message #240607] Fri, 11 January 2008 13:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

I also tryed to initialize the palette viewer like the following
protected final void initializePaletteViewer() {
super.initializePaletteViewer();
getPaletteViewer().addDropTargetListener(new
PaletteTransferDragAndDropListener(getPaletteViewer()));
}

but doesn't work to

Any idea ?
Re: how to launch a wizard when drag and drop an item from palette ? [message #240768 is a reply to message #240589] Tue, 15 January 2008 15:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

nobody could help ? I could not find any solution to this problem
Re: how to launch a wizard when drag and drop an item from palette ? [message #240867 is a reply to message #240768] Mon, 21 January 2008 22:13 Go to previous message
Eclipse UserFriend
Originally posted by: tom.seidel.spiritlink.de

Alexandre Jaquet schrieb:
> nobody could help ? I could not find any solution to this problem
A time ago I've implemented something similar. You could adapt the code
to your requirements, see
http://www.richclient2.eu/2006_10_04/drag-and-drop-from-jfac e-viewer-to-gef-editor/

Tom
Previous Topic:ZoomManager bug?!
Next Topic:Use HTML tag in draw2d tooltip
Goto Forum:
  


Current Time: Fri Apr 19 11:17:11 GMT 2024

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

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

Back to the top