Skip to main content



      Home
Home » Modeling » MoDisco » Tracing java model elements back to source code positions
Tracing java model elements back to source code positions [message #575809] Fri, 27 August 2010 12:38 Go to next message
Eclipse UserFriend
Hi,

I found out that in the new extracted java model (from Modisco 0.8), some attributes related to original source code positions of the model elements are no longer provided (which were in j2se5 model). They are:
- originalColumnNumber
- originalLastLineNumber
- originalLength
- originalLineNumber
- originalStartPosition

We now get originalCompilationUnit and originalClassFile instead.
What motivated the removal of the aforementioned attributes?
Since we need them in our transformation project,
is there a way to retrieve them again using Modisco?

Thanks.

Cheers,
Lom
Re: Tracing java model elements back to source code positions [message #575829 is a reply to message #575809] Mon, 30 August 2010 04:04 Go to previous message
Eclipse UserFriend
Hello Lom,

I'm glad that you used to use the java model. So here is some explanation of these attributes removal: these attributes
have been considered as technical (and not java, because it is common to all languages), so it would be common sense to
have them for all kind of source files. It means that we have specific metamodel for such things (to represents source
files), and to link a java model with source model, a composite model has been defined. However, as the work was not
complete for the 0.8 it had not been released. It is still under development, but some experimentation will be soon
available in the SVN repository (it you are interested, we may deliver it to you sooner).

Regards,
Gabriel

Lom Hillah wrote:
> Hi,
>
> I found out that in the new extracted java model (from Modisco 0.8),
> some attributes related to original source code positions of the model
> elements are no longer provided (which were in j2se5 model). They are:
> - originalColumnNumber
> - originalLastLineNumber
> - originalLength
> - originalLineNumber
> - originalStartPosition
>
> We now get originalCompilationUnit and originalClassFile instead.
> What motivated the removal of the aforementioned attributes?
> Since we need them in our transformation project, is there a way to
> retrieve them again using Modisco?
>
> Thanks.
>
> Cheers,
> Lom
Previous Topic:Metrics Visualizations Builder
Next Topic:Cobol with Modisco
Goto Forum:
  


Current Time: Wed Jul 23 05:01:24 EDT 2025

Powered by FUDForum. Page generated in 0.36323 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top