A model provider serves two purposes. Firstly, it is a means of grouping the resource mappings of a single model together for the purposes of performing operations, display, etc. Also, it provides a means of mapping a set of file system resources to the resource maqppings that describe how a model maps to resources. 3.2 The following is an example of using the modelProvider extension point. (in file plugin.xml) <pre> <extension id="modelProvider" name="Library Model Provider" point="org.eclipse.core.resources.modelProviders"> <modelProvider class="org.eclipse.examples.library.LibraryModelProvider" name="Library Model Provider"/> <extends-model id="org.eclipse.core.resources.modelProvider"/> <enablement> <with variable="affectedNatures"> <iterate operator="or"> <equals value="org.eclipse.team.examples.library.nature"/> </iterate> </with> <with variable="element"> <instanceof value="org.eclipse.core.resources.IFile"/> </with> </enablement> </extension> </pre> The value of the class attribute must represent an implementation of <tt>org.eclipse.core.resources.mapping.ModelProvider</tt>. The platform itself does not have any predefined model providers. Particular product installs may include model providers as required. Copyright (c) 2005, 2006 IBM Corporation and others.<br> All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>