CurrentContext in description defaults

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

CurrentContext in description defaults

keith1y
This doesn't seem to work for me, is it wring for me to expect it to?

descriptionBelow
    ^ PRStructureDescription new
        default: [ PRCurrentContext value ifNotNilDo: [ :c | c kernel
root ] ] asDynamicObject;
        selectorAccessor: #target;
        priority: 50;
        beSetting;
        yourself

thanks in advance

Keith

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: CurrentContext in description defaults

Lukas Renggli-2
> This doesn't seem to work for me, is it wring for me to expect it to?

- What do you expect it to do?
- What do you get instead?

Sorry, I don't understand your question.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: CurrentContext in description defaults

keith1y
Lukas Renggli wrote:

>> This doesn't seem to work for me, is it wring for me to expect it to?
>>    
>
> - What do you expect it to do?
> - What do you get instead?
>
> Sorry, I don't understand your question.
>
> Lukas
>  
erm...

I get never ending conflict errors when editing the components settings.

Keith

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: CurrentContext in description defaults

Lukas Renggli-2
>>> This doesn't seem to work for me, is it wring for me to expect it  
>>> to?
>>>
>>
>> - What do you expect it to do?
>> - What do you get instead?
>>
>> Sorry, I don't understand your question.
>>
>> Lukas
>>
> erm...
>
> I get never ending conflict errors when editing the components  
> settings.

Ahh. I copied your description to my image and editing works. I don't  
get any conflicts.

Could it be that your #target accessor does not return consistent  
results when being called? E.g. it is necessary that aStructure  
target = aStructure target.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: CurrentContext in description defaults

keith1y
Lukas Renggli wrote:

>>>> This doesn't seem to work for me, is it wring for me to expect it  
>>>> to?
>>>>
>>>>        
>>> - What do you expect it to do?
>>> - What do you get instead?
>>>
>>> Sorry, I don't understand your question.
>>>
>>> Lukas
>>>
>>>      
>> erm...
>>
>> I get never ending conflict errors when editing the components  
>> settings.
>>    
>
> Ahh. I copied your description to my image and editing works. I don't  
> get any conflicts.
>
> Could it be that your #target accessor does not return consistent  
> results when being called? E.g. it is necessary that aStructure  
> target = aStructure target.
>
> Lukas
>  
My target accessor is simply,

target
    ^ self read: #descriptionBelow

so I am none the wiser.

Keith

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: CurrentContext in description defaults

Lukas Renggli-2
Fixed in:

Name: Pier-Seaside-lr.206
Author: lr
Time: 14 September 2007, 10:59:05 am
UUID: ebe8b395-1ae3-4224-990d-4e3ce271eaae
Ancestors: Pier-Seaside-lr.205

- make sure to resolve dynamic proxies in PRComponent (thanks to  
Keith Hodges for reporting)

Lukas

On 14 Sep 2007, at 10:15, Keith Hodges wrote:

> Lukas Renggli wrote:
>>>>> This doesn't seem to work for me, is it wring for me to expect it
>>>>> to?
>>>>>
>>>>>
>>>> - What do you expect it to do?
>>>> - What do you get instead?
>>>>
>>>> Sorry, I don't understand your question.
>>>>
>>>> Lukas
>>>>
>>>>
>>> erm...
>>>
>>> I get never ending conflict errors when editing the components
>>> settings.
>>>
>>
>> Ahh. I copied your description to my image and editing works. I don't
>> get any conflicts.
>>
>> Could it be that your #target accessor does not return consistent
>> results when being called? E.g. it is necessary that aStructure
>> target = aStructure target.
>>
>> Lukas
>>
> My target accessor is simply,
>
> target
>     ^ self read: #descriptionBelow
>
> so I am none the wiser.
>
> Keith
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki

--
Lukas Renggli
http://www.lukas-renggli.ch


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: CurrentContext in description defaults

keith1y
loading the latest Pier-Model I get

 Keith

---

14 September 2007 2:21:37 am

