|
|
Re: Start an mwe workflow from a plugin: IOException unable to resolve plugin [message #631868 is a reply to message #631335] |
Sat, 09 October 2010 11:46 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Masija,
the space at the end of the filename in the URL constructor is just a
type, isn't it?
You may also want to try
FileLocator.toFileURL(new URL("platfrom:/plugin/testplugin"));
and append the plugin-local part of the url to the result.
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 07.10.10 08:49, schrieb Masija:
> Hi @ all,
> i developed a gmf plugin an am trying to start a mwe workflow file with
> a custom action in this plugin.
> The user should be able to right-click on a file in my project explorer
> and then select the action from the popup menu.
> So this is working, but unfortunately I can't load the workflow file.
>
> I used this line of code
> URL url = FileLocator.toFileURL(new
> URL("platform:/plugin/testplugin/templates/workflowfile.mwe "));
> but an IOException occurs:
> unable to resolve plugin
> "platform:/plugin/testplugin/templates/workflowfile.mwe"
>
> I post this question in this forum because I think this has something to
> do with the deploying of my plugin....
> in my case testplugin.
> The Folder testplugin/templates/ exists in my workspace.
> The workflow file is of course in this folder.
> But eclipse doesnt't find it when i run the project as an eclipse
> application.
> I also tried to add this project to the plugins, or to use the code
> URL url = FileLocator.toFileURL(new
> URL("platform:/workspace/testplugin/templates/workflowfile.mwe "));
> instead.
>
> Non of this is working :/
>
> Does anybody know what I am doing wrong? Any help, any tips would be
> appreciated!
> Thanks alot in advance.
>
> Best regards,
> Masija
>
|
|
|
Powered by
FUDForum. Page generated in 0.04085 seconds