title: Eclipse PDE - How to sort the Properties in the Standard Propeties view
body: <p><br><br>I'm developing an Eclipse 3.6 plugin, and have a view that contains a <code>TreeViewer</code>. 
  When an item from this <code>TreeViewer</code> is selected, its properties appear in the standard Properties View. The Properties currently are ordered alphabetically by default.
  <br> I would like to order these properties <em>differently</em>.</p>
  
  <p>It seems like someone else has had this problem too:<br>
  <a href="http://www.eclipse.org/forums/index.php/m/393029/" rel="nofollow">http://www.eclipse.org/forums/index.php/m/393029/</a></p>
  
  <blockquote>
    <p>The properties in the Properties view of the default generated editor
    is  sorted by alphabetical order. I would like to ask how to modify
    and  arrange them in different orders.</p>
  </blockquote>
  
  <p>The suggested solution is:</p>
  
  <blockquote>
    <p>Your editor needs to provide the PropertySheetPage from the 
    getAdapter(Class) method. If it doesn't provide one the property sheet
    will use the default PropertySheetPage, which uses the standard
    collator  to produce the sort order. Your getAdapter() method needs to
    provide a  specialized subclass of PropertySheetPage that sets you
    sorter instead.</p>
  </blockquote>
  
  <p>So I need to subclass <a href="http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ui/views/properties/class-use/PropertySheetPage.html" rel="nofollow">PropertySheetPage</a>, override the <code>setSorter</code> method and everything should be fine.</p>
  
  <p>Two questions arise:</p>
  
  <ol>
  <li>Why does it write in the documentation that:
  
  <blockquote>
    <p>This class may be instantiated; it is not intended to be subclassed.</p>
  </blockquote></li>
  <li>Where do I make the link between the Standard Properties View and the subclass of the <code>PropertySheetPage</code>?
  <br>
  I am not using an editor in my case, but just have a <code>TreeViewer</code> that when an item is selected it provides the properties.
  <br><br>Any support is appreciated!</li>
  </ol>