eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingBundleModuleFactory.java [50:75]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	private static final IPath[] SETTINGS_PATHS = new IPath[] {new Path(".settings")};
    
    @Override
    public IModule[] getModules(IProject project) {
        final IModule[] result = super.getModules(project);
        if (result!=null && result.length>0) {
            return result;
        } else {
            // try clearing the cache
            // might fix SLING-3663 which could be due to a synchronization issue at first access time
            clearCache(project);
            return super.getModules(project);
        }
    }
    
    @Override
    protected IPath[] getListenerPaths() {
    	// returning the .settings path instead of null (as done by the parent)
    	// results in clearing the cache on changes to .settings - which in turn
    	// results in re-evaluating facet changes.
    	// we could be more specific here but .settings changes are infrequent anyway.
    	return SETTINGS_PATHS;
    }

    @Override
    public ModuleDelegate getModuleDelegate(IModule module) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingContentModuleFactory.java [48:73]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	private static final IPath[] SETTINGS_PATHS = new IPath[] {new Path(".settings")};
    
	@Override
	public IModule[] getModules(IProject project) {
	    final IModule[] result = super.getModules(project);
	    if (result!=null && result.length>0) {
	        return result;
	    } else {
	        // try clearing the cache
	        // might fix SLING-3663 which could be due to a synchronization issue at first access time
	        clearCache(project);
	        return super.getModules(project);
	    }
	}
	
    @Override
    protected IPath[] getListenerPaths() {
    	// returning the .settings path instead of null (as done by the parent)
    	// results in clearing the cache on changes to .settings - which in turn
    	// results in re-evaluating facet changes.
    	// we could be more specific here but .settings changes are infrequent anyway.
    	return SETTINGS_PATHS;
    }

    @Override
    public ModuleDelegate getModuleDelegate(IModule module) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



