Skip to content

Make spyPart shortcut attribute optional#2326

Open
vogella wants to merge 2 commits intoeclipse-pde:masterfrom
vogella:spy-processor-optional-shortcut
Open

Make spyPart shortcut attribute optional#2326
vogella wants to merge 2 commits intoeclipse-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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

Test Results

  126 files  ±0    126 suites  ±0   35m 37s ⏱️ + 2m 58s
3 502 tests  - 1  3 448 ✅ +69   54 💤 ±0  0 ❌  - 69 
9 321 runs   - 1  9 191 ✅ +74  130 💤 ±0  0 ❌  - 74 

Results for commit b9bee88. ± Comparison against base commit 5c5792d.

This pull request removes 1 test.
TestPDETemplates ‑ [3: RCP 3.x application (minimal)]

♻️ This comment has been updated with latest results.

@vogella vogella force-pushed the spy-processor-optional-shortcut branch from 4fd0d70 to e5ecc06 Compare May 4, 2026 12:12
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 from e5ecc06 to 84b6d63 Compare May 4, 2026 18:38
Watch the workspace file backing the active target definition and
trigger LoadTargetDefinitionJob whenever its content is modified, so
edits made through the editor, refactorings, or a git pull no longer
require a manual "Reload Target Platform". Also record the file's
modification timestamp on every load and, on workspace startup,
compare it against the current value to catch changes made while
the IDE was closed (covering both workspace .target files and
external file: handles, which resource deltas cannot observe).
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