Revision 1452

tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/listeners/BaseAbstractComputeListener.java (revision 1452)
10 10
import org.txm.rcp.editors.TXMEditor;
11 11

  
12 12
/**
13
 * Abstract base listener dedicated to call the compute() method of TXMEditor from some Widgets.
13
 * Abstract base listener dedicated to call the TXMEditor.compute() method from some Widgets.
14
 * Also responsible of setting the editor as dirty if auto-computing is disabled.
14 15
 * 
15 16
 * @author sjacquot
16 17
 *
tmp/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/ThresholdsGroup.java (revision 1452)
97 97
	public ThresholdsGroup(Composite parent, int style, TXMEditor editor, boolean autoCompute, boolean displayFMax) {
98 98
		super(parent, style);
99 99
		
100
		//this.setLayout(new RowLayout());
101 100
		this.setText(TXMCoreMessages.common_thresholds);
102 101
		
103 102
		// Computing listeners
......
157 156
		vMaxSpinner.setPageIncrement(100);
158 157
		vMaxSpinner.setLayoutData(fieldsGridData);
159 158
		
160
//		if(autoCompute)	{
161
			fMinSpinner.addKeyListener(computeKeyListener);
162
			fMinSpinner.addSelectionListener(computeSelectionListener);
163
			
164
			if(displayFMax)	{
165
				fMaxSpinner.addKeyListener(computeKeyListener);
166
				fMaxSpinner.addSelectionListener(computeSelectionListener);
167
			}
168
			
169
			vMaxSpinner.addKeyListener(computeKeyListener);
170
			vMaxSpinner.addSelectionListener(computeSelectionListener);
171
	//	}
159
		fMinSpinner.addKeyListener(computeKeyListener);
160
		fMinSpinner.addSelectionListener(computeSelectionListener);
161
		
162
		if(displayFMax)	{
163
			fMaxSpinner.addKeyListener(computeKeyListener);
164
			fMaxSpinner.addSelectionListener(computeSelectionListener);
165
		}
166
		
167
		vMaxSpinner.addKeyListener(computeKeyListener);
168
		vMaxSpinner.addSelectionListener(computeSelectionListener);
172 169
	}
173 170

  
174 171
	/**

Also available in: Unified diff