Reverse Engineering Plugin based on MoDisco [message #655435] |
Sun, 20 February 2011 18:07  |
Eclipse User |
|
|
|
Hello
I am currently dealing with a migration project on framework based web applications and after lots of research I decided to try Modisco.
For an easy to use tool I'd like to create an own plugin which can be started via context menu on the source project. To discover models from the java source files and xml configuration files I wanted to use functionality provided by Modisco but create an own Discoverer to only retrieve certain Compilation Units and xml files from the source project and therefor create a smaller model.
Are there any simple ways to build an own plugin using functionality of Modisco? As I have time constraints there should be simple possibilities to realize this.
My steps would be to use the plugin to initialize the migration process, create models from the relevant source files and xml-config files then do some m2m transformations for PIM and target PSM and start code generation for the target framework.
Many thanks in advance.
|
|
|
Re: Reverse Engineering Plugin based on MoDisco [message #655466 is a reply to message #655435] |
Mon, 21 February 2011 05:01   |
Eclipse User |
|
|
|
Hello George,
First, thanks for your interest in the project.
As you described it, your use case is a very good application for the MoDisco framework.
Of course, you can directly reuse the available Java and XML discoverers by combining them together in your solution (i.e. a plug-in). You can also integrate the refinement of the obtained models, according to your targeted needs, by using M2M transformations.
To have more details on the related MoDisco components, I invite you to take a look to the reference documentation of the latest version: http://wiki.eclipse.org/MoDisco/Components/v0.9
It explains how to use the discoverers you will need, and how to chain them with the also provided Discovery Workflow.
I hope this is going to help you starting more easily.
And don't hesitate if you have any other question.
Best regards,
Hugo
|
|
|
|
Re: Reverse Engineering Plugin based on MoDisco [message #655856 is a reply to message #655469] |
Tue, 22 February 2011 16:03  |
Eclipse User |
|
|
|
Hi!
Many thanks for the useful hints so far.
Unfortunately I can't wait for the next MoDisco Version to be finished although the JEE Discoverer could be quite useful for my project - especially when it comes to targeting xml configurations within a project. But I don't want to risk problems occurring with missing features or bugs and incompatibilities with tools I use additionally. Especially as v0.9 requires Indigo. At least I will have a closer look into the 0.9 documentation.
I was not aware of the filters (regex) to select the source code. I have to dig into it because I wonder if it would be possible, to select java sources which extend a certain base class or implement certain interfaces provided by the framework - from my point of view a very useful feature in the context of framework based applications.
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03866 seconds