schema.modelProviders.exsd Maven / Gradle / Ivy
The newest version!
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 mappings that describe how a model maps to resources.
The value of the class attribute must represent an implementation of <tt>org.eclipse.core.resources.mapping.ModelProvider</tt>.
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 platform itself does not have any predefined
model providers. Particular product installs may include
model providers as required.
Copyright (c) 2005, 2010 IBM Corporation and others.<br>
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0 which
accompanies
this distribution, and is available at
<a
href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-v20.html</a>/
SPDX-License-Identifier: EPL-2.0