Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Start an mwe workflow from a plugin: IOException unable to resolve plugin
Start an mwe workflow from a plugin: IOException unable to resolve plugin [message #631335] Thu, 07 October 2010 06:49 Go to next message
masija . is currently offline masija .Friend
Messages: 59
Registered: July 2010
Member
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
Re: Start an mwe workflow from a plugin: IOException unable to resolve plugin [message #631767 is a reply to message #631335] Fri, 08 October 2010 06:34 Go to previous messageGo to next message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
Masija,

from my experience,
- the .mwe file needs to be on the class path somewhere
- you have to specify the path relative to the class path
because the WorkflowRunner uses the ClassLoader to get the resource.

I don't have an installation on my netbook to check - let me know if you need
more info.

HTH
Volker

Masija <masija.msj@gmail.com> writes:

> 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
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 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
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
>
Previous Topic:[3.6.1][P2] How to allow a product update ?
Next Topic:Headless build failure with Eclipse 3.6.1
Goto Forum:
  


Current Time: Tue Apr 23 14:06:53 GMT 2024

Powered by FUDForum. Page generated in 0.03487 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top