|where to set up sort order for a listcompartment? [message #717255]
||Fri, 19 August 2011 18:02
| Greg Jansen
Registered: July 2010
I've got lots of compartments and mixed types of nodes within them. I'd like to sort by node type.|
I've added a policy to my compartment edit part:
installEditPolicy(EditPolicyRoles.SORT_FILTER_ROLE, new ElementSortFilterCompartmentItemsEditPolicy());
I also added a getComparator() method..
However, none of these are called when I add new nodes to the compartment. I think this is b/c the style of the view is not set to sort.
ListCompartmentEditPart.getSortedChildren() is probably being called, but the style on the view model is probably something like Sorting.NONE_LITERAL. How can I create these views with a default style. Where do you do that kind of view initialization?
Powered by FUDForum
. Page generated in 0.01283 seconds