Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » A problem about DND in GEF TreeViewer
A problem about DND in GEF TreeViewer [message #180548] Sun, 08 May 2005 10:12 Go to next message
zhang wei is currently offline zhang weiFriend
Messages: 84
Registered: July 2009
Member
Hi all,

I have implement TreeViewer(GEF) in my Editor,
and create a PaletteView(extends ViewPart) for my editor.

In PaletteView here are some Entry can add to my TreeViewer.
So the PaletteView just like GEF Logic Example Editor's Palette.

But when I select a Entry and move mouse to my TreeViewer,
I got the NO icon, can't add the entry to the TreeViewer.

What's wrong?
Have any hints?

Thanks.
Re: A problem about DND in GEF TreeViewer [message #180583 is a reply to message #180548] Mon, 09 May 2005 10:12 Go to previous message
zhang wei is currently offline zhang weiFriend
Messages: 84
Registered: July 2009
Member
wei zhang wrote:

> Hi all,

> I have implement TreeViewer(GEF) in my Editor,
> and create a PaletteView(extends ViewPart) for my editor.

> In PaletteView here are some Entry can add to my TreeViewer.
> So the PaletteView just like GEF Logic Example Editor's Palette.

> But when I select a Entry and move mouse to my TreeViewer,
> I got the NO icon, can't add the entry to the TreeViewer.

> What's wrong?
> Have any hints?

Well, I know what's wrong with it.
TreeContainerEditPolicy#getCreateCommand(CreateRequest) method must
return a command, but I return a null.
So I always got NO icon.
Previous Topic:How to create a graph with the diagram created
Next Topic:How to make a delete menu enabled?
Goto Forum:
  


Current Time: Fri Apr 26 01:21:28 GMT 2024

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

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

Back to the top