1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
|
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.wst.common.emfworkbench.integration">
<annotation>
<appInfo>
<meta.schema plugin="org.eclipse.wst.common.emfworkbench.integration" 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>
a fully qualified identifier of the target extension point
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
an optional identifier of the extension instance
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
an optional name of the extension instance
</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>org.eclipse.wst.common.internal.emfworkbench.integration.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">
<annotation>
<documentation>
This is an individual contribution of a resource to the edit model. If more than one instance of the same URI is registered against an edit model id, the resource is still only loaded once.
</documentation>
</annotation>
<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>
<attribute name="autoload" type="boolean" use="default" value="false">
<annotation>
<documentation>
Indicator which determines whether this resource should be autoloaded when the edit model is created, or when an IFile corresponding to this resource is added.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="resourceExtension">
<annotation>
<documentation>
This allows registration of files for autoloading according to file extension.
</documentation>
</annotation>
<complexType>
<attribute name="name" type="string">
<annotation>
<documentation>
The file extension itself ("myxmi")
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appInfo>
<meta.section type="since"/>
</appInfo>
<documentation>
1.0
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="examples"/>
</appInfo>
<documentation>
<pre>
<extension
id="editModel.acme.parent"
name="Acme Parent Edit Model"
point="org.eclipse.wst.common.emfworkbench.integration.editModel">
<editModel
editModelID="com.acme.acmepro.parent.editModel"
factoryClass="org.eclipse.wst.common.internal.emfworkbench.integration.EditModelFactory">
<editModelResource URI="DIR/resource0.xml"/>
<editModelResource URI="DIR/resource1.xml"/>
</editModel>
</extension>
<extension
id="editModel.acme.child"
name="Acme Child Edit Model"
point="org.eclipse.wst.common.emfworkbench.integration.editModel">
<editModel
editModelID="com.acme.acmepro.child.editModel"
factoryClass="org.eclipse.wst.common.internal.emfworkbench.integration.EditModelFactory"
parentModelID="com.acme.acmepro.parent.editModel">
<editModelResource URI="DIR/resource2.xml"/>
<editModelResource URI="DIR/resource3.xml"/>
</editModel>
</extension>
</pre>
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="apiInfo"/>
</appInfo>
<documentation>
Edit Models can be accessed through the <code>org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext</code>.
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="implementation"/>
</appInfo>
<documentation>
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="copyright"/>
</appInfo>
<documentation>
Copyright (c) 2005 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 v2.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-2.0/
</a>
</documentation>
</annotation>
</schema>
|