Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » New Java AST tool based on Java Abstract Syntax Discovery Tool
New Java AST tool based on Java Abstract Syntax Discovery Tool [message #502] Wed, 11 February 2009 10:18 Go to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 147
Registered: July 2009
Senior Member
Hello all,

A new tool for creating Java AST models in EMF is available at:
http://ssel.vub.ac.be/ssel/research/mdd/javaast

This tool creates EMF JavaAST models from Eclipse Java projects. These
models can be used for analysis and model transformation. This tool was
based on the MoDisco Java Abstract Syntax Discovery Tool. These are the
differences with the original tool:

* Use generated EMF JavaAST meta-model.
* Remove AM3 dependencies.
* Add right-click action for Java projects.
* Create AST for entire Java project instead of single Java file
(compilation unit).

Kind regards,
Dennis Wagelaar
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #519 is a reply to message #502] Wed, 11 February 2009 12:04 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070402030400010106070607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Dennis,

I just installed Java AST, created a hello world plugin project
(attached), and invoked the "Create Java AST model" on it but I got the
following error:

String index out of range: 1400

Full stack trace:

java.lang.StringIndexOutOfBoundsException: String index out of range: 1400
at java.lang.String.substring(Unknown Source)
at
org.eclipse.gmt.modisco.discoverer.javast.ASTDiscoverer.post Visit(ASTDiscoverer.java:1772)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:25 25)
at
org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvo cation.java:244)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:25 25)
at
org.eclipse.jdt.core.dom.ReturnStatement.accept0(ReturnState ment.java:136)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java :2548)
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:136)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:25 25)
at
org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDec laration.java:502)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java :2548)
at
org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclara tion.java:484)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java :2548)
at
org.eclipse.jdt.core.dom.CompilationUnit.accept0(Compilation Unit.java:214)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at
org.eclipse.gmt.modisco.jast.discoverer.popup.actions.Create JavaAST.runAction(CreateJavaAST.java:93)
at
org.eclipse.gmt.modisco.jast.discoverer.popup.actions.Progre ssMonitorAction$1.run(ProgressMonitorAction.java:63)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)

Any ideas?

Cheers,
Dimitris

Dennis Wagelaar wrote:
> Hello all,
>
> A new tool for creating Java AST models in EMF is available at:
> http://ssel.vub.ac.be/ssel/research/mdd/javaast
>
> This tool creates EMF JavaAST models from Eclipse Java projects. These
> models can be used for analysis and model transformation. This tool was
> based on the MoDisco Java Abstract Syntax Discovery Tool. These are the
> differences with the original tool:
>
> * Use generated EMF JavaAST meta-model.
> * Remove AM3 dependencies.
> * Add right-click action for Java projects.
> * Create AST for entire Java project instead of single Java file
> (compilation unit).
>
> Kind regards,
> Dennis Wagelaar


--------------070402030400010106070607
Content-Type: application/x-zip-compressed;
name="eu.kolovos.javaast.helloworld.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="eu.kolovos.javaast.helloworld.zip"

