XML Config File

This file is automatically generated when the user creates a weaving model. It is created in the same folder as the weaving model. The name is the concatenation of the weaving model file, plus an extension ".prop" This file is a resume of choices made in the wizard. With this file it is not necessary to use the wizard every time you open an existing weaving model. The weaving models are opened just by double clicking on the weaving model.

<!ELEMENT weaver (weaving , metamodels , woven+)>



<!ELEMENT weaving (relative-path , panel , wmodel)>



<!ELEMENT relative-path (#PCDATA)>

This element represents the relative path of a file (path relative to the workspace)



<!ELEMENT panel (#PCDATA)>

This element represents the name (id) of the panel extension (weaving or woven)



<!ELEMENT wmodel (#PCDATA)>

This element represents the name of the wmodel choosen for a weaving



<!ELEMENT metamodels (plugin , local)>

This element represents the extensions used to compose metamodels



<!ELEMENT plugin (relative-path*)>

This element represents the metamodel extensions including in the extension plugin



<!ELEMENT local (relative-path*)>

This element represents the metamodel extensions which are in the local workspace



<!ELEMENT woven (model-relative-path , metamodel-reletive-path , panel , reference , wmodelref , reference)>

<!ATTLIST woven

id CDATA #REQUIRED>


<!ELEMENT model-relative-path EMPTY>

This element represents the relative path of the model file (path relative to the workspace) or the string "null" if it doesn't exist.



<!ELEMENT metamodel-reletive-path (#PCDATA)>

This element represents the relative path of a metamodel file (path relative to the workspace)



<!ELEMENT title (#PCDATA)>

This element represents the name of woven panel (name of WModelRef reference if reference is not many)



<!ELEMENT wmodelref (#PCDATA)>

This element represents the name of the WModelRef choosen for this woven model/metamodel



<!ELEMENT reference (#PCDATA)>

This element represents the name of WModelRef Reference



This is an example for a weaving model named DBtoXMLLab.amw (relative location in workspace : /Tutorial/DBtoXMLLab.amw). The properties file is named "DBtoXMLLab.amw.prop".

<?xml version="1.0" encoding="UTF-8"?>
<weaver>
	<weaving>
		<relative-path>/Tutorial/DBtoXMLLab.amw</relative-path>
		<panel>DefaultWeavingPanelExtension</panel>
		<wmodel>Model</wmodel>
	</weaving>
	<metamodels>
		<plugin>
			<relative-path>org.eclipse.weaver.extension.base/metamodels/mw_base_extension.km3</relative-path>
		</plugin>
		<local/>
		<complete></complete>
	</metamodels>
	<woven id="0">
		<model-relative-path>null</model-relative-path>
		<metamodel-relative-path>/Tutorial/labRDBMS.ecore</metamodel-relative-path>
		<reference>leftModel</reference>
		<title>leftModel</title>
		<panel>DefaultWovenPanelExtension</panel>
		<wmodelref>ModelRef</wmodelref>
	</woven>
	<woven id="1">
		<model-relative-path>null</model-relative-path>
		<metamodel-relative-path>/Tutorial/labXML.ecore</metamodel-relative-path>
		<reference>rightModel</reference>
		<title>rightModel</title>
		<panel>DefaultWovenPanelExtension</panel>
		<wmodelref>ModelRef</wmodelref>
		</woven>
</weaver>