| Problem with Child creation using the palette [message #215289] | 
Fri, 28 April 2006 14:08  | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: luiinge.fiv.upv.es 
 
Hello, I'm newbie in GEF programming, and I need help!! 
 
Well, after reading lots of tutorials and examples, I have started my own  
graphical editor. 
My model is a tree of components, which one with its own EditPart. 
 
When the editor opens, it loads rightly the root component (the diagram,  
that uses a GridLayer). 
But when I try to create a child component with the palette, the cursor  
shows the forbidden cursor and I can't to add the child. 
 
Why is happen that? 
 
I suposse the problem is whith the EditPart policies (I'm using no policies  
at the moment), 
or perhaps with the CreationTool. 
I create the tool entry with: 
 
 new CombinedTemplateCreationEntry("text","text", new  
SimpleFactory(Diagram..class), null,null) 
 
Have I to add the drag/drop listeners attached the palette entry and the  
editpart manually? 
 
Where is the problem?? 
 
Ah, please sorry my bad bad english!!
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.02852 seconds