Révision 3533

TXM/trunk/org.txm.concordance.rcp/src/org/txm/concordance/rcp/actions/SetLineNumber.java (revision 3533)
63 63
	 * @param window the window
64 64
	 * @param concordanceEditor the concordance editor
65 65
	 */
66
	public SetLineNumber(IWorkbenchWindow window,
67
			ConcordanceEditor concordanceEditor) {
66
	public SetLineNumber(IWorkbenchWindow window, ConcordanceEditor concordanceEditor) {
67
		
68 68
		this.window = window;
69 69
		this.concordanceEditor = concordanceEditor;
70 70
		setId(ID);
......
77 77
	 */
78 78
	@Override
79 79
	public void dispose() {
80
		
80 81
	}
81 82

  
82 83
	/* (non-Javadoc)
......
84 85
	 */
85 86
	@Override
86 87
	public void run() {
88
		
87 89
		SetLineNumberDialog d = new SetLineNumberDialog(window.getShell());
88 90
		if (d.open() == Window.OK) {
89 91
			concordanceEditor.setLinePerPage(d.getValue());
TXM/trunk/org.txm.concordance.rcp/src/org/txm/concordance/rcp/editors/ConcordanceEditor.java (revision 3533)
339 339
		this.standardComparators = new ArrayList<>();
340 340
		this.userDefinedComparators = new ArrayList<>();
341 341
		this.setStandardComparators();
342
		concordance.setNLinePerPage(ConcordancePreferences.getInstance().getInt(ConcordancePreferences.N_LINES_PER_PAGE));
342
		//concordance.setNLinePerPage(ConcordancePreferences.getInstance().getInt(ConcordancePreferences.N_LINES_PER_PAGE));
343 343
	}
344 344
	
345 345
	@Override
......
1463 1463
		try {
1464 1464
			QueriesView.refresh();
1465 1465
			
1466
			System.out.println("lines="+concordance.getLines());
1466
			//System.out.println("lines="+concordance.getLines());
1467 1467
			
1468 1468
			this.fillDisplayArea(update);
1469 1469
			
......
1534 1534
	public void setLinePerPage(int nb) {
1535 1535
		
1536 1536
		concordance.setNLinePerPage(nb);
1537
		try {
1538
			this.refresh(false);
1539
		}
1540
		catch (Exception e) {
1541
			// TODO Auto-generated catch block
1542
			e.printStackTrace();
1543
		}
1537 1544
	}
1538 1545
	
1539 1546
	/**
......
1656 1663
		concordance.setRightContextSize(rightContextSize);
1657 1664
		this.rightSizeSpinner.setSelection(rightContextSize);
1658 1665
		this.leftSizeSpinner.setSelection(leftContextSize);
1659
		updateEditorFromResult(true); // we return to the previously
1666
		try {
1667
			refresh(false);
1668
		}
1669
		catch (Exception e) {
1670
			// TODO Auto-generated catch block
1671
			e.printStackTrace();
1672
		} // we return to the previously
1660 1673
		resetColumnWidths();
1661 1674
	}
1662 1675
	

Formats disponibles : Unified diff