UEsDBAoAAAAAAGFfSzoAAAAAAAAAAAAAAAAKAAAALnNldHRpbmdzL1BLAwQU AAAACABhX0s6
rfC3NZQAAABKAQAAJAAAAC5zZXR0aW5ncy9vcmcuZWNsaXBzZS5qZHQuY29y ZS5wcmVmc5WO
vQrCMACEd6HvEHAPbUGhha6Kg+AgOKfNtUTyxyX1+c3S2QrHccN93B1f0OKC UTRNUX/q+roV
1/tTtHXdVQdM1sQEGYkZhJ+Q5AdMJvihqQ6Bi9wqb53lFIhiLhoLlqCxwMus uCA/rMpzoBsa
ef5NumiNKnN72pFhtHBSpQTmm4bPZjbgADJwLw2/un/ZFFZuH79QSwMECgAA AAAAaF9LOgAA
AAAAAAAAAAAAAAQAAABiaW4vUEsDBAoAAAAAAGhfSzoAAAAAAAAAAAAAAAAH AAAAYmluL2V1
L1BLAwQKAAAAAABoX0s6AAAAAAAAAAAAAAAADwAAAGJpbi9ldS9rb2xvdm9z L1BLAwQKAAAA
AABoX0s6AAAAAAAAAAAAAAAAFwAAAGJpbi9ldS9rb2xvdm9zL2phdmFhc3Qv UEsDBAoAAAAA
AGhfSzoAAAAAAAAAAAAAAAAiAAAAYmluL2V1L2tvbG92b3MvamF2YWFzdC9o ZWxsb3dvcmxk
L1BLAwQKAAAAAABoX0s6AAAAAAAAAAAAAAAAKgAAAGJpbi9ldS9rb2xvdm9z L2phdmFhc3Qv
aGVsbG93b3JsZC9hY3Rpb25zL1BLAwQUAAAACABoX0s6302OqIICAABKBQAA PAAAAGJpbi9l
dS9rb2xvdm9zL2phdmFhc3QvaGVsbG93b3JsZC9hY3Rpb25zL1NhbXBsZUFj dGlvbi5jbGFz
c5VT2W7TQBQ904Q4SVO6UMJO0z1Jl4GCeClqhVoQEWGRAu3zxJ4607qeyHaa 70ICsTzwAXwU
4o5t0hYqpTyMPXN977nn3Dn++ev7DwAbeGhhhGFD9viR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AAACRDAAAc3JjL2V1L2tvbG92b3MvamF2YWFz dC9oZWxsb3dv
cmxkL2FjdGlvbnMvUEsBAhQAFAAAAAgAYV9LOrbaxIqzAgAADgcAADsAAAAA AAAAAQAgAAAA
2QwAAHNyYy9ldS9rb2xvdm9zL2phdmFhc3QvaGVsbG93b3JsZC9hY3Rpb25z L1NhbXBsZUFj
dGlvbi5qYXZhUEsBAhQAFAAAAAgAYV9LOk4UGzMSAgAAkwUAADAAAAAAAAAA AQAgAAAA5Q8A
AHNyYy9ldS9rb2xvdm9zL2phdmFhc3QvaGVsbG93b3JsZC9BY3RpdmF0b3Iu amF2YVBLAQIU
ABQAAAAIAGFfSzoY5ERr0AAAAHgBAAAKAAAAAAAAAAEAIAAAAEUSAAAuY2xh c3NwYXRoUEsB
AhQAFAAAAAgAYV9LOsxfKwDyAAAAsgIAAAgAAAAAAAAAAQAgAAAAPRMAAC5w cm9qZWN0UEsB
AhQAFAAAAAgAYV9LOnR4cP1RAAAAhgAAABAAAAAAAAAAAQAgAAAAVRQAAGJ1 aWxkLnByb3Bl
cnRpZXNQSwECFAAUAAAACABhX0s60kHxj1IBAACtAwAACgAAAAAAAAABACAA AADUFAAAcGx1
Z2luLnhtbFBLBQYAAAAAGgAaAAsHAABOFgAAAAA=
--------------070402030400010106070607--
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #532 is a reply to message #519] Thu, 12 February 2009 14:17 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 147
Registered: July 2009
Senior Member
Hi Dimitris,

Dimitris Kolovos schreef:
> Hi Dennis,
>
> I just installed Java AST, created a hello world plugin project
> (attached), and invoked the "Create Java AST model" on it but I got the
> following error:
>
> String index out of range: 1400
>
> Full stack trace:
> *snip*

Thanks for the feedback! I found out I had some issues indeed:
https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=36
https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=37

I released a new version already that includes the fixes (v.1.0.1). It
seems to work on your example. Sorry for the hasty release...

Dennis
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #543 is a reply to message #532] Thu, 12 February 2009 15:48 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Dennis,

Thanks for the speedy fix! It works fine now.

Cheers,
Dimitris

Dennis Wagelaar wrote:
> Hi Dimitris,
>
> Dimitris Kolovos schreef:
>> Hi Dennis,
>>
>> I just installed Java AST, created a hello world plugin project
>> (attached), and invoked the "Create Java AST model" on it but I got
>> the following error:
>>
>> String index out of range: 1400
>>
>> Full stack trace:
>> *snip*
>
> Thanks for the feedback! I found out I had some issues indeed:
> https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=36
> https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=37
>
> I released a new version already that includes the fixes (v.1.0.1). It
> seems to work on your example. Sorry for the hasty release...
>
> Dennis
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #560 is a reply to message #543] Fri, 13 February 2009 09:11 Go to previous messageGo to next message
Gabriel BARBIER is currently offline Gabriel BARBIERFriend
Messages: 106
Registered: July 2009
Senior Member
Hello Dennis and Dimitri,

Have you take a look to the Java Discoverer ? download : https://bugs.eclipse.org/bugs/show_bug.cgi?id=258281
It is composed of a metamodel J2SE5 and a discoverer that populate J2SE5 models. It provides also a transformation to
KDM. It works in a very similar way of your plugin Dennis (popup menu from a Java project "Modisco Modelplex Knowledge
Discovery -> IntermediateModels -> Discover J2SE5 model from Java project").

In fact, J2SE5 metamodel is not very different from JavaAST, I believe there is only 10/15 different metaclasses. We
have added metaclasses to represents binding between java elements. So relationships are not represented only by a
string, we rebuild also the graph of elements links.


I have not upgraded JavaAST project because of historics (J2SE5 metamodel is born 3 years ago) and I didn't realize that
I could change a lot JavaAST project (I'm a newcomer in Eclipse Community).


And you could also be interested in a model browser that allow metaclass sort, an infinite view of links, etc.
doc : http://wiki.eclipse.org/index.php/MoDisco/ModelBrowser
download : https://bugs.eclipse.org/bugs/show_bug.cgi?id=259234

Regards,
Gabriel

Dimitris Kolovos wrote:
> Hi Dennis,
>
> Thanks for the speedy fix! It works fine now.
>
> Cheers,
> Dimitris
>
> Dennis Wagelaar wrote:
>> Hi Dimitris,
>>
>> Dimitris Kolovos schreef:
>>> Hi Dennis,
>>>
>>> I just installed Java AST, created a hello world plugin project
>>> (attached), and invoked the "Create Java AST model" on it but I got
>>> the following error:
>>>
>>> String index out of range: 1400
>>>
>>> Full stack trace:
>>> *snip*
>>
>> Thanks for the feedback! I found out I had some issues indeed:
>> https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=36
>> https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=37
>>
>> I released a new version already that includes the fixes (v.1.0.1). It
>> seems to work on your example. Sorry for the hasty release...
>>
>> Dennis
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #572 is a reply to message #560] Fri, 13 February 2009 13:10 Go to previous messageGo to next message
Gabriel BARBIER is currently offline Gabriel BARBIERFriend
Messages: 106
Registered: July 2009
Senior Member
I have added two pages on wiki to explain how to retrieve and install
needed plugins :

http://wiki.eclipse.org/MoDisco/KDM

http://wiki.eclipse.org/MoDisco/JavaDiscoverer

============================================================ ===============================

Hello Dennis and Dimitri,

Have you take a look to the Java Discoverer ? download :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=258281
It is composed of a metamodel J2SE5 and a discoverer that populate J2SE5
models. It provides also a transformation to KDM. It works in a very
similar way of your plugin Dennis (popup menu from a Java project "Modisco
Modelplex Knowledge Discovery -> IntermediateModels -> Discover J2SE5
model from Java project").

In fact, J2SE5 metamodel is not very different from JavaAST, I believe
there is only 10/15 different metaclasses. We have added metaclasses to
represents binding between java elements. So relationships are not
represented only by a string, we rebuild also the graph of elements links.



I have not upgraded JavaAST project because of historics (J2SE5 metamodel
is born 3 years ago) and I didn't realize that I could change a lot
JavaAST project (I'm a newcomer in Eclipse Community).


And you could also be interested in a model browser that allow metaclass
sort, an infinite view of links, etc.
doc : http://wiki.eclipse.org/index.php/MoDisco/ModelBrowser
download : https://bugs.eclipse.org/bugs/show_bug.cgi?id=259234

Regards,
Gabriel
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #585 is a reply to message #572] Thu, 19 February 2009 07:35 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 147
Registered: July 2009
Senior Member
GBarbier@mia-software.com schreef:
> I have added two pages on wiki to explain how to retrieve and install
> needed plugins :
>
> http://wiki.eclipse.org/MoDisco/KDM
>
> http://wiki.eclipse.org/MoDisco/JavaDiscoverer
>
> ============================================================ ===============================

Thanks for the info! I'll have a look at it. It looks like it has
progressed a lot further than is stated at
http://www.eclipse.org/gmt/modisco/toolBox/J2SE5/

Regards,
Dennis
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #572571 is a reply to message #502] Wed, 11 February 2009 12:04 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070402030400010106070607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Dennis,

I just installed Java AST, created a hello world plugin project
(attached), and invoked the "Create Java AST model" on it but I got the
following error:

String index out of range: 1400

Full stack trace:

java.lang.StringIndexOutOfBoundsException: String index out of range: 1400
at java.lang.String.substring(Unknown Source)
at
org.eclipse.gmt.modisco.discoverer.javast.ASTDiscoverer.post Visit(ASTDiscoverer.java:1772)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2480)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:25 25)
at
org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvo cation.java:244)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:25 25)
at
org.eclipse.jdt.core.dom.ReturnStatement.accept0(ReturnState ment.java:136)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java :2548)
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:136)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:25 25)
at
org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDec laration.java:502)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java :2548)
at
org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclara tion.java:484)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java :2548)
at
org.eclipse.jdt.core.dom.CompilationUnit.accept0(Compilation Unit.java:214)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
at
org.eclipse.gmt.modisco.jast.discoverer.popup.actions.Create JavaAST.runAction(CreateJavaAST.java:93)
at
org.eclipse.gmt.modisco.jast.discoverer.popup.actions.Progre ssMonitorAction$1.run(ProgressMonitorAction.java:63)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)

