Révision 1909

tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 1909)
366 366
		try {
367 367
			this.parent = parent;
368 368

  
369
			//this.getContainer().setRedraw(false);
369
			// disable the rendering while creating the widgets
370
			// FIXME: SJ: would be very nice to do that to avoid to see the empty tables before the refresh() that fill the UI.
371
			// the re-enabling is done in refresh() but the EditionEditor doesn't seem to call refresh() so it breaks it
372
			//this.parent.setRedraw(false);
370 373

  
371 374
			// to hide and display the extended parameters composite
372 375
			this.initParentLayout(parent, 1);
......
465 468
			//				computeButton.setEnabled(false);
466 469
			//			}
467 470

  
468
		} catch(Throwable e) {
471
			
472
			// dirty state according to the future compute that will be launched by TXMEditor.openEditor()
473
			if(this.getResult().canCompute())	{
474
				this.dirty = false;
475
			}
476

  
477
			this.setDirty(this.dirty);
478

  
479
			//this.parent.setRedraw(true);
480

  
481
			
482
		}
483
		catch(Throwable e) {
469 484
			Log.severe(TXMCoreMessages.bind("TXMEditor.createPartControl(): can not create the editor for result {0}.", this.getResult())); //$NON-NLS-1$
470 485
			e.printStackTrace();
471 486
			createPartControlDoneSucessfully = false;
472 487
		}
473 488

  
474
		this.setDirty(this.dirty);
475

  
476
		//this.getContainer().setRedraw(true);
477 489
	}
478 490

  
479 491
	public void setLocked(boolean b) {
......
1022 1034
			return;
1023 1035
		}
1024 1036

  
1037
		//this.parent.setRedraw(false);
1038
		
1025 1039
		this.notifyExtensions("notifyStartOfRefresh"); //$NON-NLS-1$
1026 1040

  
1027 1041
		TXMResult result = this.getResult();
1028 1042

  
1029 1043
		// disable the component rendering to avoid strange behaviors when modifying the result area widget
1030
		this.getContainer().setRedraw(false);
1044
		//this.getContainer().setRedraw(false);
1031 1045

  
1032 1046
		this.setPartName(result.getName());
1033 1047
		//this.firePropertyChange(TXMEditor.PROP_DIRTY);
......
1050 1064
			this.topToolBar.setComputingParametersVisible(false);
1051 1065
		}
1052 1066

  
1053
		topToolBar.redraw();
1067
		this.topToolBar.redraw();
1054 1068

  
1055 1069
		CorporaView.refreshObject(this);
1056 1070
		TXMResultDebugView.refreshView();
......
1085 1099
		}
1086 1100

  
1087 1101
		this.notifyExtensions("notifyEndOfRefresh"); //$NON-NLS-1$
1102
		
1103
		// re-enable the rendering that has been disabled in createPartControl()
1104
		// FIXME: SJ: would be very nice to do that to avoid to see the empty tables before the refresh() that fill the UI.
1105
		// the disabling is done in createPartControl() but the EditionEditor doesn't seem to call refresh() so it breaks it
1106
		//this.parent.setRedraw(true);
1088 1107
	}
1089 1108

  
1090 1109
	/**

Formats disponibles : Unified diff