Revision 1464

tmp/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/EmpantWidget.java (revision 1464)
80 80
	/** The check xword. */
81 81
	Button checkRight;
82 82

  
83
	Label infoLabel;
83
	//Label infoLabel;
84 84
	
85 85
	/** The corpus. */
86 86
	CQPCorpus corpus;
......
259 259
			}
260 260
		});
261 261

  
262
		infoLabel = new Label(line2, SWT.NONE);
263
		GridData infoLabelData = new GridData(GridData.END, GridData.CENTER, true, false);
264
		infoLabel.setLayoutData(infoLabelData);
262
//		infoLabel = new Label(line2, SWT.NONE);
263
//		GridData infoLabelData = new GridData(GridData.END, GridData.CENTER, true, false);
264
//		infoLabel.setLayoutData(infoLabelData);
265 265
		
266 266
		loadStructs();
267 267
		structs.setEnabled(false);
268 268
		checkXword.setEnabled(false);
269 269
	}
270
	
271
	public void setInfo(String txt, String tooltip) {
272
		infoLabel.setText(txt);
273
		infoLabel.setToolTipText(tooltip);
274
	}
270
//	
271
//	public void setInfo(String txt, String tooltip) {
272
//		infoLabel.setText(txt);
273
//		infoLabel.setToolTipText(tooltip);
274
//	}
275 275

  
276 276
	/**
277 277
	 * Load structs.
tmp/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/CooccurrencesEditor.java (revision 1464)
50 50
import org.eclipse.swt.layout.FormLayout;
51 51
import org.eclipse.swt.layout.GridData;
52 52
import org.eclipse.swt.layout.GridLayout;
53
import org.eclipse.swt.layout.RowData;
53 54
import org.eclipse.swt.layout.RowLayout;
54 55
import org.eclipse.swt.widgets.Composite;
55 56
import org.eclipse.swt.widgets.Display;
......
166 167
	@Parameter(key=CooccurrencePreferences.MIN_SCORE)
167 168
	FloatSpinner minScore;
168 169

  
170
	private Label infoLine;
169 171

  
170 172

  
173

  
171 174
	/**
172 175
	 * Initialize the editor with the cooccurrences TXMResult
173 176
	 *
......
374 377
		empantPanel.setLayoutData(empantLayoutData);
375 378
		empantPanel.addSelectionListener(computeSelectionListener);
376 379
		empantPanel.addMinMaxKeyListener(computeKeyListener);
377

  
380
		
381
		infoLine = new Label(this.getBottomToolBarContainer(), SWT.NONE);
382
		infoLine.setLayoutData(new RowData(600, SWT.DEFAULT));
378 383
		// result area
379 384
		Composite resultArea = this.getResultArea();
380 385
		// FIXME: became useless?
......
680 685
		empantPanel.setMaxRight(this.getIntParameterValue(CooccurrencePreferences.MAX_RIGHT) - 1);
681 686

  
682 687

  
683
		String txt = "tp " + cooc.getNumberOfKeyword() + ", vc " + cooc.getNumberOfDifferentCooccurrents() + ", tc " + cooc.getNumberOfCooccurrents(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
688
		String txt = "t pivot " + cooc.getNumberOfKeyword() + ", v cooc " + cooc.getNumberOfDifferentCooccurrents() + ", t cooc " + cooc.getNumberOfCooccurrents(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
684 689
		try {
685
			txt += ", T " + cooc.getCorpus().getSize();  //$NON-NLS-1$
690
			txt += ", T corpus " + cooc.getCorpus().getSize();  //$NON-NLS-1$
686 691
		}
687 692
		catch (Exception e) {
688 693
			Log.severe(CooccurrenceUIMessages.errorWhileReadingCorpusSize);
689 694
		}
690 695
		String tooltip = "- " + txt.replaceAll(", ", "\n- "); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
691 696

  
692
		empantPanel.setInfo(txt, tooltip);
693

  
697
		//empantPanel.setInfo(txt, tooltip);
698
		infoLine.setText(txt);
699
		infoLine.setToolTipText(tooltip);
700
		
694 701
		viewer.setInput(cooc.getLines());
695 702
		sort();
696 703

  

Also available in: Unified diff