Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] "orion.project.handler" service unable to dynamically create project

Is it possible for a plug-in to get hold of a file service?

​Yes, assuming that everything is running on the same domain, the plugin -- call it P -- can load orion/bootstrap.js, which kicks off the same initialization done by the Orion UI. This basically gives you another level of plugins: P becomes the host frame, and file services are loaded as iframes inside P when the their services are requested. P can create a FileClient to interact with the installed file services -- again, exactly as the Orion UI would do.

It's not a fantastic approach IMO, but it does work when P and the file service it wants to manipulate are hosted on the same domain. See _javascript_Plugin.js ​for a concrete example of a plugin that does this.

Mark



On Mon, Jul 27, 2015 at 1:58 PM, Rafael Chaves <rafael@xxxxxxxxxxxx> wrote:

it can only be done today if the plugin is hosted directly on the same domain as the Orion server

Hey John,

For those of us that can place Orion and the plugin under the same domain, do you have any pointers on how to do that? Is it possible for a plug-in to get hold of a file service?

Cheers,

Rafael

_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev


Back to the top