My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
MainChanges  
Main changes in Osate to support Sphinx mechanisms.
Updated May 7, 2013 by mathieu....@gmail.com

Introduction

This page presents the main changes that are added into the Osate source to take advantage of the Sphinx mechanisms.

Declaration of content types

Definition of two content types into org.osate.aadl2 project through two org.eclipse.core.contenttype.contentTypes extension points. The content type org.osate.aadl2.aadlFiles is defined for files with the .aadl and .aadl2 extensions and org.osate.aadl2.aaxlFiles is defined for files with the .aaxl and .aaxl2 extensions.

The second content type contains a content describer to verify the validity of the content type by checking on the one hand that the file is a XMI file and on the other hand that the file contains the right namespace value (that could be the namespace for the declarative AADL model or the AADL instance model.) It also extends the org.eclipse.emf.ecore.xmi base-type.

Because the first content type is representative of a text, it does not contain any content describer but extends the org.eclipse.core.runtime.text base-type.

Discussion about content types.

A content parser, associated with the second content type, has also been added through the org.eclipse.emf.ecore.content_parser extension point. It uses the provided class org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl for XMI files.

Add of meta-model descriptors

Two meta-model descriptors have been defined inside the new org.osate.aadl2.ide plug-in.

A meta-model descriptor is a concept of Sphinx allowing a link between a file (more precisely the content type) and the model contained into it. It is used to record the model description in the ModelDescriptor class.

These meta-model descriptors contain an ID, the namespace of the AADL meta-model together with the sub package Instance (in the case of aaxl files) and a getter that returns the content type identifier (org.osate.aadl2.aadlFiles or org.osate.aadl2.aaxlFiles.)

Powered by Google Project Hosting