Révision 3929

TXM/trunk/bundles/org.txm.annotation.kr.rcp/src/org/txm/annotation/kr/rcp/concordance/SimpleKRAnnotation.java (revision 3929)
533 533
			public void run() {
534 534
				try {
535 535
					notifyStartOfRefresh();
536
					annotationColumnViewer.getViewer().refresh();
537 536
				}
538 537
				catch (Exception e) {
539 538
					// TODO Auto-generated catch block
......
664 663
			public void run() {
665 664
				try {
666 665
					notifyStartOfRefresh();
667
					annotationColumnViewer.getViewer().refresh();
668 666
					CorporaView.refreshObject(corpus);
669 667
				}
670 668
				catch (Exception e) {
......
726 724
	public void notifyStartOfRefresh() throws Exception {
727 725
		List<Line> lines = concordance.getLines(concordance.getTopIndex(), concordance.getTopIndex() + concordance.getNLinePerPage());
728 726
		annotations.computeLines(lines);
727
		
728
		updateAnnotationWidgetStates();
729
		
730
		// update annotation column width
731
		if (annotationArea != null) {
732
			//annotationColumn.pack();
733
			
734
			annotationColumn.setResizable(true);
735
		}
736
		else {
737
			annotationColumn.setWidth(0);
738
		}
739
		
740
		annotationColumnViewer.getViewer().refresh();
729 741
	}
730 742
	
731 743
	@Override
TXM/trunk/bundles/org.txm.annotation.kr.rcp/src/org/txm/annotation/kr/rcp/concordance/KRAnnotation.java (revision 3929)
201 201
			}
202 202
		});
203 203
		
204
		updateAnnotationWidgetStates();
205
		
206
		editor.layout(true);
207
		
204 208
//		ext.getSaveButton().setEnabled(true);
205 209
		return composeAnnotationArea(parent);
206 210
	}
......
346 350
					annotations.setAnnotationOverlap(true);
347 351
					try {
348 352
						notifyStartOfRefresh();
349
						annotationColumnViewer.getViewer().refresh();
350 353
					}
351 354
					catch (Exception e) {
352 355
						// TODO Auto-generated catch block
......
715 718
	}
716 719
	
717 720
	public void updateAnnotationWidgetStates() {
721
		
718 722
		if (annotationArea == null) return; // :)
719 723
		if (annotationArea.isDisposed()) return;
720 724
		
......
801 805
				public void run() {
802 806
					try {
803 807
						notifyStartOfRefresh();
804
						annotationColumnViewer.getViewer().refresh();
805 808
					}
806 809
					catch (Exception e) {
807 810
						// TODO Auto-generated catch block
......
942 945
			public void run() {
943 946
				try {
944 947
					notifyStartOfRefresh();
945
					annotationColumnViewer.getViewer().refresh();
946 948
					CorporaView.refreshObject(corpus);
947 949
				}
948 950
				catch (Exception e) {
......
1056 1058
	
1057 1059
	@Override
1058 1060
	public void notifyStartOfRefresh() throws Exception {
1061
		
1059 1062
		List<Line> lines = concordance.getLines(concordance.getTopIndex(), concordance.getTopIndex() + concordance.getNLinePerPage());
1060 1063
		annotations.computeLines(lines);
1064
		
1065
		updateAnnotationWidgetStates();
1066
		
1067
		// update annotation column width
1068
		if (annotationArea != null) {
1069
			//annotationColumn.pack();
1070
			
1071
			annotationColumn.setResizable(true);
1072
		}
1073
		else {
1074
			annotationColumn.setWidth(0);
1075
		}
1076
		
1077
		annotationColumnViewer.getViewer().refresh();
1061 1078
	}
1062 1079
	
1063 1080
	@Override

Formats disponibles : Unified diff