VB code as model
Often it's clever to reuse the old source code of applications which have to be redeveloped. In my last client workshop I have set up a eclipse based model driven software development tool chain which is able to use Visual Basic source code as model.
Since the eclipse galileo release openArchitectureWare core components (MWE, Xpand, Xtext) are part of the eclipse modeling project. To set up a good MDSD environment install the following plugins from eclipse update site:
Modeling: EMF, EMF Data, EMF Compare, Ecore Tools, GMF, UML2, UML2 Tools, XSD, MWE, Xpand, Xtext
General Purpose Tools: Plugin Development Environment
With the ready to use Visual Basic javacc parser from paulcager.org it was very easy to do the job using the JavaMetaModel meta-model implementation. All I needed was to write a custom MWE reader workflow component.
The attached project includes a generator producing a simple HTML report of the VB source code (cls, bas, frm) found in the folder src-vb. Import the project and run src/generator/generate.mwe as "MWE Workflow". See the result in the src-gen folder. Feel free to use the project as starting point for your own transformation from Visual Basic to what ever ...
| Attachment | Size |
|---|---|
| vb-generator.zip | 502.83 KB |
