Modelers

org.topcased.modeler.editor.outline.sorters
Class AlphabeticalSorter

java.lang.Object
  extended by org.eclipse.jface.viewers.ViewerComparator
      extended by org.eclipse.jface.viewers.ViewerSorter
          extended by org.topcased.modeler.editor.outline.sorters.AlphabeticalSorter

public class AlphabeticalSorter
extends org.eclipse.jface.viewers.ViewerSorter

A sorter that simply sort outline elements in an alphabetical order but the 'Additionnal resources' and the 'Diagram' elements are always at the end.
Creation : 8 d�c. 2005


Field Summary
 
Fields inherited from class org.eclipse.jface.viewers.ViewerSorter
collator
 
Constructor Summary
AlphabeticalSorter()
           
 
Method Summary
 int category(java.lang.Object element)
           
 
Methods inherited from class org.eclipse.jface.viewers.ViewerSorter
getCollator
 
Methods inherited from class org.eclipse.jface.viewers.ViewerComparator
compare, getComparator, isSorterProperty, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlphabeticalSorter

public AlphabeticalSorter()
Method Detail

category

public int category(java.lang.Object element)
Overrides:
category in class org.eclipse.jface.viewers.ViewerComparator
See Also:
ViewerComparator.category(java.lang.Object)

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.