Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] compact list help

I took a look and it’s coming together well. I added a permanent home for this feature in the gallery sample under List -> Homogeneous.

 

> 1. The decorator - should we have a main one similar to the list or individual decorators?

 

Individual ones like you have now are the way to go on this. That does leave no place to display list-wide validation (count constraints and such), but I think maybe we can write that off as the limitation of this type of the property editor. It is something that is useful in described set of circumstances that we will document.

 

> 2. I need to be able to insert (in addition to addElement) to ModelElementList. How can I do that?

 

How does that come up?

 

> P.S. Is the way the editor works now close to what you have in mind?

 

Yep, pretty much what I had in mind.

 

Some notes on stuff that I spotted:

 

1. The add link should reference element type label, not column label.

2. Activating assist popup on any decorator other than the first one displays the popup in the wrong location (too far down).

3. If I add three blank items and then write text into the last one, the preceding elements aren’t materialized. I would expect first two elements to be created as soon as I write text into the third one. That is, if I leave and come back, the preceding two blank lines should still be there. The same shouldn’t apply to trailing ones. Clearing trailing entries (or not filling them in) should not materialize them. This might resolve your need for an insert.

4. Make sure you support actions that might be attached to value property in question. Browse, jump, etc. See how this works in DefaultValuePropertyEditor. You basically have a list of these.

 

- Konstantin

 

 

From: Ling Hao [mailto:ling.hao@xxxxxxxxxx]
Sent: Thursday, March 17, 2011 5:27 PM
To: Konstantin Komissarchik
Subject: compact list help

 

Konstantin,

 

I checked in the latest compact list code, there are still some issues to be ironed out, but I can't remember a few of the details where I left off.

 

To see the code add the following to GalleryEditor.sdef.

 

                        <property-editor>
                            <property>Entities</property>
                            <hint>
                                <name>factory</name>
                                <value>CompactListPropertyEditorRenderer$Factory</value>
                            </hint>
                        </property-editor>

 

1. The decorator - should we have a main one similar to the list or individual decorators?

 

2. I need to be able to insert (in addition to addElement) to ModelElementList. How can I do that?

 

Thanks,

Ling

 

P.S. Is the way the editor works now close to what you have in mind?

 

 


Back to the top