Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Visualizing Java
Visualizing Java [message #1706937] Tue, 01 September 2015 05:35 Go to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
Hi,

I probably should know this but is there a (simple) way to visualize java project(s) structure (packages and classes etc) and their dependecies? Ie. can I generate a model of the project structure?

BR
Patrik
Re: Visualizing Java [message #1707000 is a reply to message #1706937] Tue, 01 September 2015 12:18 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Modisco.

Regards

Ed Willink


On 01/09/2015 06:35, Patrik Nandorf wrote:
> Hi,
>
> I probably should know this but is there a (simple) way to visualize
> java project(s) structure (packages and classes etc) and their
> dependecies? Ie. can I generate a model of the project structure?
>
> BR
> Patrik
Re: Visualizing Java [message #1707272 is a reply to message #1707000] Thu, 03 September 2015 11:59 Go to previous messageGo to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
Thanks Ed, I forgot about Modisco (which I never got something useful out of it)

However I was hoping for something to create a Papyrus model (thus the question in this forum)
Re: Visualizing Java [message #1707278 is a reply to message #1707272] Thu, 03 September 2015 12:35 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Doesn't really make sense.

Concepts such as Projects/Folders/Files are not UML elements, so you
cannot represent a project as a UML model.

You could create a UML model of the concepts and then have UML instance
diagram, but it would be a bit contrived.

I would investigate how easily Sirius can eat a Modisco product.

Regards

Ed Willink


On 03/09/2015 12:59, Patrik Nandorf wrote:
> Thanks Ed, I forgot about Modisco (which I never got something useful
> out of it)
>
> However I was hoping for something to create a Papyrus model (thus the
> question in this forum)
Re: Visualizing Java [message #1707297 is a reply to message #1707278] Thu, 03 September 2015 14:25 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi,

The ADL4Eclipse extra-component provides a profile for OSGI + Eclipse artifacts, and can reverse an Eclipse workspace or installation into a (stereotyped) UML Model. It provides an high level overview of the plug-ins, dependencies and extensions. However, it doesn't go too deep in the details. Especially, Java code is not reversed (I think it stops to exported packages). That's still work-in-progress, I don't know if the latest improvements are publicly available yet, or still pending on Gerrit. And we applied it on Eclipse plug-ins, which are not exactly Java projects, so I don't know how well it's gonna work with that.

There is also an extra-component to reverse Java code in Papyrus, but it is unmaintained, and I think it can only reverse the structure (Package, Classes, Attributes, Methods, but not the implementation of the methods). I'm not sure about that.

The Eclipse UMLGen project might also contain some tools for Java (Most likely a code generator, not sure about reverse tools)

HTH,
Camille


Camille Letavernier
Re: Visualizing Java [message #1707569 is a reply to message #1707297] Mon, 07 September 2015 12:42 Go to previous messageGo to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
Camille Letavernier wrote on Thu, 03 September 2015 16:25
Hi,
There is also an extra-component to reverse Java code in Papyrus, but it is unmaintained, and I think it can only reverse the structure (Package, Classes, Attributes, Methods, but not the implementation of the methods). I'm not sure about that.


Thanks Camille, do you know the name of the extra component? Might be worth a look.
Re: Visualizing Java [message #1707570 is a reply to message #1707569] Mon, 07 September 2015 12:45 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi Patrik,

In the Papyrus Extra update site (e.g. http://download.eclipse.org/modeling/mdt/papyrus/updates/releases/mars/extra), look inside the "Papyrus Java" category. It contains a UML Profile for Java, a Code Generator and a Reverse tool. You may also need to install QVTo manually to make it work properly

HTH,
Camille


Camille Letavernier
Re: Visualizing Java [message #1707603 is a reply to message #1707569] Mon, 07 September 2015 19:17 Go to previous message
Cedric Dumoulin is currently offline Cedric DumoulinFriend
Messages: 51
Registered: July 2009
Member
Patrik Nandorf a écrit :
> Camille Letavernier wrote on Thu, 03 September 2015 16:25
>> Hi,
>> There is also an extra-component to reverse Java code in Papyrus, but
>> it is unmaintained, and I think it can only reverse the structure
>> (Package, Classes, Attributes, Methods, but not the implementation of
>> the methods). I'm not sure about that.
>
>
> Thanks Camille, do you know the name of the extra component? Might be
> worth a look.

Hi,

This components are maintained. I have check installation today, and
they still work.

The documentation can be found in the wiki (and in Eclipse help once
installed) :
- http://wiki.eclipse.org/Java_reverse_engineering
- http://wiki.eclipse.org/Java_Code_Generation

Hope this elp,
Cedric
Previous Topic:Cannot apply any profile in Mars/Papyrus 1.1
Next Topic:A new version of tutorial
Goto Forum:
  


Current Time: Fri Mar 29 08:25:56 GMT 2024

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

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

Back to the top