Bug 127451 [Mapping] Model provider and working set mappings must be dynamic
The model provider and working set mappings must be dynamic. Currently they use CompositeResourceMapping which means that changes to the projects of the model provider or the contents of the working set get missed if someone holds onto a mapping.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkingSetAdapterFactory.java
IResource resource = ((IContributorResourceAdapter) resourceAdapter)
						.getAdaptedResource(element);
				if (resource != null) {
					Object mapping = internalGetAdapter(resource,
							ResourceMapping.class);
					if (mapping instanceof ResourceMapping) {
						return (ResourceMapping) mapping;
					}
				}
			}
		}
		return null;
	}
	Object internalGetAdapter(Object o, Class adapter) {
		if (o instanceof IAdaptable) {
			IAdaptable element = (IAdaptable) o;
			Object adapted = element.getAdapter(adapter);
			if (adapted != null) {
				return adapted;
			}
		}
		
		
		
		return Platform.getAdapterManager().getAdapter(o, adapter);
	}
}