eclipsesource / eclipsesource/papyrus-gefx

[Interactions] Support Context Menus in Diagrams

Open
#29 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

We currently can't open a context menu in a GEFx Diagram. We should implement this.

There are a few options for this:

- Use the Eclipse Context Menus (Via the Eclipse Menu Service), and open an SWT Menu on top of the Diagram. This would be the simplest solution
- Use the Eclipse Menu Service with a custom (JavaFX) menu. This would be more portable. However, JavaFX Context Menus in an FXCanvas don't work on Linux (Plain JavaFX Context Menus work fine, and FX-in-SWT ContextMenus work fine on other platforms as well)

We could also go for a complete custom approach, or hide the Eclipse Menu Service behind our own API to allow deployment outside of Eclipse (But in general we want to reuse the Eclipse capabilities for defining menus, so we'll probably still rely on the Eclipse Menu Service)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by examining the GEFx Diagram integration and the Eclipse Menu Service, SWT, and JavaFX alternatives described in the issue. Resolve which menu approach and deployment scope to use, then verify that a context menu opens in diagrams on the relevant platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.