Skip to content

Context Buttons for Selection and Hover of EditParts #261

@azoitl

Description

@azoitl

@sebHollersbacher and I are currently working on a prototype for a context button infrastructure for the graphical editors of 4diac IDE. This is inspired by the the ContextButtons in Graphiti but we hope to get a bit simpler API.

ContextButton-Graphiti ContextButton-Graphiti

Based on the Eclipse Platform's Command Infrastructure our first prototype can show buttons on all 4 sides of a Figure. When the user moves mouse to 1 side, it hides all the other sides.

ContextButton-left ContextButton-sides ContextButton top

In our work we tried to keep the whole infrastructure as generic as possible. Therefore we think we could upstream it to GEF Classic.
Our approach would be to integrate it in the NonResizableEditPolicy in such a way that it will not affect any existing code. But users who would like to have it would just need to implement a dedicated response in the getAdapter method.

The first version of our prototype can be found in the 4diac IDE Gerrit.

What do you think is this something we should move to GEF Classic or keep it in 4diac IDE.

\cc @pcdavid @Phillipus @ptziegler

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions