Skip to content

Is it possible to repurpose the GIssueMarkerView for a more general decoration purpose? Instead of just for validation markers #1324

Answered by planger
jmenzies12 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Jonathan,

absolutely, you can definitely use the general issue marker functionality for your own purposes too, and not just for the use case of decorating validation results.

You can add GIssueMarker elements into your GModel directly from your GModelFactory and they'll be shown just as normal markers. To define the rendering (other icons, etc.) of your custom markers, you may need to bind your own issue marker view implementation. See issue marker view implementation and binding your own views for more details.

If you don't want them to be a real part of the GModel (ie adding them to the GModel on the server directly), you can apply a similar strategy as GLSP core uses for transferrin…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jmenzies12
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