
schema.modelProviders.exsd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.core.resources Show documentation
Show all versions of org.eclipse.core.resources Show documentation
Eclipse org.eclipse.core.resources project
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>
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>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy