eclipsesource / papyrus-gefx

A new Editor kind for Papyrus, based on GEFx and GMF Runtime
0 stars 2 forks source link

[Renderer] Add custom layouts/containers for Regions #5

Open CamilleLetavernier opened 6 years ago

CamilleLetavernier commented 6 years ago

Regions in a StateMachine Diagram can be freely arranged within a single StateMachine or Composite State. We should provide a custom Figure/Container to handle this.

The Regions container should have the same capabilities as in Papyrus, i.e. a set of nested Split Panes, which can be either Vertical or Horizontal:

statemachineregions

CamilleLetavernier commented 6 years ago

JavaFX SplitPanes won't work well with GEFx, due to conflicting event handlers. It might be possible to investigate this further and fix the issues.

Alternatively, we may use custom Handle Parts, installed between each Region when the StateMachine is selected, similar to what was done for CombinedFragments in Papyrus Sequence Diagrams: cflayout

A simplified version of the Regions layout can be used also for Partitions in an ActivityDiagram (Swimlanes), or CombinedFragment in the Sequence Diagram, to separate Operands.

Partitions may be a little bit specific, as they can also look like a Grid (Whereas Regions are more flexible and don't need any symmetry)