Révision 1449

tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/listeners/BaseAbstractComputeListener.java (revision 1449)
53 53
	 * @return
54 54
	 */
55 55
	public static boolean mustIgnoreEvent(EventObject event)	{
56
		// to skip programmatically setSelection() call
56
		// to skip programmatically setSelection() call, especially for the auto-updating editor Widgets from result methods
57 57
		if(event.getSource() instanceof Viewer)	{
58 58
			if(((Viewer)event.getSource()).getData("ignore") != null && (Boolean)((Viewer)event.getSource()).getData("ignore") == true)	{
59 59
				return true;
tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/listeners/ComputeSelectionListener.java (revision 1449)
11 11

  
12 12
/**
13 13
 * A selection listener that can be added to editors widgets and that calls the TXMEditor.compute() method.
14
 * Also responsible of setting the editor as dirty if auto-computing is disabled.
15
 * 
14 16
 * @author sjacquot
15 17
 *
16 18
 */

Formats disponibles : Unified diff