Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 16:38 Go to next message
Lom Hillah is currently offline Lom HillahFriend
Messages: 8
Registered: July 2009
Junior Member
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 08:04 Go to previous message
Gabriel BARBIER is currently offline Gabriel BARBIERFriend
Messages: 106
Registered: July 2009
Senior Member
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: Thu Mar 28 09:32:48 GMT 2024

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

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

Back to the top