Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ResourceExceptions(How to solve ResourceExceptions without using ResourcesPlugin)
ResourceExceptions [message #522312] Mon, 22 March 2010 05:36 Go to next message
Eclipse UserFriend
Hello,

our eclipse plugin generates files into a workspace (sub)folder without use of the appropriate Eclipse API (i.e. creating a File
instead of an IFile etc.) because we want to save independence from eclipse.
But the generated files cause ResourceExceptions (Resource out of sync with the workspace).
The creation of the files is done in the Non-UI Plug-Ins that have no knowledge of and hence no access to ResourcesPlugin.

What would be a good way to get rid of those exceptions?

Re: ResourceExceptions [message #523758 is a reply to message #522312] Mon, 29 March 2010 04:30 Go to previous messageGo to next message
Eclipse UserFriend
Nobody an idea?
Re: ResourceExceptions [message #524268 is a reply to message #522312] Wed, 31 March 2010 07:29 Go to previous message
Eclipse UserFriend
Hi mc.platenius,

> The creation of the files is done in the Non-UI Plug-Ins that have no
> knowledge of and hence no access to ResourcesPlugin.
>
> What would be a good way to get rid of those exceptions?

- Use the Eclipse API but encapsulate it behind your own API so you could also do the
operations independently from Eclipse
- Use Java Files but use the Eclipse APIs to refresh the projects you have changed afterwards.

Greetings,

Ralf

--
http://www.ralfebert.de/blog/
http://twitter.com/ralfebert/
Previous Topic:How do I find the Install Unit (IU) for a particular plug-in?
Next Topic:Override Command Binding
Goto Forum:
  


Current Time: Fri Jul 04 09:47:32 EDT 2025

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

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

Back to the top