Révision 3863

TXM/trunk/bundles/org.txm.concordance.rcp/src/org/txm/concordance/rcp/editors/ConcordanceEditor.java (revision 3863)
420 420
				// add the corpus order key
421 421
				LineComparator cComparator = new CompositeComparator("current", Arrays.asList(comparator, standardComparatorClassName[0])); //$NON-NLS-1$
422 422
				
423
				viewerLeft.getTable().setSortColumn(referenceColumn);
423 424
				if (viewerLeft.getTable().getSortColumn() != referenceColumn) {
424
					viewerLeft.getTable().setSortColumn(null);
425
					viewerLeft.getTable().setSortColumn(referenceColumn);
426 425
					viewerLeft.getTable().setSortDirection(SWT.UP);
427 426
				}
428 427
				else if (viewerLeft.getTable().getSortDirection() == SWT.UP) {
......
562 561
				// add the corpus order key
563 562
				LineComparator cComparator = new CompositeComparator("current", Arrays.asList(comparator, standardComparatorClassName[0])); //$NON-NLS-1$
564 563
				
564
				viewerRight.getTable().setSortColumn(leftContextColumn);
565 565
				if (viewerRight.getTable().getSortColumn() != leftContextColumn) {
566
					viewerRight.getTable().setSortColumn(leftContextColumn);
567 566
					viewerRight.getTable().setSortDirection(SWT.UP);
568 567
				}
569 568
				else if (viewerRight.getTable().getSortDirection() == SWT.UP) {
......
611 610
				
612 611
				// add the corpus order key
613 612
				LineComparator cComparator = new CompositeComparator("current", Arrays.asList(comparator, standardComparatorClassName[0])); //$NON-NLS-1$
614
				
613
				viewerRight.getTable().setSortColumn(keywordColumn);
615 614
				if (viewerRight.getTable().getSortColumn() != keywordColumn) {
616
					viewerRight.getTable().setSortColumn(keywordColumn);
617 615
					viewerRight.getTable().setSortDirection(SWT.UP);
618 616
				}
619 617
				else if (viewerRight.getTable().getSortDirection() == SWT.UP) {
......
661 659
				// add the corpus order key
662 660
				LineComparator cComparator = new CompositeComparator("current", Arrays.asList(comparator, standardComparatorClassName[0])); //$NON-NLS-1$
663 661
				
662
				viewerRight.getTable().setSortColumn(rightContextColumn);
664 663
				if (viewerRight.getTable().getSortColumn() != rightContextColumn) {
665
					viewerRight.getTable().setSortColumn(rightContextColumn);
664
					
666 665
				}
667 666
				else if (viewerRight.getTable().getSortDirection() == SWT.UP) {
668 667
					viewerRight.getTable().setSortDirection(SWT.DOWN);
......
750 749
				if ((event.detail & SWT.SELECTED) != 0) {
751 750
					GC gc = event.gc;
752 751
					Rectangle rect = event.getBounds();
753
					gc.setForeground(displayArea.getDisplay().getSystemColor(
754
							SWT.COLOR_LIST_SELECTION_TEXT));
755
					gc.setBackground(displayArea.getDisplay().getSystemColor(
756
							SWT.COLOR_LIST_SELECTION));
752
					gc.setForeground(displayArea.getDisplay().getSystemColor(SWT.COLOR_LIST_SELECTION_TEXT));
753
					gc.setBackground(displayArea.getDisplay().getSystemColor(SWT.COLOR_LIST_SELECTION));
757 754
					gc.fillRectangle(rect);
758 755
					event.detail &= ~SWT.SELECTED;
759 756
				}

Formats disponibles : Unified diff