Skip to content

Make spyPart shortcut attribute optional#2326

Open
vogella wants to merge 1 commit into
eclipse-pde:masterfrom
vogella:spy-processor-optional-shortcut
Open

Make spyPart shortcut attribute optional#2326
vogella wants to merge 1 commit into
eclipse-pde:masterfrom
vogella:spy-processor-optional-shortcut

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented May 4, 2026

The shortcut attribute on the org.eclipse.pde.spy.core.spyPart extension point is not declared as required in its schema, but SpyProcessor would NPE when a contribution omitted it (keySequence.equals in bindSpyKeyBinding). This skips key-binding registration when no shortcut is provided, so a spy can opt into discoverability via the spy stack toolbar without claiming a global keystroke.

Planned for 4.41

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

Test Results

  126 files  ±0    126 suites  ±0   34m 55s ⏱️ - 1m 47s
3 506 tests ±0  3 452 ✅ ±0   54 💤 ±0  0 ❌ ±0 
9 321 runs  ±0  9 191 ✅ ±0  130 💤 ±0  0 ❌ ±0 

Results for commit 86474d5. ± Comparison against base commit f095774.

♻️ This comment has been updated with latest results.

@vogella vogella force-pushed the spy-processor-optional-shortcut branch 2 times, most recently from e5ecc06 to 84b6d63 Compare May 4, 2026 18:38
The shortcut attribute on the org.eclipse.pde.spy.core.spyPart extension
point is not declared as required in its schema, but SpyProcessor would
NPE when a contribution omitted it (keySequence.equals in
bindSpyKeyBinding). Skip key-binding registration when no shortcut is
provided so a spy can opt into discoverability via the spy stack toolbar
without claiming a global keystroke.
@vogella vogella force-pushed the spy-processor-optional-shortcut branch 2 times, most recently from ac39ed4 to 86474d5 Compare May 18, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant