<!ELEMENT extension (editModel+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT editModel (editModelResource+)>
<!ATTLIST editModel
editModelID CDATA #REQUIRED
factoryClass CDATA #REQUIRED
loadUnknownResourcesAsReadOnly (true | false)
parentModelID CDATA #IMPLIED>
The declaration for an edit model to be used in the workspace.
org.eclipse.wst.common.internal.emfworkbench.integration.EditModelFactory
. If none is specified, then a generic EditModel
is created.<!ELEMENT editModelResource EMPTY>
<!ATTLIST editModelResource
URI CDATA #REQUIRED
autoload (true | false) "false">
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.
<!ELEMENT resourceExtension EMPTY>
<!ATTLIST resourceExtension
name CDATA #IMPLIED>
This allows registration of files for autoloading according to file extension.
<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>
org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext
.
Copyright (c) 2005 IBM Corporation and others.
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 http://www.eclipse.org/legal/epl-v10.html