XML Config File

This file is automatically generated when the user creates a weaving model. It is located in a folder in your workspace : ./metadata/.plugins/org.eclipse.core.resources/.projects/"Your project"/org.eclipse.weaver Its name is the concatenation of its relative path (compared to your project), the name of the weaving file and .xml extension. This file is a resume of choices in wizard. With this file it is not necessary to use the wizard every time you open an existing 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 myweaving.ecore (relative location in workspace : /myproject/weaving/myweaving.ecore). The properties file is named "weaving.myweaving.xml".

<weaver>

<weaving>

<relative-path>

/myproject/weaving/myweaving.ecore

</relative-path>

<panel>

DefaultWeavingPanelExtension

</panel>

<wmodel>

Model

</wmodel>

</weaving>

<metamodels>

<plugin>

<relative-path>

c:/eclipse/plugins/org.eclipse.weaver.extension.base_1.0.0/metamodels/extension.km3

</relative-path>

</plugin>

<local>

<relative-path>

d:/workspace/WeaverBaseExtension/metamodels/localExtension.km3

</relative-path>

</local>

</metamodels>

<woven id=

"0"

>

<model-relative-path>

/myproject/weaving/myDataBase.db

</model-relative-path>

<metamodel-relative-path>

/myproject/weaving/db.ecore

</metamodel-relative-path>

<title>

LeftPanel

</title>

<reference>

LeftPanel

</reference>

<panel>

DefaultWovenPanelExtension

</panel>

<wmodelref>

ModelRef

</wmodelref>

</woven>

<woven id=

"1"

>

<model-relative-path>

/myproject/weaving/myModel.uml2

</model-relative-path>

<metamodel-relative-path>

/myproject/weaving/jeudi1/uml2.ecore

</metamodel-relative-path>

<title>

RightPanel

</title>

<reference>

RightPanel

</reference>

<panel>

DefaultWovenPanelExtension

</panel>

<wmodelref>

ModelRef

</wmodelref>

</woven>

</weaver>