Skip to content

Usage of Generic editor and org.eclipse.ui.workbench.texteditor.hyperlinkDetectors #2560

Closed Answered by mickaelistria
vogella asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at HyperlinkDetectorRegistry, there seems to be no way to filter out a particular hyperlinkDetector for a particular editor. There are preferences that can be used to tweak things, but as long as there is no per-editor preference scope, it won't fit the desired grain here.
The HyperlinkDetectors are supposed to implement themselves (thanks to setContext or just by using the viewer) a strategy to turn no-op when they're irrelevant.
I imagine that an enableWhen child element on the extension point would be the most helpful approach.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vogella
Comment options

vogella Nov 29, 2024
Maintainer Author

Answer selected by vogella
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants