Révision 3159

tmp/org.txm.annotation.rcp/src/org/txm/annotation/rcp/editor/AnnotationExtension.java (revision 3159)
282 282
	@Override
283 283
	public void notifyDoSave() throws Exception {
284 284

  
285

  
286 285
		//		if (needToUpdateIndexes) {
287 286
		JobHandler job = new JobHandler("Updating corpus indexes and editions", true) {
288 287

  
......
317 316
								public void run() {
318 317
									Log.info("Done.");
319 318
									CorporaView.refreshObject(corpus);
320
									saveButton.setEnabled(false);
319
									if (!saveButton.isDisposed()) {
320
										saveButton.setEnabled(false);
321
									}
321 322
								}
322 323
							});
323 324
							return Status.OK_STATUS;
......
334 335
							@Override
335 336
							public void run() {
336 337
								Log.info("Done.");
337
								saveButton.setEnabled(false);
338
								if (!saveButton.isDisposed()) {
339
									saveButton.setEnabled(false);
340
								}
338 341
							}
339 342
						});
340 343
						return Status.OK_STATUS;

Formats disponibles : Unified diff