Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ResourceExceptions(How to solve ResourceExceptions without using ResourcesPlugin)
ResourceExceptions [message #522312] Mon, 22 March 2010 09:36 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 16
Registered: March 2010
Junior Member
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 08:30 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 16
Registered: March 2010
Junior Member
Nobody an idea?
Re: ResourceExceptions [message #524268 is a reply to message #522312] Wed, 31 March 2010 11:29 Go to previous message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
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: Sat Oct 01 06:14:37 GMT 2022

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

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

Back to the top