0

I am new to GEF. I would like to post some doubts here. I have created a rectangle figure on the graphical editor. Now I am unable to select that figure. In order to select a figure, do I need to use the edit policies and commands? Also the delete,redo and undo actions can that all be used in a view without an editor?

user414967
  • 5,225
  • 10
  • 40
  • 61

1 Answers1

1

Enabling selection is done using edit policies. Since you are new to GEF, you can check out my tutorial on the subject. You can also read more information from the sources I have found.

Good luck!

vainolo
  • 6,907
  • 4
  • 24
  • 47
  • I have the same problem, The tutorial is great, but can you provide a short answer to why selection might not be working? Or, maybe a link to a specific lesson we could have a look at? – Willem Aug 09 '13 at 17:43
  • @Willem [Part 7](http://www.vainolo.com/2011/07/07/creating-a-gef-editor-%E2%80%93-part-7-moving-elements-and-direct-editing/) of my tutorial shows how to activate selection when a new edit policy is added to the parent. If you have a specific question ask it on SO and if I know the answer I'll be glad to help – vainolo Aug 11 '13 at 01:28
  • @Vainolo: The problem I had disappeared when I added DefaultEditDomain. After analyzing it a bit I thought that the selection started to work because the domain provides the selection tool by default. I was satisfied that it is the correct solution, so I stopped further exploration. Thank you. – Willem Aug 20 '13 at 16:05