getting hold of Orion services from a plugin [message #870076] |
Sun, 06 May 2012 03:54  |
Eclipse User |
|
|
|
How does a plugin get hold of Orion services?
I am trying to write a plugin that has a remote counterpart, and this plugin needs to pass to the back-end information about the current project (because the back-end will deal with state for multiple users/projects and needs to know which project it is dealing with).
Is that even possible/intended in the current architecture?
Thanks,
Rafael
|
|
|
|
Re: getting hold of Orion services from a plugin [message #870275 is a reply to message #870260] |
Mon, 07 May 2012 10:38  |
Eclipse User |
|
|
|
Quote:Generally, no. Orion services live in the main page, and each plugin lives within an iframe. The plugin can't access services from the main page. If your plugin needs information, then the main Orion page needs to pass it over to you when it calls one of your declared services.
Darn, thought it was feasible from reading the "plugin with extension point" thread from orion-dev.
Quote:You would need some stable point of reference to implement validation on another server so I think this is an interesting case we should support. Is it the file service you are implementing? Maybe there is something we can add to that, such as the origin server base URL.
I was planning to implement both a validation service and a file service (see other thread I started). The server base URL for both of them would be helpful. But I suspect adding those things as function parameters won't be enough, as other needs for context information will arise (if not from my use case, from others').
Thanks for your help, John.
Rafael
|
|
|
Powered by
FUDForum. Page generated in 0.04153 seconds