[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.gmt.amw] Re: creating weaving model

Hello,

Are you calling "createXMLConfigFile" in a different way than in the AMW wizard?

This method is used only to create the metadata file (<file>.amw.prop). It does not create weaving models.

The weaving models are created for the first time in the "org.eclipse.weaver.extension.init.WeaverInitialize" class, "initWeaverMetamodel" method. In the weaver base extension, it creates the "WModel" and "WModelRef" elements.

You can create your own "WeaverInitilize" classes, because we provide an extension point to create (initialize) weaving models.

To do this, you need to make a contribution to the extension point "org.eclipse.weaver.initializeExtensionID". See below how we did for the weaver base extension. You need to change the "class" attribute to your own class. This class must inherit from "org.eclipse.weaver.editors.IWeaverInitializer". The actions to create the weaving models are implemented in the "initWeaverMetamodel" method.

   <extension
         point="org.eclipse.weaver.initializeExtensionID"
         id="DefaultInitializationExtension">
         <extensionInitialization
         	 class="org.eclipse.weaver.extension.init.WeaverInitialize"/>
   </extension>

More documentation about this extension point is available in the "Developer guide", and in the extension definition org.eclipse.weaver\schema\initializeExtensionID.exsd.


Regards,

Marcos.



Kelly Garcés wrote:
Hello,

I use mw_base_ext.ecore. I want to create weaving model file for commad. I invoke createXMLConfigFile method in WeaverXMLMetadata, file its ok, but when i see weaving model in DefaultPanel there aren´t any Model element, i can´t create Link elements.

What shall i do?

I attach a screenchot.

Sincerely thanks,

Kelly.