Skip to content
Snippets Groups Projects
Commit afc56774 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

BUGFIX #80: register to resource changes after scanning the workspace

parent d7b20036
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ import org.osgi.framework.Bundle;
* @author hoelzlf
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: FBF0D92A524C593E2AC98117B492168A
* @ConQAT.Rating YELLOW Hash: E410E6F948A1F34C0CCF3A167693FAFB
*/
public class EclipseResourceStorageProvider implements IResourceChangeListener,
IResourceDeltaVisitor, IStorageProvider {
......@@ -74,8 +74,11 @@ public class EclipseResourceStorageProvider implements IResourceChangeListener,
/** Constructor. */
public EclipseResourceStorageProvider() {
setupLocationProviders();
ResourcesPlugin.getWorkspace().addResourceChangeListener(this);
searchWorkspaceForModels();
// register resource change listener last, since on-disk changes
// are discovered during workspace search, thus introducing a possible
// cyclic call during provider initialization
ResourcesPlugin.getWorkspace().addResourceChangeListener(this);
}
/** Searches existing models in Eclipse project roots. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment