| Summary: | Add support for creation of Nodes | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Alexander Nyßen <nyssen> |
| Component: | GEF MVC | Assignee: | 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
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. |