Révision 1569

tmp/org.txm.ahc.rcp/src/org/txm/ahc/rcp/editors/AHCEditor.java (revision 1569)
18 18
import org.txm.rcp.editors.listeners.ComputeKeyListener;
19 19
import org.txm.rcp.editors.listeners.ComputeSelectionListener;
20 20
import org.txm.rcp.swt.GLComposite;
21
import org.txm.rcp.swt.widget.LabeledSpinner;
21 22
import org.txm.rcp.swt.widget.ThresholdsGroup;
22 23
import org.txm.rcp.swt.widget.structures.PropertiesComboViewer;
23 24
import org.txm.searchengine.cqp.clientExceptions.CqiClientException;
......
92 93
	public void __createPartControl() throws Exception {
93 94

  
94 95
		GLComposite mainParametersArea = this.getMainParametersComposite();
95
		mainParametersArea.getLayout().numColumns = 2;
96
		mainParametersArea.getLayout().numColumns = 4;
96 97
		// parent parameters
97 98
		if (!this.getResult().getParent().isVisible() // CA parent parent is not visible  
98 99
				&& !(this.getResult().getParent().getParent().getParent() instanceof PartitionIndex))	{ // and its 2x parent is not a PartitionIndex
......
112 113
		ComputeKeyListener computeKeyListener = new ComputeKeyListener(this);
113 114

  
114 115
		// Number of clusters
115
		CLabel clustersLabel = new CLabel(this.chartToolBar, SWT.CENTER);
116
		clustersLabel.setText(AHCUIMessages.numberOfClustersColon);
117
		this.chartToolBar.addControl(clustersLabel);
118

  
119
		this.numberOfClusters = new Spinner(this.chartToolBar, SWT.BORDER);
116
		LabeledSpinner clusters = new LabeledSpinner(mainParametersArea, this, AHCUIMessages.numberOfClustersColon);
117
		this.numberOfClusters = clusters.getSpinner();
120 118
		this.numberOfClusters.setMinimum(2);
121
		this.numberOfClusters.setIncrement(1);
122
		this.chartToolBar.addControl(this.numberOfClusters);
123
		this.numberOfClusters.addSelectionListener(computeSelectionListener);
124
		this.numberOfClusters.addKeyListener(computeKeyListener);
119
		
120
//		CLabel clustersLabel = new CLabel(this.chartToolBar, SWT.CENTER);
121
//		clustersLabel.setText(AHCUIMessages.numberOfClustersColon);
122
//		this.chartToolBar.addControl(clustersLabel);
123
//
124
//		this.numberOfClusters = new Spinner(this.chartToolBar, SWT.BORDER);
125
//		this.numberOfClusters.setMinimum(2);
126
//		this.numberOfClusters.setIncrement(1);
127
//		this.chartToolBar.addControl(this.numberOfClusters);
128
//		this.numberOfClusters.addKeyListener(computeKeyListener);
129
//		this.numberOfClusters.addModifyListener(computeKeyListener);
130
		
125 131

  
126

  
127 132
		// Columns
128 133
		this.columnsComputing = new ToolItem(this.chartToolBar, SWT.RADIO);
129 134
		this.columnsComputing.setToolTipText(AHCUIMessages.computeColumns);

Formats disponibles : Unified diff