Status: New
Owner: tudor.gi...(a)gmail.com
CC: damien.c...(a)gmail.com
Labels: Type-Defect Priority-Medium Component-Glamour Milestone-4.6
New issue 685 by tudor.gi...(a)gmail.com: Glamour does not copy the
transmission context properly
http://code.google.com/p/moose-technology/issues/detail?id=685
The following piece of code should display 42 in the lower pane.
finder := GLMFinder new.
finder show: [:a | a list display: [:x | 1 to: x ]].
finder transmit fromOutsidePort: #entity; toOutsidePort: #something.
browser := GLMTabulator new.
browser row: #explorer; row: #details.
browser transmit to: #explorer; andShow: [:a | a custom: finder].
browser transmit from: #explorer port: #something; to: #details; andShow:
[:a | a text ].
browser openOn: 42.
Hi list,
I'm implementing a log viewer, and the usual is to show then newer entries at the bottom of the list.
I got the update mechanism working, but every time the list is updated, it shows the top of the list, even though I was looking at the bottom of the list.
How can I tell a list to show the bottom by default?
Thanks in advance!
PS: Glamour rocks!
Hi Andre,
I reviewed the Hismo changes you committed in your repo. Nice.
Please publish them in the main repository.
Cheers,
Doru
--
www.tudorgirba.com
"If you interrupt the barber while he is cutting your hair,
you will end up with a messy haircut."
Hi,
I would like to create a code browser, where the top pane is a finder which
adds a new pane when some clicks on a class name. The following code works
fine except with interactions like:
1- select a class
2- select a selector of this class
3- select a class in the newly added pane
This tries to display the source code of the class selected in step 3 for
the selector of step 2 (which is wrong because selector of step 2 is only
defined in the class of step 1).
Can somebody help me please? The code is:
|extTabulator finder intTabulator|
intTabulator := GLMTabulator new column: #classes; column: #selectors;
yourself.
intTabulator transmit to: #classes; andShow: [:a | a list title: 'classes';
display: [:class | class allSuperclasses]].
intTabulator transmit from: #classes; to: #selectors; andShow: [:a | a list
title: 'selectors'; display: [:class | class selectors]].
finder := GLMFinder new.
finder custom: intTabulator.
"Makes the finder add an new pane when selecting a class"
intTabulator transmit from: #classes; toOutsidePort: #selection.
extTabulator := GLMTabulator new row: #finder; row: #source; yourself.
extTabulator transmit to: #finder; andShow: [:a | a custom: finder].
"Makes the internet tabulator exports the currently selected selector"
intTabulator transmit from: #selectors; toOutsidePort: #selector.
extTabulator transmit
from: #finder;
from: #finder port: #selector;
to: #source;
andShow: [:a | a text
display: [:class :selector | class name, '>>', selector, String cr,
((class includesSelector: selector)
ifTrue: ['ok']
ifFalse: ['ERROR: class does not have this selector!'])]].
extTabulator openOn: IdentitySet.
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular
by not having them." James Iry
Hi Steffen,
I reply to the Moose list (most PP action is going on there), because
other people might be interested as well.
On Wednesday, 20 July 2011, Steffen Märcker <merkste(a)web.de> wrote:
> Hi Lukas,
>
> I've just had a look at PetitParser which seem pretty cool. However, using Visualworks, I wonder whether the visualization tools (e.g. grammar workbench) have been (going to be) portered, too.
The tools are built on Glamour and Mondrian, and likely do not work
with the older versions of these frameworks in VW. I have a similar
problem with older Pharo images that do not support loading Glamour
anymore.
What you could do is to develop the grammars using a Moose image (they
include the grammar workbench) and then export the package.
Lukas
--
Lukas Renggli
www.lukas-renggli.ch
Hi list,
Is it possible to put a text label to an edge?
For example, I have two lines going from A to B, and I want to put a text on
those two lines.
A ----some text------ |
B
A ----another text ---|
Ascii art, :-)
Thanks!
Hi Frank,
I forward this to the Moose list (most PP action is going on there),
because other people might be interested as well.
On Wednesday, 20 July 2011, Frank Shearar <frank.shearar(a)gmail.com> wrote:
> Hi Lukas,
>
> I've been playing around with PetitParser lately
> (http://www.lshift.net/blog/2011/07/19/un-petit-haskell), and I
> thought (a) I'd tell you about another happy user and (b) share a
> trick, which you may already know. A println analogue for debugging
> one's productions, occasionally useful when one runs too far ahead of
> one's tests:
>
> PPParser>>debug: aString
> Â Â Â Â ^ self ==> [:x | Transcript showln: ('{1} ({2})' format: {aString. x.}). x].
You might be also be interested in #>=> that passes you a continuation
into the block, so it allows you to "debug" before and after the
parse. I used it to write the Glamour-based debugger. Look at the
tests for more details.
> One problem I have found is that PetitStream doesn't work well
> wrapping a (Squeak) FileStream. I had expected the following to just
> work:
>
> Â Â FileStream
> Â Â Â Â fileNamed: 'myFile'
> Â Â Â Â do: [:f | HaskellParser new parse: f]
>
> but I currently have to read the entire file into a String and parse
> that. I'm don't know if that's because of a difference between
> Squeak's and Pharo's FileStream implementation or a problem in
> PetitParer?
It should work, but convert the stream to a PPStram using
#asPetitStream. I cannot verify right now, because I don't have a
computer accessible. Parsing directly on a filestream could
potentially work (you might need to implement #uncheckedPeek) but will
be dead slow (PP extensively uses #position: and #next to randomly
acces the stream, as you can see on Figure 2 in
http://scg.unibe.ch/archive/papers/Reng10cDynamicGrammars.pdf).
Thanks for sharing your blog post and experience!
Lukas
--
Lukas Renggli
www.lukas-renggli.ch
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 684 by vonbecm...(a)gmail.com: SubscriptOutOfBounds: 4
http://code.google.com/p/moose-technology/issues/detail?id=684
Moose version: 4.5
Pharo image: Pharo1.3a#13258
Virtual machine used: Croquet Closure Cog VM [CoInterpreter
VMMaker-oscog.51]
Platform Name: unix
Class browser used (if applicable): OBSystemBrowserAdaptor
Steps to reproduce:
#. close all models
#. select a model
Actual Result:
SubscriptOutOfBounds: 4
Expected Result:
to open a model.
* Type-Defect
Attachments:
PharoScreenshot.1.png 69.7 KB
PharoDebug.log 4.7 KB