hi all
I would like to display files and folders. I did something like that but it only display folder and I do not like the first nesting (the first folder got the other nested in). I also found FolderGroup rather boring because it is not polymorphic to folder. May be we should really start to consider trait for Famix40.
view shape rectangle width: #numberOfFiles; height: #numberOfFunctions. view nodes: folderGroup forEach: [:each | view node: each. view shape rectangle width: #numberOfFiles; height: #numberOfFunctions. view nodes: each allRecursiveFolders. view nodes: each allRecursiveFiles. view edgesFrom: #belongsTo. view treeLayout. view interaction popupText: [:aFile | aFile entities first numberOfVariables printString, ' variables x ', aFile entities first numberOfFunctions printString, ' functions ' ]. ]
any suggestion how to code that in a better way? Mondrian looks too magic for me.
Stef
Hi Stef,
I am not sure I understand what the exact problem is.
From reading this code, it looks like you will have a rectangle for each folder in the folderGroup and inside each of these, you will display the sub tree of folders and files.
What exactly else would you like the visualization to be?
Cheers, Doru
On 26 Nov 2009, at 23:17, stephane ducasse wrote:
hi all
I would like to display files and folders. I did something like that but it only display folder and I do not like the first nesting (the first folder got the other nested in). I also found FolderGroup rather boring because it is not polymorphic to folder. May be we should really start to consider trait for Famix40.
view shape rectangle width: #numberOfFiles; height: #numberOfFunctions. view nodes: folderGroup forEach: [:each | view node: each. view shape rectangle width: #numberOfFiles; height: #numberOfFunctions. view nodes: each allRecursiveFolders. view nodes: each allRecursiveFiles. view edgesFrom: #belongsTo. view treeLayout. view interaction popupText: [:aFile | aFile entities first numberOfVariables printString, ' variables x ', aFile entities first numberOfFunctions printString, ' functions ' ]. ]
any suggestion how to code that in a better way? Mondrian looks too magic for me.
Stef
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"It's not what we do that matters most, it's how we do it."
I want it to look like that where a box represent a folder or a file and folder get as shape the number of functions they contain
On Nov 26, 2009, at 11:24 PM, Tudor Girba wrote:
Hi Stef,
I am not sure I understand what the exact problem is.
From reading this code, it looks like you will have a rectangle for each folder in the folderGroup and inside each of these, you will display the sub tree of folders and files.
What exactly else would you like the visualization to be?
Cheers, Doru
On 26 Nov 2009, at 23:17, stephane ducasse wrote:
hi all
I would like to display files and folders. I did something like that but it only display folder and I do not like the first nesting (the first folder got the other nested in). I also found FolderGroup rather boring because it is not polymorphic to folder. May be we should really start to consider trait for Famix40.
view shape rectangle width: #numberOfFiles; height: #numberOfFunctions. view nodes: folderGroup forEach: [:each | view node: each. view shape rectangle width: #numberOfFiles; height: #numberOfFunctions. view nodes: each allRecursiveFolders. view nodes: each allRecursiveFiles. view edgesFrom: #belongsTo. view treeLayout. view interaction popupText: [:aFile | aFile entities first numberOfVariables printString, ' variables x ', aFile entities first numberOfFunctions printString, ' functions ' ]. ]
any suggestion how to code that in a better way? Mondrian looks too magic for me.
Stef
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"It's not what we do that matters most, it's how we do it."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Stef,
Try this. First obtain allFoldersOfInterest and allFilesOfInterest and then:
view shape rectangle height: #numberOfFunctions. view nodes: allFoldersOfInterest. view shape rectangle height: #numberOfFunctions. view nodes: allFilesOfInterest. view edgesFrom: #belongsTo. view treeLayout
Cheers, Doru
On 26 Nov 2009, at 23:42, Stéphane Ducasse wrote:
I want it to look like that where a box represent a folder or a file and folder get as shape the number of functions they contain
<argouml-namespace-complexity.pdf>
On Nov 26, 2009, at 11:24 PM, Tudor Girba wrote:
Hi Stef,
I am not sure I understand what the exact problem is.
From reading this code, it looks like you will have a rectangle for each folder in the folderGroup and inside each of these, you will display the sub tree of folders and files.
What exactly else would you like the visualization to be?
Cheers, Doru
On 26 Nov 2009, at 23:17, stephane ducasse wrote:
hi all
I would like to display files and folders. I did something like that but it only display folder and I do not like the first nesting (the first folder got the other nested in). I also found FolderGroup rather boring because it is not polymorphic to folder. May be we should really start to consider trait for Famix40.
view shape rectangle width: #numberOfFiles; height: #numberOfFunctions. view nodes: folderGroup forEach: [:each | view node: each. view shape rectangle width: #numberOfFiles; height: #numberOfFunctions. view nodes: each allRecursiveFolders. view nodes: each allRecursiveFiles. view edgesFrom: #belongsTo. view treeLayout. view interaction popupText: [:aFile | aFile entities first numberOfVariables printString, ' variables x ', aFile entities first numberOfFunctions printString, ' functions ' ]. ]
any suggestion how to code that in a better way? Mondrian looks too magic for me.
Stef
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"It's not what we do that matters most, it's how we do it."
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
-- www.tudorgirba.com
"It's not how it is, it is how we see it."
doru
do you have an idea why
| f ff| f := folderGroup entities. ff := f flatCollect: [:each | each allRecursiveFolders]. does not work? We cannot do a flat collect on array?
| f ff| f := folderGroup. ff := f flatCollect: [:each | each allRecursiveFolders].
does not work either. i'm confused
Stef
Hi Stef,
Both of these should work. Why do you say it does not work. What exactly do you get?
Then, how do you obtain the folders/files? What code do you use to import? Is it in CAnalyzer?
Cheers, Doru
On 27 Nov 2009, at 12:35, Stéphane Ducasse wrote:
doru
do you have an idea why
| f ff| f := folderGroup entities. ff := f flatCollect: [:each | each allRecursiveFolders].
does not work? We cannot do a flat collect on array?
| f ff| f := folderGroup. ff := f flatCollect: [:each | each allRecursiveFolders].
does not work either. i'm confused
Stef
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Live like you mean it."
Hi Stef,
Both of these should work. Why do you say it does not work. What exactly do you get?
I get an error: FAMIXFolderGroup DNU insertInto:from:to:
Then, how do you obtain the folders/files? What code do you use to import? Is it in CAnalyzer?
If you load Canalyser
| model importer | model := MooseModel new. importer := CXMLFileImporter inModel: model. importer loadFolderFile: '/Users/ducasse/Workspace/FirstCircle/Writing/Working/2009MoosePortFolio/Code/CairoSrc188'. model install
Stef
Cheers, Doru
On 27 Nov 2009, at 12:35, Stéphane Ducasse wrote:
doru
do you have an idea why
| f ff| f := folderGroup entities. ff := f flatCollect: [:each | each allRecursiveFolders].
does not work? We cannot do a flat collect on array?
| f ff| f := folderGroup. ff := f flatCollect: [:each | each allRecursiveFolders].
does not work either. i'm confused
Stef
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Live like you mean it."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Stef,
The error was that insertInto:from:to: was not implemented in Group. Now it is, it works and it is tested. You have to update Moose-Core.
This raises another issue: it would probably be a good idea to have MooseGroup use Nile traits, but that is for another day.
Cheers, Doru
On 27 Nov 2009, at 22:22, Stéphane Ducasse wrote:
Hi Stef,
Both of these should work. Why do you say it does not work. What exactly do you get?
I get an error: FAMIXFolderGroup DNU insertInto:from:to:
Then, how do you obtain the folders/files? What code do you use to import? Is it in CAnalyzer?
If you load Canalyser
| model importer | model := MooseModel new. importer := CXMLFileImporter inModel: model. importer loadFolderFile: '/Users/ducasse/Workspace/FirstCircle/ Writing/Working/2009MoosePortFolio/Code/CairoSrc188'. model install
Stef
Cheers, Doru
On 27 Nov 2009, at 12:35, Stéphane Ducasse wrote:
doru
do you have an idea why
| f ff| f := folderGroup entities. ff := f flatCollect: [:each | each allRecursiveFolders].
does not work? We cannot do a flat collect on array?
| f ff| f := folderGroup. ff := f flatCollect: [:each | each allRecursiveFolders].
does not work either. i'm confused
Stef
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Live like you mean it."
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
-- www.tudorgirba.com
"Every now and then stop and ask yourself if the war you're fighting is the right one."
Thanks
Stef
On Nov 28, 2009, at 12:25 AM, Tudor Girba wrote:
Hi Stef,
The error was that insertInto:from:to: was not implemented in Group. Now it is, it works and it is tested. You have to update Moose-Core.
This raises another issue: it would probably be a good idea to have MooseGroup use Nile traits, but that is for another day.
Cheers, Doru
On 27 Nov 2009, at 22:22, Stéphane Ducasse wrote:
Hi Stef,
Both of these should work. Why do you say it does not work. What exactly do you get?
I get an error: FAMIXFolderGroup DNU insertInto:from:to:
Then, how do you obtain the folders/files? What code do you use to import? Is it in CAnalyzer?
If you load Canalyser
| model importer | model := MooseModel new. importer := CXMLFileImporter inModel: model. importer loadFolderFile: '/Users/ducasse/Workspace/FirstCircle/Writing/Working/2009MoosePortFolio/Code/CairoSrc188'. model install
Stef
Cheers, Doru
On 27 Nov 2009, at 12:35, Stéphane Ducasse wrote:
doru
do you have an idea why
| f ff| f := folderGroup entities. ff := f flatCollect: [:each | each allRecursiveFolders].
does not work? We cannot do a flat collect on array?
| f ff| f := folderGroup. ff := f flatCollect: [:each | each allRecursiveFolders].
does not work either. i'm confused
Stef
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Live like you mean it."
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
-- www.tudorgirba.com
"Every now and then stop and ask yourself if the war you're fighting is the right one."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev