parentSelectors
by Tudor Girba
Hi,
I just saw that the way the parent selectors are being defined was changed. In general, please announce deep changes like these on the mailing list.
If I understand correctly, the goal was to make it easier for extensions to specify the parentSelectors. This is a good goal, but there are two problems with the current solution:
1. The parentSelectors should be extensible. Right now, they are defined in one method returning a collection of strings. Instead, it would be better to have them described directly in the selector method. For example, we could have:
FAMIXType>>container
<MSEProperty: #container type: #FAMIXContainerEntity opposite: #types>
<MSEComment: 'Container entity to which this type belongs to. Container is a namespace, not a package (Smalltalk).'>
<MSEParentProperty>
^container
This would also allow us to extend existing classes with annotations that can be selectors.
2. Right now, the parentSelectors are defined on the instance side as an MSE property:
FAMIXType>>parentSelectors
<MSEProperty: #parentSelectors type: #String>
<multivalued>
^ #(container parentPackage)
This is incorrect given that they describe the type, not the instance. For example, one consequence is that now we serialize this information (check MooseModel>>testExport which fails right now). Instead, let’s go for solution from point 1.
What do you think?
Cheers,
Doru
--
www.tudorgirba.com
www.feenk.com
"It's not how it is, it is how we see it."
6 years, 6 months
GT-InspectorExtensions-CoreRoassal dependency problem
by Hernán Morales Durand
Hi.
I am using Pharo 5.0 and installing a Metacello config which is loading
Roassal2 (stable).
At some loading step a Warning dialog raises which is preventing unattended
automatization of whole installation. This is the message:
This package depends on the following classes:
CPDiverging
CPQualitative
CPSequential
You must resolve these dependencies before you will be able to load these
definitions:
CPDiverging>>#gtExampleColorPalette
CPDiverging>>#gtInspectorPreviewIn:
CPQualitative>>#gtExampleColorPalette
CPQualitative>>#gtInspectorPreviewIn:
CPSequential>>#gtExampleColorPalette
CPSequential>>#gtInspectorPreviewIn:
The package loaded at that point is GT-InspectorExtensions-
CoreRoassal-TudorGirba.44
Any hints?
Hernán
6 years, 6 months
Robust way to fit RTBox around variable text
by Cris Fuhrman
Hello,
I'd like to visualize a graph where the nodes are boxes and they have text
inside. The boxes should grow or shrink horizontally so the text doesn't go
outside the box.
I saw the answer at
http://forum.world.st/Roassal2-Label-width-td4847887.html which led me to a
solution. However, I've commented the "not robust" part below, since it's
passing by "lbl" which I suspect could change.
~~~~~~~~~~~~~~~~
| b label el |
b := RTView new.
el := RTBox new elementOn: 'hello world'.
label := RTLabeled new center.
b add: el.
el @ label.
"not robust"
el width: label lbl width.
el height: label lbl height.
b
~~~~~~~~~~~~~~~~~~~~~~
[image: Inline image 1]
I found the unit tests for RTLabel (RTLabelTest) and I found another
solution, but maybe it's equally fragile?
~~~~~~~~~~~~~~~~~~~~~~~~~
| text b lblBox lblForCalc dummyElement |
text := 'Text inside the box'.
b := RTView new.
lblBox := (RTBox new elementOn: text) + RTLabel.
lblForCalc := RTLabel new text: text.
dummyElement := RTElement new.
lblBox height: (lblForCalc heightFor: dummyElement).
lblBox width: (lblForCalc widthFor: dummyElement).
b add: lblBox.
b
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[image: Inline image 2]
I'd love to get some feedback on these approaches. Maybe there's a simpler
robust way? Thanks!
6 years, 6 months
How to use Hismo?
by Alexandre Bergel
Hi!
Is there a tutorial on how to use Hismo? If I have several model, how can I add them in a HismoModel? How to create such a model by the way?
Cheers,
Alexandre
6 years, 6 months
Looking for a webpage on moosetechnology.org
by Blondeau Vincent
Hi,
I am looking for http://www.moosetechnology.org/tools/Orion. This page was available in the old website version, but vanished with the new one.
Does someone still have the source code of the webpage? Or, can someone put the page in the new website?
BTW, there are others documentation pages that are missing like the moose algo one...
Thanks in advance,
Cheers,
Vincent
!!!*************************************************************************************
"Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? de Worldline ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.!!!"
6 years, 6 months
[ann] pillar support in gtinspector
by Tudor Girba
Hi,
I updated the Pillar support in GTInspector. Some of the extensions already exist in the default Pillar #development version. If you want to play with the full support, you can load it like this:
Gofer new
smalltalkhubUser: 'Moose' project: 'PetitParser';
package: 'PetitAnalyzer';
package: 'PetitIndent';
package: 'PetitIslands';
smalltalkhubUser: 'Moose' project: 'GToolkit';
package: 'GT-InspectorExtensions-Pillar';
load
Then you can just inspect a book folder and you get this:
I did not integrate this in the main Pillar yet because this is an older implementation based on a limited island parser. As now Pillar has a full parser based on PetitParser, the next step is to move the highlighting logic to use this parser instead of the island parser. From my measurements, the speed of the two parsers is about the same, so from a user perspective there will be not much changes.
It pains me that we are editing Pillar in outside tools, and now we should no longer have to do that. Of course, this is not the most ideal tool support for Pillar but I think it is a reasonable start.
Cheers,
Doru
--
www.tudorgirba.com
www.feenk.com
"Problem solving should be focused on describing
the problem in a way that makes the solution obvious."
6 years, 6 months
TRCanvas canvas/surface
by Nicolai Hess
During debugging the Athens-Crash I found something strange about TRCanvas
(not responsible for the crash)
1. TRCanvas canvas instance variable is not a AthensCairoCanvas at all but
an AthensCairoSurface
2. the canvas resp. surface is initialized with TRCanvas initial extent but
a change on TRCanvas extent does not change the surfaces extent
3. Is this canvas resp. surface actually used ? Do we only need it to
manage some external resources (path/ image forms) ?
Can it be removed or at least renamed to something different.
regards
nicolai
6 years, 6 months
parentBehaviouralEntity is nil for Java local variable declared in static block (FAMIXLocalVariable)
by Fuhrmanator
Here's another anomaly I found in my reasoning about Java interfaces through
MSE files. In the example with ArgoUML 0.28.1 there's a class called
ConfigurationFactory.java that declares a local variable in a static block:
static {
...
IConfigurationFactory newFactory = null;
...
}
Within MOOSE, the FAMIXLocalVariable "newFactory" shows up in the
structuresWithDeclaredTypes for the FAMIXClass "IConfigurationFactory".
However, its parentBehaviouralEntity is nil.
Is this because static blocks in Java don't map to behavioural entities in
FAMIX? I'm trying to understand the nil case, as it doesn't happen with all
FAMIXLocalVariables.
The problem is obviously that I can't find the dependency on the interface
in this case.
In the stated example, there's also a private static final Attribute, so the
MOOSE dependency comes through that in the end (it's a redundant
dependency). But I'm guessing there could be some cases where a dependency
via local variable used in a static block might not always be stored in an
Attribute.
Any ideas on how to work around this?
Possibly related: https://github.com/moosetechnology/moose/issues/785
--
View this message in context: http://forum.world.st/parentBehaviouralEntity-is-nil-for-Java-local-varia...
Sent from the Moose mailing list archive at Nabble.com.
6 years, 6 months
Java interfaces and clientTypes
by Fuhrmanator
[Apologies to the moderator(s) for trying to post this via email with the
wrong address. ]
I have Moose 6.0 and I've used jdt2famix 1.0.2 to generate an MSE file. I'm
trying to use Moose to reason about clients of Java interfaces. I would like
to find any classes that depend on an interface by any means. I thought
using clientTypes was the right thing, except it doesn't work the way I
expect in a simple case.
For the interface in my example, clientTypes only returns the class that is
an implementation of the interface (which makes sense, as they depend on it)
but not the client class that uses it via a private static reference (which,
to me, doesn't make sense).
For more information, I am able find the client of the interface via
structuresWithDeclaredType, so I'm pretty sure it's not information missing
in the MSE file (not a jdt2famix bug).
Based on the simple example below, shouldn't clientTypes for ITest return
ClassAClient and ConcreteImplementationA rather than just
ConcreteImplementationA?
// ITest.java
public interface ITest {
}
// ConcreteImplementationA.java
public class ConcreteImplementationA implements ITest {
}
// ClassAClient.java
public class ClassAClient {
private static ITest theTest;
public static void main(String arg[]) {
theTest = new ConcreteImplementationA();
}
}
--
View this message in context: http://forum.world.st/Java-interfaces-and-clientTypes-tp4915115.html
Sent from the Moose mailing list archive at Nabble.com.
6 years, 6 months