Revision 1111

tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 1111)
608 608
	 * @param clearChartItemsSelection
609 609
	 */
610 610
	public synchronized JobHandler compute(final boolean update)	{
611

  
611
		
612 612
		StatusLine.setMessage(TXMUIMessages.TXMEditor_0 + this.getResult().getName());
613 613

  
614 614
		JobHandler job = new JobHandler(TXMUIMessages.TXMEditor_1 + this.getResult().getName()) {
......
681 681
				return Status.OK_STATUS;
682 682
			}
683 683
		};
684
		job.setPriority(Job.DECORATE);
684
		job.setPriority(Job.INTERACTIVE);
685 685
		// FIXME: SJ tests
686 686
		//job.setPriority(Job.INTERACTIVE);
687
		job.setUser(false);
687
		//job.setUser(false);
688 688
		job.schedule();
689
		
689 690
		return job;
690 691
	}
691 692

  
......
714 715
			boolean wasAlreadyOpened = SWTEditorsUtils.isOpenEditor(editorInput, editorId);
715 716
			// opening the editor
716 717
			editor = (TXMEditor) page.openEditor(editorInput, editorId, true, IWorkbenchPage.MATCH_INPUT | IWorkbenchPage.MATCH_ID);
718
			editor.refresh(true);
717 719
			// computing the result only if the editor wasn't already opened
718
			if(!wasAlreadyOpened)	{
720
			//if(editor.getResult().canCompute() && editor.getResult().isDirty())	{
719 721
				editor.compute(false);
720
			}
722
			//}
721 723
		}
722
		catch (PartInitException e) {
724
		catch (Exception e) {
723 725
			// TODO Auto-generated catch block
724 726
			e.printStackTrace();
725 727
		}

Also available in: Unified diff