Hi,
i'm interested to display and change the priority of MADescription components when the browser display Halos. For example i have a class with descriptionA, descriptionB. For display the priority i change the WAClassnameHaloPlugin renderOn: method. For change i create the WAPriorityHaloPlugin. In the relative execute method i test if component is anMAComponent : self target description respondTo: #priority . If yes i,m interested to open the Browser or WABrowser on the relative descriptionA. The first question is: how i can define the name of descriptionA from anObject with magritte structure ? into execute context of WAPriorityHaloPlugin i see aObject with memento, description, accessor ..... but i d'ont found link to the relative generating descriptionA. The second question is: after change the descriptionA with the WABrowser and return to the halo browser how i can update the view to reflect the change ? i have do some test but for now ti need to close and reopen the view. Thanks for any considerations. Dario _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Hey Dario,
I can try and help. On Tue, Feb 16, 2010 at 6:34 AM, [hidden email] <[hidden email]> wrote: Hi, Given that aObject's description is a container you can iterate through the contained descriptions looking for a match on the selector of the description. aObject description detect: [ :each | each accessor selector = #theSelectorIWant ]
Descriptions are cached so sending #flush to MANamedBuilder default forces the (container) descriptions to be rebuilt with the modified descripitons. I dont know if that will work well in your situation. Best of luck with it John
-- http://jmck.seasidehosting.st _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Hey John, Hey Dario, The problem is: at this level i d'ont understand the description name ( descriptionA )relative to the magritte component. Any magritte component ( create with descriptionA descriptionB descriptionX relative to one class ) when rendering with halo view, is display with the relative WAPriorityHaloPlugin anchor. Now assume to click on anchor relative to component create with descriptionA i go into relative 'execute' context of WAPriorityHaloPlugin where i found a specific aObject with memento, description, accessor, but i d'ont found, a this level, any link to the original descriptionA. I can add property to the descriptionA define method: descriptionA ^(MABooleanDescription new)
autoAccessor: #attivo;
checkboxLabel: 'Account attivo';
label: 'Attivo';
priority: 4030; propertyAt: #descriptionName put: #'descriptionA'; ......... but with this solution i need to change all the descriptions.
I do MANamedBuilder default flush but not work ( the view is rendering with no change ). I need to close and reopen the view. I can flush the cache relative to one specific class ?
Thank, Dario _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
On Tue, Feb 16, 2010 at 10:58 AM, [hidden email] <[hidden email]> wrote:
Maybe extend MADescription with #descriptionName that returns a reasonable default? ^self propertyAt: #descriptionName ifAbsent: [ 'Description for ' , self label ]
I was afraid that would be the case, but once you change the priorities it would have to rebuild the container component no? I am not really that familiar with the halo/plugin stuff....maybe senders of the open: method might provide some clues
-- http://jmck.seasidehosting.st _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by dtrussardi@tiscali.it
Hi,
After having upgraded to the latest Seaside 3 and Pier 2 packages, I encounter a minor issue that could be regenerated as follows: 1) Evaluate in a workspace "PRBookDistribution new register" 2) Point to http://localhost:8080/pier/book/table-of-contents The navigation arrows are not rendered anymore. Instead, appear their textual encoding (&rarr and &larr). It is the same for non-breaking space that appears as   (See for example http://localhost:8080/pier/book), as well as other codifications like §. Otherwise, I was wondering if in: BOLatexWriter >> convertHtmlEntities: the following: copyReplaceAll: '→' with: '<-' shouldn't be rather: copyReplaceAll: '→' with: '->' Cheers, Reza _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by John McKeon
Hi, i do some test but i d'ont found the solution. I think one possible solution can is to set an specific property when i the system instance one new Description. descriptionDescrizione ^(MAStringDescription new) autoAccessor: 'descrizione'; label: 'Descrizione'; priority: 1110; comment: 'Descrizione'; beRequired... The ^(MAStringDescription new) create a new instance and i can intercept it with MAObject initialize method. MAObject initialize super initialize. self propertyAt: #descriptionMessage put: ???? Question: it's possible into MAObject initialize method define the "caller" method ? ( in this case : descriptionDescrizione ). I need create new: method descriptionDescrizione ^(MAStringDescription new: descriptionDescrizione) autoAccessor: 'descrizione'; label: 'Descrizione'; priority: 1110; comment: 'Descrizione'; beRequired... Question: i can in the descriptionDescrizione method manage the reference to method name ? descriptionDescrizione ^(MAStringDescription new: ' a this level define automatic reference to the method name ' ) ........ Thank, Dario
_______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |