Thanks you.

Got this working. It is cool.

b := RTUMLClassBuilder new.
package := RPackageOrganizer default packageNamed: 'MyTopLevelPackage'.
tags := package classTags.
objects := (tags collect: [ :t | package classesForClassTag: t  name]) flatten.

b addObjects: objects.
b treeLayout.
b build.
b view

I do miss method categories. How is one visualizing that? All of my methods are lumped up in a big pile. Is there any way I can get a kind of compartment for each of them? 

In the past, I tried out Dandelion tooling and there was an XMI export. Do you have that somewhere in Moose?

Phil


On Thu, Nov 6, 2014 at 2:29 PM, Tudor Girba <tudor@tudorgirba.com> wrote:
Hi,

To get the tags you can just send #classTags to the RPackage instance:
(RPackageOrganizer default packageNamed: 'Roassal2') classesForClassTag: 'Builder-UML'

Btw, if you load the latest version of GT-InspectorExtensions-Core, you will get some presentations that might help navigating.

Cheers,
Doru


On Thu, Nov 6, 2014 at 2:07 PM, phil@highoctane.be <phil@highoctane.be> wrote:
I commented out the click thing.
I got the view. Nice.

Now, another problem.

My package has a lot of tags in it. So, the package is too big to give anything sensical in the UML view (very very wide picture).

I tried this:

 (RPackageOrganizer default packageNamed: 'Blah-Webapplication') definedClasses.

But of course, it doesn't work.

How is one getting classes from one tag, or more than one level?

Package tags are like: Blah-Webapplication-Parts, Blah-Webapplication-Framework etc.

TIA
Phil






On Thu, Nov 6, 2014 at 1:15 PM, Tudor Girba <tudor@tudorgirba.com> wrote:
Indeed. You need a fairly recent version of Roassal2 to get RTUMLClassBuilder.

For a package, you can simply trigger it like this (inspect):
b := RTUMLClassBuilder new.
b addObjects: (RPackageOrganizer default packageNamed: 'AST-Core') definedClasses.
b treeLayout.
b build.
b view

Cheers,
Doru

On Thu, Nov 6, 2014 at 12:55 PM, Peter Uhnák <i.uhnak@gmail.com> wrote:
Do you have the latest version?

Gofer new smalltalkhubUser: 'ObjectProfile' project: 'Roassal2'; package: 'ConfigurationOfRoassal2'; load. (Smalltalk at: #ConfigurationOfRoassal2) loadDevelopment

On Thu, Nov 6, 2014 at 12:37 PM, phil@highoctane.be <phil@highoctane.be> wrote:
Thx... Roassal2 is loaded in my image but there is no RTUMLClassBuilder there.


Inline image 1

Where can I get that?

Phil

On Thu, Nov 6, 2014 at 11:42 AM, Peter Uhnák <i.uhnak@gmail.com> wrote:
Check out RTUMLClassBuilder in Roassal2, this is used by Moose. (Not sure by Pharo 3 compatibility but Roassal2 should work there.)

Peter

On Thu, Nov 6, 2014 at 11:10 AM, Usman Bhatti <usman.bhatti@gmail.com> wrote:
I haven't seen support for UML class diagrams in a Pharo image yet.

However, it is possible in Moose image.
Open MoosePanel, import your code in Moose (st icon on top right). One model imported, All Model Classes-> right click -> UML Class diagram.

usman

On Thu, Nov 6, 2014 at 10:34 AM, phil@highoctane.be <phil@highoctane.be> wrote:
Hello,

I've got an image I develop in and would like to be able to generate diagrams for a number of classes and relationships to explain how things are working to other people.

How can I do that with Moose? (Or GT I have loaded in 3.0)

I have seen a couple diagrams floating around, so it is definitely possible to do.

But I also saw that all of that was done in a Moose image and not in a normal Pharo image.

TIA
Phil


 


_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev