schemas-jetbrains-com:member-reordering-patterns

The XML schema for member reordering patterns has changed between version 8.2 and version 9 EAP. Could we get the updated XSD?

In the meantime, how would I convert this snippet to ReSharper 9?


<Sort> 
<Access Order="public internal protected-internal protected private"/>
</Sort>


It appears that ReSharper 9 doesn't allow that kind of granularity. The designer will only let me do this instead.

 <Entry.SortBy>  
<Access />  
</Entry.SortBy>
4 comments
Comment actions Permalink

There appears to be a

<Access.Order />
collection property in XAML, but I don't know its item type.

What I've tried:

 <Entry.SortBy>

 <Access> 

<Access.Order> 

<AccessType>Public</AccessType> 
<AccessType>Internal</AccessType>
<AccessType>ProtectedInternal</AccessType>
<AccessType>Protected</AccessType>
<AccessType>Private</AccessType>          

</Access.Order> 

</Access> 

</Entry.SortBy> 


This seems to almost work, but
<AccessType />
is not a valid element name.
0
Comment actions Permalink

My current type layout: https://gist.github.com/StevenLiekens/2ff74b148297c8879d3c

I'm still looking for a way to configure ordering type members by access type.

0
Comment actions Permalink

Hello Steven,

  Please try using one of the following ways:

<Entry.SortBy>
     <Access Order="Private Public" />
</Entry.SortBy>

  or

<Entry.SortBy>

   <Access> 

       <Access.Order>
          <AccessModifier>Private</AccessModifier>
          <AccessModifier>Public</AccessModifier>
       </Access.Order>
   </Access> 

</Entry.SortBy>


Thanks!
0
Comment actions Permalink

Thanks! Both ways work.

Next topic: what does the "Priority" attribute mean, when should I use it, and what happened to the "Weight" attribute?

0

Please sign in to leave a comment.