VM: Win32 - a SmalltalkImage
Image: Squeak3.10beta [latest update: #7137]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir D:\Squeak\ws
Trusted Dir D:\Squeak\ws\administrator
Untrusted Dir C:\My Squeak\administrator

PRCompatibility class(Object)>>doesNotUnderstand: #allSubInstancesOf:do:
    Receiver: PRCompatibility
    Arguments and temporary variables:
        aMessage:     allSubInstancesOf: PRLink do: [] in PRMigrations
class>>migrateLinkPa...etc...
    Receiver's instance variables:
        superclass:     MACompatibility
        methodDict:     a MethodDictionary()
        format:     2
        instanceVariables:     nil
        organization:     ('as yet unclassified')

        subclasses:     nil
        name:     #PRCompatibility
        classPool:     nil
        sharedPools:     nil
        environment:     a SystemDictionary(lots of globals)
        category:     #'Pier-Model-Core'
        traitComposition:     {}
        localSelectors:     nil

PRMigrations class>>migrateLinkParameters
    Receiver: PRMigrations
    Arguments and temporary variables:
        each:     nil
    Receiver's instance variables:
        superclass:     Object
        methodDict:     a MethodDictionary()
        format:     2
        instanceVariables:     nil
        organization:     ('as yet unclassified')

        subclasses:     nil
        name:     #PRMigrations
        classPool:     nil
        sharedPools:     nil
        environment:     a SystemDictionary(lots of globals)
        category:     #'Pier-Model-Core'
        traitComposition:     {}
        localSelectors:     nil

PRMigrations class>>initialize
    Receiver: PRMigrations
    Arguments and temporary variables:

    Receiver's instance variables:
        superclass:     Object
        methodDict:     a MethodDictionary()
        format:     2
        instanceVariables:     nil
        organization:     ('as yet unclassified')

        subclasses:     nil
        name:     #PRMigrations
        classPool:     nil
        sharedPools:     nil
        environment:     a SystemDictionary(lots of globals)
        category:     #'Pier-Model-Core'
        traitComposition:     {}
        localSelectors:     nil

MCMethodInitializerDefinition>>postinstall
    Receiver: a MCMethodInitializerDefinition(PRMigrations
class>>initialize{initialization})
    Arguments and temporary variables:

    Receiver's instance variables:
        classIsMeta:     true
        source:     'initialize
    self migrateLinkParameters'
        category:     #initialization
        selector:     #initialize
        className:     #PRMigrations
        timeStamp:     'lr 8/27/2007 10:19'
        methodAndNode:     a CompiledMethodWithNode
        requestor:     nil
        compiledMethod:     a CompiledMethod (3848)
        priorMethodOrNil:     nil
        compiledSelector:     #initialize
        properties:     an IdentityDictionary()
        isInstalled:     nil
        priorMethodCategory:     nil
        theClass:     PRMigrations class
        defnToInstall:     a MCMethodInitializerDefinition(PRMigrations
class>>initialize{i...etc...
 

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: CurrentContext in description defaults

Lukas Renggli-2
You have to update Magritte first.

On 14 Sep 2007, at 11:22, Keith Hodges wrote:

> loading the latest Pier-Model I get
>
>  Keith
>
> ---
>
> 14 September 2007 2:21:37 am
>
> VM: Win32 - a SmalltalkImage
> Image: Squeak3.10beta [latest update: #7137]
>
> SecurityManager state:
> Restricted: false
> FileAccess: true
> SocketAccess: true
> Working Dir D:\Squeak\ws
> Trusted Dir D:\Squeak\ws\administrator
> Untrusted Dir C:\My Squeak\administrator
>
> PRCompatibility class(Object)>>doesNotUnderstand:  
> #allSubInstancesOf:do:
>     Receiver: PRCompatibility
>     Arguments and temporary variables:
>         aMessage:     allSubInstancesOf: PRLink do: [] in PRMigrations
> class>>migrateLinkPa...etc...
>     Receiver's instance variables:
>         superclass:     MACompatibility
>         methodDict:     a MethodDictionary()
>         format:     2
>         instanceVariables:     nil
>         organization:     ('as yet unclassified')
>
>         subclasses:     nil
>         name:     #PRCompatibility
>         classPool:     nil
>         sharedPools:     nil
>         environment:     a SystemDictionary(lots of globals)
>         category:     #'Pier-Model-Core'
>         traitComposition:     {}
>         localSelectors:     nil
>
> PRMigrations class>>migrateLinkParameters
>     Receiver: PRMigrations
>     Arguments and temporary variables:
>         each:     nil
>     Receiver's instance variables:
>         superclass:     Object
>         methodDict:     a MethodDictionary()
>         format:     2
>         instanceVariables:     nil
>         organization:     ('as yet unclassified')
>
>         subclasses:     nil
>         name:     #PRMigrations
>         classPool:     nil
>         sharedPools:     nil
>         environment:     a SystemDictionary(lots of globals)
>         category:     #'Pier-Model-Core'
>         traitComposition:     {}
>         localSelectors:     nil
>
> PRMigrations class>>initialize
>     Receiver: PRMigrations
>     Arguments and temporary variables:
>
>     Receiver's instance variables:
>         superclass:     Object
>         methodDict:     a MethodDictionary()
>         format:     2
>         instanceVariables:     nil
>         organization:     ('as yet unclassified')
>
>         subclasses:     nil
>         name:     #PRMigrations
>         classPool:     nil
>         sharedPools:     nil
>         environment:     a SystemDictionary(lots of globals)
>         category:     #'Pier-Model-Core'
>         traitComposition:     {}
>         localSelectors:     nil
>
> MCMethodInitializerDefinition>>postinstall
>     Receiver: a MCMethodInitializerDefinition(PRMigrations
> class>>initialize{initialization})
>     Arguments and temporary variables:
>
>     Receiver's instance variables:
>         classIsMeta:     true
>         source:     'initialize
>     self migrateLinkParameters'
>         category:     #initialization
>         selector:     #initialize
>         className:     #PRMigrations
>         timeStamp:     'lr 8/27/2007 10:19'
>         methodAndNode:     a CompiledMethodWithNode
>         requestor:     nil
>         compiledMethod:     a CompiledMethod (3848)
>         priorMethodOrNil:     nil
>         compiledSelector:     #initialize
>         properties:     an IdentityDictionary()
>         isInstalled:     nil
>         priorMethodCategory:     nil
>         theClass:     PRMigrations class
>         defnToInstall:     a MCMethodInitializerDefinition
> (PRMigrations
> class>>initialize{i...etc...
>
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki

--
Lukas Renggli
http://www.lukas-renggli.ch


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki