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 / link / ProposalPosition.java
index 6e18440..4996443 100644 (file)
@@ -19,8 +19,11 @@ import org.eclipse.jface.text.contentassist.ICompletionProposal;
  * 
  */
 public class ProposalPosition extends TypedPosition {
-       
-       /** The choices available for this position, fChoices[0] is the original type. */
+
+       /**
+        * The choices available for this position, fChoices[0] is the original
+        * type.
+        */
        private final ICompletionProposal[] fChoices;
 
        /*
@@ -29,26 +32,28 @@ public class ProposalPosition extends TypedPosition {
        public boolean equals(Object o) {
                if (o instanceof ProposalPosition) {
                        if (super.equals(o)) {
-                               return Arrays.equals(fChoices, ((ProposalPosition)o).fChoices);
+                               return Arrays.equals(fChoices, ((ProposalPosition) o).fChoices);
                        }
                }
                return false;
        }
-       
+
        /**
         * @param offset
         * @param length
         * @param type
         */
-       public ProposalPosition(int offset, int length, String type, ICompletionProposal[] choices) {
+       public ProposalPosition(int offset, int length, String type,
+                       ICompletionProposal[] choices) {
                super(offset, length, type);
-               fChoices= new ICompletionProposal[choices.length]; 
+               fChoices = new ICompletionProposal[choices.length];
                System.arraycopy(choices, 0, fChoices, 0, choices.length);
        }
-       
+
        /**
         * 
-        * @return an array of choices, including the initial one. Clients must not modify it.
+        * @return an array of choices, including the initial one. Clients must not
+        *         modify it.
         */
        public ICompletionProposal[] getChoices() {
                updateChoicePositions();
@@ -59,9 +64,9 @@ public class ProposalPosition extends TypedPosition {
         * 
         */
        private void updateChoicePositions() {
-               for (int i= 0; i < fChoices.length; i++) {
-//                     if (fChoices[i] instanceof JavaCompletionProposal)
-//                             ((JavaCompletionProposal)fChoices[i]).setReplacementOffset(offset);
+               for (int i = 0; i < fChoices.length; i++) {
+                       // if (fChoices[i] instanceof JavaCompletionProposal)
+                       // ((JavaCompletionProposal)fChoices[i]).setReplacementOffset(offset);
                }
        }
 }