Any ideas?

Cheers,
Dimitris

Dennis Wagelaar wrote:
> Hello all,
>
> A new tool for creating Java AST models in EMF is available at:
> http://ssel.vub.ac.be/ssel/research/mdd/javaast
>
> This tool creates EMF JavaAST models from Eclipse Java projects. These
> models can be used for analysis and model transformation. This tool was
> based on the MoDisco Java Abstract Syntax Discovery Tool. These are the
> differences with the original tool:
>
> * Use generated EMF JavaAST meta-model.
> * Remove AM3 dependencies.
> * Add right-click action for Java projects.
> * Create AST for entire Java project instead of single Java file
> (compilation unit).
>
> Kind regards,
> Dennis Wagelaar


--------------070402030400010106070607
Content-Type: application/x-zip-compressed;
name="eu.kolovos.javaast.helloworld.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="eu.kolovos.javaast.helloworld.zip"

UEsDBAoAAAAAAGFfSzoAAAAAAAAAAAAAAAAKAAAALnNldHRpbmdzL1BLAwQU AAAACABhX0s6
rfC3NZQAAABKAQAAJAAAAC5zZXR0aW5ncy9vcmcuZWNsaXBzZS5qZHQuY29y ZS5wcmVmc5WO
vQrCMACEd6HvEHAPbUGhha6Kg+AgOKfNtUTyxyX1+c3S2QrHccN93B1f0OKC UTRNUX/q+roV
1/tTtHXdVQdM1sQEGYkZhJ+Q5AdMJvihqQ6Bi9wqb53lFIhiLhoLlqCxwMus uCA/rMpzoBsa
ef5NumiNKnN72pFhtHBSpQTmm4bPZjbgADJwLw2/un/ZFFZuH79QSwMECgAA AAAAaF9LOgAA
AAAAAAAAAAAAAAQAAABiaW4vUEsDBAoAAAAAAGhfSzoAAAAAAAAAAAAAAAAH AAAAYmluL2V1
L1BLAwQKAAAAAABoX0s6AAAAAAAAAAAAAAAADwAAAGJpbi9ldS9rb2xvdm9z L1BLAwQKAAAA
AABoX0s6AAAAAAAAAAAAAAAAFwAAAGJpbi9ldS9rb2xvdm9zL2phdmFhc3Qv UEsDBAoAAAAA
AGhfSzoAAAAAAAAAAAAAAAAiAAAAYmluL2V1L2tvbG92b3MvamF2YWFzdC9o ZWxsb3dvcmxk
L1BLAwQKAAAAAABoX0s6AAAAAAAAAAAAAAAAKgAAAGJpbi9ldS9rb2xvdm9z L2phdmFhc3Qv
aGVsbG93b3JsZC9hY3Rpb25zL1BLAwQUAAAACABoX0s6302OqIICAABKBQAA PAAAAGJpbi9l
dS9rb2xvdm9zL2phdmFhc3QvaGVsbG93b3JsZC9hY3Rpb25zL1NhbXBsZUFj dGlvbi5jbGFz
c5VT2W7TQBQ904Q4SVO6UMJO0z1Jl4GCeClqhVoQEWGRAu3zxJ4607qeyHaa 70ICsTzwAXwU
4o5t0hYqpTyMPXN977nn3Dn++ev7DwAbeGhhhGFD9viR9vSJ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DAAAc3JjL2V1L2tvbG92b3MvamF2YWFz dC9oZWxsb3dv
cmxkL2FjdGlvbnMvUEsBAhQAFAAAAAgAYV9LOrbaxIqzAgAADgcAADsAAAAA AAAAAQAgAAAA
2QwAAHNyYy9ldS9rb2xvdm9zL2phdmFhc3QvaGVsbG93b3JsZC9hY3Rpb25z L1NhbXBsZUFj
dGlvbi5qYXZhUEsBAhQAFAAAAAgAYV9LOk4UGzMSAgAAkwUAADAAAAAAAAAA AQAgAAAA5Q8A
AHNyYy9ldS9rb2xvdm9zL2phdmFhc3QvaGVsbG93b3JsZC9BY3RpdmF0b3Iu amF2YVBLAQIU
ABQAAAAIAGFfSzoY5ERr0AAAAHgBAAAKAAAAAAAAAAEAIAAAAEUSAAAuY2xh c3NwYXRoUEsB
AhQAFAAAAAgAYV9LOsxfKwDyAAAAsgIAAAgAAAAAAAAAAQAgAAAAPRMAAC5w cm9qZWN0UEsB
AhQAFAAAAAgAYV9LOnR4cP1RAAAAhgAAABAAAAAAAAAAAQAgAAAAVRQAAGJ1 aWxkLnByb3Bl
cnRpZXNQSwECFAAUAAAACABhX0s60kHxj1IBAACtAwAACgAAAAAAAAABACAA AADUFAAAcGx1
Z2luLnhtbFBLBQYAAAAAGgAaAAsHAABOFgAAAAA=
--------------070402030400010106070607--
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #572591 is a reply to message #519] Thu, 12 February 2009 14:17 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 147
Registered: July 2009
Senior Member
Hi Dimitris,

