| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="com.ibm.etools.emf.workbench"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="com.ibm.etools.emf.workbench" id="editModel" name="EMF Resource Edit Model"/> |
| </appInfo> |
| <documentation> |
| Edit models provide a framework for managing a set of EMF resources within a unit of work. For example, a workspace operation may affect a change to multiple EMF resources. Edit models provide basic services such as loads, saves (when necessary), and validate edit for the managed resources. Edit models are reference counted, therefore a single instance of an edit model can be shared by more than one operation or editor. By declaring an edit model, a plugin provider enables other components to contribute resources to be managed by that edit model. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="editModel" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="editModel"> |
| <annotation> |
| <documentation> |
| The declaration for an edit model to be used in the workspace. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="editModelResource" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="editModelID" type="string" use="required"> |
| <annotation> |
| <documentation> |
| A unique identifier for the edit model. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="factoryClass" type="string" use="required"> |
| <annotation> |
| <documentation> |
| An optional factory class that is used for this edit model. The class must implement the interface <code>com.ibm.etools.emf.workbench.edit.EditModelFactory</code>. If none is specified, then a generic <code>EditModel</code> is created. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="loadUnknownResourcesAsReadOnly" type="boolean"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="parentModelID" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="editModelResource"> |
| <complexType> |
| <attribute name="URI" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The URI of the resource relative to the root container from which EMF resources are loaded. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="since"/> |
| </appInfo> |
| <documentation> |
| 6.0 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| <br> |
| <code> |
| &nbsp;&nbsp;&nbsp;&lt;extension<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id="editModel.acme.parent"<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name="Acme&nbsp;Parent&nbsp;Edit&nbsp;Model"<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;point="com.ibm.etools.emf.workbench.editModel"&gt;<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;editModel<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;editModelID="com.acme.acmepro.parent.editModel"<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;factoryClass="com.ibm.etools.emf.workbench.edit.EditModelFactory"&gt;<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;editModelResource&nbsp;URI="DIR/resource0.xml"&nbsp;/&gt;&nbsp;<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;editModelResource&nbsp;URI="DIR/resource1.xml"&nbsp;/&gt;<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/editModel&gt;<br> |
| &nbsp;&nbsp;&nbsp;&lt;/extension&gt;&nbsp;<br> |
| &nbsp;&nbsp;&nbsp;<br> |
| &nbsp;&nbsp;&nbsp;&lt;extension<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id="editModel.acme.child"<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name="Acme&nbsp;Child&nbsp;Edit&nbsp;Model"<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;point="com.ibm.etools.emf.workbench.editModel"&gt;<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;editModel<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;editModelID="com.acme.acmepro.child.editModel"<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;factoryClass="com.ibm.etools.emf.workbench.edit.EditModelFactory"<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parentModelID="com.acme.acmepro.parent.editModel"&gt;<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;editModelResource&nbsp;URI="DIR/resource2.xml"&nbsp;/&gt;&nbsp;<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;editModelResource&nbsp;URI="DIR/resource3.xml"&nbsp;/&gt;<br> |
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/editModel&gt;<br> |
| &nbsp;&nbsp;&nbsp;&lt;/extension&gt;&nbsp;&nbsp;&nbsp;<br> |
| </code> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| Edit Models can be accessed through the com.ibm.etools.emf.workbench.EMFWorkbenchContext. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| [Enter information about supplied implementation of this extension point.] |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| |
| </schema> |