Révision 1446
tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/listeners/ComputeSelectionListener.java (revision 1446) | ||
---|---|---|
38 | 38 |
// tests for QueryWidget computing from history |
39 | 39 |
// System.err.println("ComputeSelectionListener.widgetSelected() " + ((Combo)e.getSource()).getText()); |
40 | 40 |
// this method is called on a Spinner even when a key is pressed, that's not what we want, so this test breaks the behavior |
41 |
if((this.autoCompute || RCPPreferences.getInstance().getBoolean(RCPPreferences.AUTO_UPDATE_EDITOR)) && (!(e.getSource() instanceof Spinner) || e.stateMask != 0)) { |
|
41 |
if((this.autoCompute |
|
42 |
|| RCPPreferences.getInstance().getBoolean(RCPPreferences.AUTO_UPDATE_EDITOR)) |
|
43 |
&& (!(e.getSource() instanceof Spinner) || e.stateMask != 0)) { |
|
42 | 44 |
this.editor.compute(true); |
43 | 45 |
} |
44 | 46 |
else { |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/structures/PropertiesComboViewer.java (revision 1446) | ||
---|---|---|
48 | 48 |
this.updateFromList(properties, selectedProperty); |
49 | 49 |
|
50 | 50 |
// Listener |
51 |
//if(autoCompute) { |
|
52 |
this.addSelectionChangedListener(new ComputeSelectionListener(editor, autoCompute)); |
|
53 |
//} |
|
51 |
this.addSelectionChangedListener(new ComputeSelectionListener(editor, autoCompute)); |
|
54 | 52 |
|
55 | 53 |
} |
56 | 54 |
|
Formats disponibles : Unified diff