Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 445846

Summary: Add support for creation of Nodes
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.wienand
Version: unspecified   
Target Milestone: 3.10.0 (Mars) M4   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Nyßen CLA 2014-10-03 04:40:06 EDT
We need to add support for creation of nodes within MVC and MVC.FX, and add it to the MVC.FX.UI example.
Comment 1 Matthias Wienand CLA 2014-11-14 10:09:21 EST
I added support for the creation of nodes within MVC by means of a CreationPolicy which delegates to the ContentPolicy to build the necessary operations. The CreationPolicy is probably best bound to the root part, currently, as it is not necessarily part-bound at all. The actual creation of the new content object has to be performed by the user and can delegate to the CreationPolicy of the root part.

The creation process is independent from the UI toolkit. That's why nothing was added to MVC.FX to support creation.

To support creation within the MVC.FX.UI example, I added an FXCreateShapeOnClickPolicy to create a new shape via right-click.

The code is published on the master branch. Therefore I resolve this ticket as fixed, for target milestone 3.10.0M4.