I'm developing an editor to design user Interfaces based on eclipse GMF.
Up to now I have developed an editor with a palette. The user can drag and drop UI elements from pallet and design the UI on canvas. I need to implement the facility to group these UI elements.
EX: User first design the UI by dragging and dropping elements to the canvas.Then he select a set of UI elements (say a label and text box) and press "group" button. It will automatically put the elements within a dashed line rectangle.
I'm planning to develop a plugin that can get info about selected ui elements, delete them, create a group element (dashed line rectangular) in canvas and insert deleted elements to it.
But I don't know where to start.
So, I want to know how to create/delete nodes programmatically in GMF.
If you know the relevant codes, please share them and please point me to some useful resources.