A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / text / java / PHPCompletionProposalComparator.java
index 3340c92..bad8e94 100644 (file)
@@ -9,27 +9,28 @@ public class PHPCompletionProposalComparator implements Comparator {
        /**
         * Constructor for CompletionProposalComparator.
         */
-//     public PHPCompletionProposalComparator() {
-//             fOrderAlphabetically= false;
-//     }
-       
+       // public PHPCompletionProposalComparator() {
+       // fOrderAlphabetically= false;
+       // }
        public void setOrderAlphabetically(boolean orderAlphabetically) {
-               fOrderAlphabetically= orderAlphabetically;
+               fOrderAlphabetically = orderAlphabetically;
        }
-       
-       /* (non-Javadoc)
+
+       /*
+        * (non-Javadoc)
+        * 
         * @see Comparator#compare(Object, Object)
         */
        public int compare(Object o1, Object o2) {
-               IPHPCompletionProposal c1= (IPHPCompletionProposal) o1;
-               IPHPCompletionProposal c2= (IPHPCompletionProposal) o2;
+               IPHPCompletionProposal c1 = (IPHPCompletionProposal) o1;
+               IPHPCompletionProposal c2 = (IPHPCompletionProposal) o2;
                if (!fOrderAlphabetically) {
-                       int relevanceDif= c2.getRelevance() - c1.getRelevance();
+                       int relevanceDif = c2.getRelevance() - c1.getRelevance();
                        if (relevanceDif != 0) {
                                return relevanceDif;
                        }
                }
                return c1.getDisplayString().compareToIgnoreCase(c2.getDisplayString());
-       }       
-       
+       }
+
 }