Dimitris Kolovos schreef:
> Hi Dennis,
>
> I just installed Java AST, created a hello world plugin project
> (attached), and invoked the "Create Java AST model" on it but I got the
> following error:
>
> String index out of range: 1400
>
> Full stack trace:
> *snip*

Thanks for the feedback! I found out I had some issues indeed:
https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=36
https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=37

I released a new version already that includes the fixes (v.1.0.1). It
seems to work on your example. Sorry for the hasty release...

Dennis
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #572608 is a reply to message #532] Thu, 12 February 2009 15:48 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Dennis,

Thanks for the speedy fix! It works fine now.

Cheers,
Dimitris

Dennis Wagelaar wrote:
> Hi Dimitris,
>
> Dimitris Kolovos schreef:
>> Hi Dennis,
>>
>> I just installed Java AST, created a hello world plugin project
>> (attached), and invoked the "Create Java AST model" on it but I got
>> the following error:
>>
>> String index out of range: 1400
>>
>> Full stack trace:
>> *snip*
>
> Thanks for the feedback! I found out I had some issues indeed:
> https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=36
> https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=37
>
> I released a new version already that includes the fixes (v.1.0.1). It
> seems to work on your example. Sorry for the hasty release...
>
> Dennis
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #572629 is a reply to message #543] Fri, 13 February 2009 09:11 Go to previous message
Gabriel BARBIER is currently offline Gabriel BARBIERFriend
Messages: 106
Registered: July 2009
Senior Member
Hello Dennis and Dimitri,

