I am developing an editor for developing user interfaces based on Eclipse GMF.
So far I have developed an editor with a palette. The user can drag and drop user interface elements from the pallet and create a user interface on the canvas. I need to implement a tool to group these user interface elements.
Example: a user first creates a user interface by dragging items onto the canvas. Then he selects a set of user interface elements (for example, a label and a text field) and presses the "group" button. This will automatically place the elements in a dashed line rectangle.
I plan to develop a plugin that can receive information about selected user interface elements, delete them, create a group element (dashed line rectangular) on the canvas and insert deleted elements into 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 show me some useful resources.
source share