Hi,
A short while ago I upgraded the CompositePresentation to be able to use it as an entry point to a Glamour script.
The idea here is that we can now use Glamour like we use Mondrian: we instantiate the GLMCompositePresentation once and then we always pass it to other methods.
For example:
buildBrowser | browser | browser := GLMTabulator new. browser ...
==>
buildIn: composer composer tabulator with: [:t | t ... ]
The old way still works, of course. The nice thing about this solution is that it works better with the editor (you are given the composer).
For a live example, see: http://www.humane-assessment.com/blog/building-a-simple-code-browser
Let me know what you think.
Cheers, Doru
-- www.tudorgirba.com
"Sometimes the best solution is not the best solution."
buildIn: composer composer tabulator with: [:t | t ... ]
The old way still works, of course. The nice thing about this solution is that it works better with the editor (you are given the composer).
For a live example, see: http://www.humane-assessment.com/blog/building-a-simple-code-browser
Let me know what you think.
"composer" is a very generic term. Wouldn't "browser" be a better variable name?
Cheers, Alexandre
Hi,
On 23 Oct 2011, at 22:52, Alexandre Bergel wrote:
buildIn: composer composer tabulator with: [:t | t ... ]
The old way still works, of course. The nice thing about this solution is that it works better with the editor (you are given the composer).
For a live example, see: http://www.humane-assessment.com/blog/building-a-simple-code-browser
Let me know what you think.
"composer" is a very generic term. Wouldn't "browser" be a better variable name?
I am not quite satisfied with the name, but "browser" because it is not a browser. It is a composite presentation. So, for someone knowing a bit the internals of Glamour it would be confusing.
I was actually thinking of renaming the GLMCompositePresenatation to GLMComposer. Or does anyone else have other ideas?
Cheers, Doru
Cheers, Alexandre
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
If you can't say why something is relevant, it probably isn't.