Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsResourceExceptions
https://www.eclipse.org/forums/index.php/mv/msg/164929/522312/#msg_522312
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?
]]>Missing name Mising name2010-03-22T09:36:12-00:00Re: ResourceExceptions
https://www.eclipse.org/forums/index.php/mv/msg/164929/523758/#msg_523758
Missing name Mising name2010-03-29T08:30:30-00:00Re: ResourceExceptions
https://www.eclipse.org/forums/index.php/mv/msg/164929/524268/#msg_524268
> 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.