Skip to main content

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

Hello,

I am trying to create a plugin that implements the "orion.project.handler" service, when I do so I use its initProject function to gather the parameters needed. On my approach I tried to use http POST request to create the new project but the request does not go through due to orionhub.org throwing error "No 'Access-Control-Allow-Origin' header is present on the requested resource". I am making the request from the plugin which is hosted on a sub orionhub domain. I am not sure whether I am supposed to somehow get through this error using a different request mechanism or if I am approaching the Workspace and File API in the wrong manner. How am I supposed to dynamically create files and folders in the orion workspace? all existing plugins, such as gitplugin.js, hide that implementation so any help would be appreciated.

link to wiki I am following: https://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Project_services#orion.project.handler


Back to the top