Have you take a look to the Java Discoverer ? download : https://bugs.eclipse.org/bugs/show_bug.cgi?id=258281
It is composed of a metamodel J2SE5 and a discoverer that populate J2SE5 models. It provides also a transformation to
KDM. It works in a very similar way of your plugin Dennis (popup menu from a Java project "Modisco Modelplex Knowledge
Discovery -> IntermediateModels -> Discover J2SE5 model from Java project").

In fact, J2SE5 metamodel is not very different from JavaAST, I believe there is only 10/15 different metaclasses. We
have added metaclasses to represents binding between java elements. So relationships are not represented only by a
string, we rebuild also the graph of elements links.


I have not upgraded JavaAST project because of historics (J2SE5 metamodel is born 3 years ago) and I didn't realize that
I could change a lot JavaAST project (I'm a newcomer in Eclipse Community).


And you could also be interested in a model browser that allow metaclass sort, an infinite view of links, etc.
doc : http://wiki.eclipse.org/index.php/MoDisco/ModelBrowser
download : https://bugs.eclipse.org/bugs/show_bug.cgi?id=259234

Regards,
Gabriel

Dimitris Kolovos wrote:
> Hi Dennis,
>
> Thanks for the speedy fix! It works fine now.
>
> Cheers,
> Dimitris
>
> Dennis Wagelaar wrote:
>> Hi Dimitris,
>>
>> Dimitris Kolovos schreef:
>>> Hi Dennis,
>>>
>>> I just installed Java AST, created a hello world plugin project
>>> (attached), and invoked the "Create Java AST model" on it but I got
>>> the following error:
>>>
>>> String index out of range: 1400
>>>
>>> Full stack trace:
>>> *snip*
>>
>> Thanks for the feedback! I found out I had some issues indeed:
>> https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=36
>> https://ssel.vub.ac.be/bugzilla/show_bug.cgi?id=37
>>
>> I released a new version already that includes the fixes (v.1.0.1). It
>> seems to work on your example. Sorry for the hasty release...
>>
>> Dennis
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #572658 is a reply to message #560] Fri, 13 February 2009 13:10 Go to previous message
Gabriel BARBIER is currently offline Gabriel BARBIERFriend
Messages: 106
Registered: July 2009
Senior Member
I have added two pages on wiki to explain how to retrieve and install
needed plugins :

http://wiki.eclipse.org/MoDisco/KDM

http://wiki.eclipse.org/MoDisco/JavaDiscoverer

============================================================ ===============================

Hello Dennis and Dimitri,

Have you take a look to the Java Discoverer ? download :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=258281
It is composed of a metamodel J2SE5 and a discoverer that populate J2SE5
models. It provides also a transformation to KDM. It works in a very
similar way of your plugin Dennis (popup menu from a Java project "Modisco
Modelplex Knowledge Discovery -> IntermediateModels -> Discover J2SE5
model from Java project").

In fact, J2SE5 metamodel is not very different from JavaAST, I believe
there is only 10/15 different metaclasses. We have added metaclasses to
represents binding between java elements. So relationships are not
represented only by a string, we rebuild also the graph of elements links.



I have not upgraded JavaAST project because of historics (J2SE5 metamodel
is born 3 years ago) and I didn't realize that I could change a lot
JavaAST project (I'm a newcomer in Eclipse Community).


And you could also be interested in a model browser that allow metaclass
sort, an infinite view of links, etc.
doc : http://wiki.eclipse.org/index.php/MoDisco/ModelBrowser
download : https://bugs.eclipse.org/bugs/show_bug.cgi?id=259234

Regards,
Gabriel
Re: New Java AST tool based on Java Abstract Syntax Discovery Tool [message #572676 is a reply to message #572] Thu, 19 February 2009 07:35 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 147
Registered: July 2009
Senior Member
GBarbier@mia-software.com schreef:
> I have added two pages on wiki to explain how to retrieve and install
> needed plugins :
>
> http://wiki.eclipse.org/MoDisco/KDM
>
> http://wiki.eclipse.org/MoDisco/JavaDiscoverer
>
> ============================================================ ===============================

Thanks for the info! I'll have a look at it. It looks like it has
progressed a lot further than is stated at
http://www.eclipse.org/gmt/modisco/toolBox/J2SE5/

Regards,
Dennis
Previous Topic:New Java AST tool based on Java Abstract Syntax Discovery Tool
Next Topic:[Announce] Implementation of KDM
Goto Forum:
  


Current Time: Sun Dec 21 23:58:15 GMT 2014

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

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