Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 302038
Collapse All | Expand All

(-)src/org/eclipse/wst/sse/ui/internal/style/SemanticHighlightingPresenter.java (+10 lines)
Lines 12-17 Link Here
12
12
13
import java.util.ArrayList;
13
import java.util.ArrayList;
14
import java.util.Arrays;
14
import java.util.Arrays;
15
import java.util.Collections;
16
import java.util.Comparator;
15
import java.util.HashMap;
17
import java.util.HashMap;
16
import java.util.Iterator;
18
import java.util.Iterator;
17
import java.util.List;
19
import java.util.List;
Lines 489-494 Link Here
489
					}
491
					}
490
				}
492
				}
491
				fPositions= newPositions;
493
				fPositions= newPositions;
494
				Collections.sort(fPositions, new Comparator() {
495
					
496
					public int compare(Object arg0, Object arg1) {
497
						Position p1 = (Position) arg0;
498
						Position p2 = (Position) arg1;
499
						return p1.offset - p2.offset;
500
					}
501
				});
492
			}
502
			}
493
		} catch (BadPositionCategoryException e) {
503
		} catch (BadPositionCategoryException e) {
494
			// Should not happen
504
			// Should not happen

Return to bug 302038