drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/dsl/editor/DSLMappingSorter.java
public int compare(Viewer viewer, Object o1, Object o2) {

        DSLMappingEntry item1 = (DSLMappingEntry) o1;
        DSLMappingEntry item2 = (DSLMappingEntry) o2;

        switch (criteria) {
            case OBJECT:
                return compareObject(item1, item2);
            case EXPRESSION :
                return compareExpressions(item1, item2);
            case MAPPING :
                return compareMappings(item1, item2);
            case SCOPE :
                return compareScope(item1, item2);
            default:
                return 0;
        }
    }
public int compare(Viewer viewer, Object o1, Object o2) {

        DSLMappingEntry item1 = (DSLMappingEntry) o1;
        DSLMappingEntry item2 = (DSLMappingEntry) o2;

        switch (criteria) {
            case OBJECT:
                return compareObject(item1, item2);
            case EXPRESSION :
                return compareExpressions(item1, item2);
            case MAPPING :
                return compareMappings(item1, item2);
            case SCOPE :
                return compareScope(item1, item2);
            default:
                return 0;
        }
    }
public int compare ( Viewer viewer , Object o1 , Object o2 ) { DSLMappingEntry item1 = ( DSLMappingEntry ) o1 ; DSLMappingEntry item2 = ( DSLMappingEntry ) o2 ; switch ( criteria ) { case OBJECT : return compareObject ( item1 , item2 ) ; case EXPRESSION : return compareExpressions ( item1 , item2 ) ; case MAPPING : return compareMappings ( item1 , item2 ) ; case SCOPE : return compareScope ( item1 , item2 ) ; default : return 0 ; } }
/* (non-Javadoc)
Method declared on ViewerSorter.
/ * ( non - Javadoc ) Method declared on ViewerSorter .