Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Service Registry accessible to a client plugin

Alex, I guess you found an alternative for this? If so, was it just by implementing a validator service? Last time I checked, what you were trying to do was not possible (plugins cannot get hold of service references), see: 

https://www.eclipse.org/forums/index.php/t/351122/
https://dev.eclipse.org/mhonarc/lists/orion-dev/msg01967.html 

Cheers,

Rafael


On Wed, Jun 18, 2014 at 12:21 AM, Alex Boyko <aboyko@xxxxxxxxxxxxx> wrote:
Hi,

It looks like displaying error markers for the editor is done with the following call:

serviceRegistry.getService("orion.core.marker")._setProblems(problems);

Suppose i’m receiving problem objects as I type characters in the Orion editor. Naturally, I’d like to display the error markers in the editor and hoping that the call above would do the trick. The missing piece is how to i get a reference to Orion’s Service Registry from, for example, my orion.edit.validator plugin implementation module. Is it possible? Any workarounds you may suggest?
Thanks in advance.

Cheers,
Alex

_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev



Back to the top