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

Hi Rafael,

It is still not possible to access a service in a client plug-in. 
However, I've modified Orion client code while creating a Live Edit Session plug-in prototype in the Orion code base. I have passed an enhanced EditorContext object to the client LiveEditorContext one of the methods of which is showMarkers(markers) the implementation of which is on the Orion side and it invokes the orion.edit.marker service.

Cheers,
Alex

On Jun 20, 2014, at 12:00, orion-dev-request@xxxxxxxxxxx wrote:

> Send orion-dev mailing list submissions to
> 	orion-dev@xxxxxxxxxxx
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://dev.eclipse.org/mailman/listinfo/orion-dev
> or, via email, send a message with subject or body 'help' to
> 	orion-dev-request@xxxxxxxxxxx
> 
> You can reach the person managing the list at
> 	orion-dev-owner@xxxxxxxxxxx
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of orion-dev digest..."
> 
> 
> Today's Topics:
> 
>   1. Have deployed last night build to o.e.org (eom) (Ken Walker)
>   2. Re: Service Registry accessible to a client plugin (Rafael Chaves)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 20 Jun 2014 10:23:41 -0400
> From: Ken Walker <Ken_Walker@xxxxxxxxxx>
> To: "Orion-dev mailing list" <orion-dev@xxxxxxxxxxx>
> Subject: [orion-dev] Have deployed last night build to o.e.org (eom)
> Message-ID:
> 	<OF95CF9271.C60ADA85-ON85257CFD.004F09C0-85257CFD.004F1319@xxxxxxxxxx>
> Content-Type: text/plain; charset="us-ascii"
> 
> 
> 
> Ken Walker
> Lead of the Orion Project at Eclipse and within IBM | Tools for the Web, On
> the Web
> https://orionhub.org | http://wiki.eclipse.org/Orion | https://hub.jazz.net
> @kwalker | @orionhub | @jazzhub
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://dev.eclipse.org/mailman/private/orion-dev/attachments/20140620/786b5233/attachment.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 20 Jun 2014 11:32:23 -0300
> From: Rafael Chaves <rafael@xxxxxxxxxxxx>
> To: Orion developer discussions <orion-dev@xxxxxxxxxxx>
> Subject: Re: [orion-dev] Service Registry accessible to a client
> 	plugin
> Message-ID:
> 	<CAGwPAPHJLLL=XhPsPjhUtU1G3SDTwmJb56fxA=Lqf=4JDg7rMw@xxxxxxxxxxxxxx>
> Content-Type: text/plain; charset="utf-8"
> 
> 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
>> 
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://dev.eclipse.org/mailman/private/orion-dev/attachments/20140620/157350cc/attachment.html>
> 
> ------------------------------
> 
> _______________________________________________
> orion-dev mailing list
> orion-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/orion-dev
> 
> 
> End of orion-dev Digest, Vol 42, Issue 12
> *****************************************



Back to the top