I am creating an eclipse plugin in which I am going to create a new file in my project. Is there a way to update the current project?
I know that I can have a link to the whole project by calling
ResourcesPlugin.getWorkspace().getRoot().getProjects()
And iterate between them and use
IResource.refreshLocal()
However, this approach is not the best, especially if the user has many projects.
An alternative would be to study the project to check if there is a new file or not, but I would avoid it.
source
share